What version of PBP do you have? Have you checked the manual?
Code:
myValue VAR WORD
myValue = 1234
WRITE 12, WORD myValue
/Henrik.