WRITE Statements

When in UNIVERSE mode (set with the $OPTIONS statement), the write (WRITE, WRITEU, WRITEV, WRITEVU, MATWRITE and MATWRITEU) statements will accept the following syntax variants.

Syntax

WRITE char-string [ON || TO] {file-var,}item-id {SETTING setting-var} {ON ERROR statement(s)} {LOCKED statement(s)}

or

WRITE char-string [ON || TO] {file-var,}item-id {SETTING setting-var} {LOCKED statement(s)} [THEN statement(s) | ELSE statement(s)]}

Note

When using WRITEV and WRITEVU, you must also specify an attribute number.

Comments