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)}
Note
When using WRITEV and WRITEVU, you must also specify an attribute number.
Comments
-
You cannot use both ON ERROR and THEN/ELSE.
-
The ELSE clause has the same function as ON ERROR.
-
The LOCKED clause is supported only to simplify migration to Reality. The associated statements will never be executed.