COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-228
SORT
DUPLICATES phrase
specifies that, if two or more records contain equal values for all sort keys, their
final order within the sort file is the order in which they were released to the sort
file. If this phrase is omitted, the order of such duplicate records is arbitrary.
COLLATING SEQUENCE phrase
specifies a collating sequence for sorting. The alphabet-name must be associated
with a sorting sequence in the SPECIAL-NAMES paragraph of the Environment
Division (see SPECIAL-NAMES Paragraph).
input-specifier-1
specifies a procedure that sends records one at a time to SORT using one or more
RELEASE statements. The procedure input-specifier-1 cannot terminate
before it finishes sending records.
inproc-1
inproc-2
are sections or paragraphs of the Procedure Division.
WITH
DUPLICATES
IN ORDER
VST215.vsd
COLLATING
SEQUENCE
IS
alphabet-name
VST216.vsd
PROCEDURE
IS
inproc-1INPUT
THROUGH
THRU
inproc-2
VST217.vsd