FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-10
Running a Key and Permutation Sort
Running a Key and Permutation Sort
Each output record from a combined key and permutation sort consists of a sequence
number followed by the key-field values. The following commands direct FastSort to
reorder the records in PLANTS1 and PLANTS2 using the same key fields and to write
both the sequence numbers and the key-field values to SORTOUT:
21> SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
<FROM PLANTS1
<FROM PLANTS2
<TO SORTOUT, PERM, KEYS
<DESC 47:52
<ASC 21:31, 33:43
<RUN, REMOVEDUPS
26 RECORDS 132 MAX RECORD SIZE
00:03 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.
$VOL.FS.SORTOUT RECORD 0 KEY 0 (%0) LEN 32 4/07/92 14:16
0: 000000 000021 072162 062545 020040 040505 051503 052514
052523 020040 020107 046101 ....tree AESCULUS GLA
%14: 041122 040440 020040 020040 BRA
$VOL.FS.SORTOUT RECORD 1 KEY 1 (%1) LEN 32
0: 000000 000002 072162 062545 020040 043111 041525 051440
020040 020040 020102 042516 ....tree FICUS BEN
%14: 045101 046511 047101 020040 JAMINA
$VOL.FS.SORTOUT RECORD 2 KEY 2 (%2) LEN 32
0: 000000 000010 072162 062545 020040 043111 041525 051440
020040 020040 020105 046101 ....tree FICUS ELA
%14: 051524 044503 040440 020040 STICA
...
$VOL.FS.SORTOUT RECORD 22 KEY 22 (%26) LEN 32
0: 000000 000014 063154 067567 062562 047101 051103 044523
051525 051440 020040 020040 ....flowerNARCISSUS
%14: 020040 020040 020040 020040
23 RECORDS TRANSFERRED