FastSort Manual

Using FastSort Commands
FastSort Manual—429834-003
3-32
TO Command
Output Options
If you use both PERMUTATION and KEYS, the output for each record is a 32-bit (4-
byte) record number followed by the concatenated key-field values as shown in below:
The first 11 characters are sequence numbers, and the remaining characters are the
defined keys.
These options increase efficiency when you need only part of the data in the records.
They show the permutation of the sorted records and the values of the records’ key
fields. If you do not specify PERMUTATION or KEYS, the output is entire records.
When printing the output to list-file, FastSort does not convert nonprintable bytes
in a record. Therefore, a sorted binary integer field might not display useful information.
If you specify the PERM parameter and omit out-file, FastSort always converts the
sequence numbers to the 11-digit ASCII display equivalent (10 digits and one trailing
blank). The ASCII equivalent of the numeric data is packed into as few lines as
possible, allowing for the line width of the output device.
Examples
TO SORTED,TYPE R, EXCL PROTECTED
TO ,PERMUTATION
TO PARTNOS,KEYS,PERM
TO $TAPE,EXCL EXCLUSIVE
Byte 0 1 2 3 4 5 ...
seq no | key 1 ...| key 2 ...