COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

not-end-of-page clause
executes imperative-statement when the write operation does not encounter the
end-of-page condition. The file description must include a LINAGE clause.
imperative-statement
is to be executed when the end-of-page condition is satisfied when LINAGE-COUNTER is
either greater than the defined page length or is at a line in the footing area. In both cases,
the line is written before imperative-statement is executed. If an attempt is made to
write beyond the allowable area on a page, whether at or after the end-of-page condition,
the page is automatically advanced (this is called the page overflow condition).
invalid-key-phrase
executes imperative-statement when the write operation encounters the invalid-key
condition. The file description cannot include a LINAGE clause.
imperative-statement
is an imperative statement to be executed when an invalid-key condition arises because
alternate keys are defined for the sequential file, and the write operation would create a
duplicate key when the file definition did not specify that duplicates are allowed. If no
INVALID KEY phrase is present, a USE procedure must be present for the file or files to be
opened in OUTPUT mode.
not-invalid-key-phrase
executes imperative-statement when the write operation does not encounter the
invalid-key condition. The file description cannot include a LINAGE clause.
imperative-statement
is an imperative statement to be executed when an invalid-key condition does not arise.
END-WRITE
ends the scope of the WRITE statement, causing the WRITE to be a delimited-scope statement.
If the WRITE statement does not end with an END-WRITE phrase, the presence of the AT
END-OF-PAGE, the NOT AT END-OF-PAGE, the INVALID KEY, or the NOT INVALID KEY phrase
causes the WRITE statement to be a conditional statement, which ends at the next period
separator.
WRITE 489