FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-9
Running a Permutation Sort
Running a Permutation Sort
The output records from a permutation sort consist of the input record sequence
numbers, in the order the records would be in if they were sorted according to the
specified key fields. The following commands direct FastSort to reorder the records in
PLANTS1 and PLANTS2 using the same key fields and to write only the sequence
numbers to SORTOUT:
19> SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
<FROM PLANTS1
<FROM PLANTS2
<TO SORTOUT, PERM
<DESC 47:52
<ASC 21:31, 33:43
<RUN, REMOVEDUPS
26 RECORDS 132 MAX RECORD SIZE
00:06 ELAPSED TIME 63 BUFFER PAGES
00:00 I/O WAIT TIME 0 INITIAL RUNS
131 COMPARES 0 MERGE ORDER
0 SCRATCH DISK
0 SCRATCH SEEKS
2 DUPLICATES
The following example shows the contents of the SORTOUT file after the sort run using
the FUP COPY command. Note that FUP displays the record sequence numbers in
octal format.
20> FUP COPY SORTOUT,,OCTAL
$VOL.FS.SORTOUT RECORD 0 KEY 0 (%0) LEN 4 2/19/92 13:47
0: 000000 000021 ....
$VOL.FS.SORTOUT RECORD 1 KEY 1 (%1) LEN 4
0: 000000 000002 ....
$VOL.FS.SORTOUT RECORD 2 KEY 2 (%2) LEN 4
0: 000000 000010 ....
...
$VOL.FS.SORTOUT RECORD 23 KEY 23 (%27) LEN 4
0: 000000 000014 ....
24 RECORDS TRANSFERRED