COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-201
REPLACE
REPLACE
REPLACE substitutes zero or more words of pseudotext for one or more words of
pseudotext. You can use REPLACE in any division. For more information, see
REPLACE Statement.
RETURN
RETURN, which must be within a SORT or MERGE output procedure, gets the next
output record from the SORT or MERGE.
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.
file-nameRETURN
END-RETURN
data-nameINTO
NOT
AT
END imperative-stmt-2
AT
END imperative-stmt-1
VST204.vsd