var %cs.character = $left(%cs.word,%cs.ii)

Add the equal (=) sign to all var statements in the code!!