COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
file-name
is a file name described by a sort-merge file description (SD) entry.
data-name
is the identifier of the area in your program (other than record area associated with file-name
) where the record is stored.
imperative-stmt-1
is an imperative statement to be performed when the end of the file is encountered at the
beginning of the return operation. This phrase is required.
imperative-stmt-2
is an imperative statement to be performed when the end of the file is not encountered at the
beginning of the return operation.
END-RETURN
ends the scope of the RETURN statement, causing the RETURN to be a delimited-scope statement.
If the RETURN statement does not end with an END-RETURN phrase, the presence of the AT
END or the NOT AT END phrase causes the RETURN statement to be a conditional statement,
which ends at the next period separator.
For more details and an example, see:
• SORT (page 441)
• MERGE
REWRITE
REWRITE replaces an existing record in a disk file that is open for I-O. REWRITE is not supported
for line sequential files.
REWRITE 423










