COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-202
REWRITE
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
•
MERGE
REWRITE
REWRITE replaces an existing record in a disk file that is open for I-O.
Forms:
•
REWRITE for Sequential, Relative, Indexed, and Queue Files
•
REWRITE for Line Sequential Files
REWRITE for Sequential, Relative, Indexed, and Queue Files
REWRITE
END-REWRITE
UNLOCK
imperative-stmt-2
NOT INVALID
KEY
imperative-stmt-1INVALID
KEY
record-name
data-nameFROM
WITH
VST205.vsd