FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-4
Specifying Input Records
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
1 ! Send sorted records to the file named TOFILE.
2 ! Sort in descending order from column 1 to 10.
3 TO TOFILE
4 DESC 1 FOR 10
5 RUN
apple
orange
lemon
grapefruit
banana
grape
watermelon
7 RECORDS 132 MAX RECORD SIZE
00:03 ELAPSED TIME 166 BUFFER PAGES
00:00 I/O WAIT TIME 0 INITIAL RUNS
17 COMPARES 0 MERGE ORDER
0 SCRATCH DISK
0 SCRATCH SEEKS
Errors detected: 0
Warnings detected: 0
Specifying Input Records
Interactive FastSort accepts input records for sorting or merging from:
A command file
One or more data files you specify using a FROM command before the RUN
command
The terminal, one record on each line, after the RUN command
Specifying Input Files in the FROM Command
You can use the FROM command to specify input records from existing files. For
example, the files INPUT1 and INPUT2 contain records to sort and merge in ascending
order. The contents of these files are:
After you invoke interactive FastSort, you can specify these files in FROM commands:
13> SORT
<FROM INPUT1
<FROM INPUT2
<ASCENDING 1:10
<RUN
File Contents
INPUT1 lemon, apple, grapefruit
INPUT2 banana, grape, watermelon, orange