FastSort Manual

Using FastSort Commands
FastSort Manual429834-003
3-9
COLLATEOUT Command
The other file, named ALTSEQ, contains these lines:
0 THRU 64,
"A" THRU "Z", ALSO "a" THRU "z",
91 THRU 96, 123 THRU 255
A terminal session shows the results of sorting five records in two situations:
Without the COLLATE command, using the ASCII collating sequence
With the COLLATE command, using the collating sequence in ALTSEQ
<ASC 1:10 ! Key
<RUN
?first record ! Input records
?FIRST record again
?first RECORD again
?second RECORD
?SECOND record again
?EOF!
FIRST record again ! Output records
SECOND RECORD again
first RECORD again
first record
second RECORD
...
<ASC 1:10 ! Key
<COLLATE ALTSEQ ! Alternate collating sequence
<RUN
?first record ! Input records
?FIRST record again
?first RECORD again
?second RECORD
?SECOND record again
?EOF!
first record ! Output records
FIRST record again
first RECORD again
second RECORD
SECOND record again
COLLATEOUT Command
Use the COLLATEOUT command to store the alternate collating sequence table in a
256-byte unstructured file. The COLLATE command creates this table from an EDIT
file. An application process can read the unstructured file to supply the
collate-sequence-table parameter for the SORTMERGESTART procedure.
COLLATEOUT filename