COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-120
MERGE
COLLATING SEQUENCE phrase
specifies a collating sequence for sorting.
alphabet-name
must be associated with a collating sequence in the SPECIAL-NAMES
paragraph of the Environment Division (see SPECIAL-NAMES Paragraph).
USING phrase
merge-in-1
merge-in-2
merge-in-n
are file description (FD) names. Multiple-reel tape files are permitted. The files
can have variable-length or fixed-length records.
If merge-file has variable-length records, then the records of merge-in-1,
merge-in-2, and merge-in-n must not be shorter than the shortest record
that merge-file can have or longer than the longest record that merge-
file can have.
If merge-file has fixed-length records, then the records of merge-in-1,
merge-in-2, and merge-in-n must not be greater than that fixed length. If
a record of merge-in-1, merge-in-2, or merge-in-n is shorter than the
fixed length of each merge-file record, then the shorter record is space-
padded on the right when it is released to merge-file.
COLLATING
SEQUENCE
IS
alphabet-name
VST179.vsd
USING merge-in-1 merge-in-2
merge-in-n
VST180.vsd