FastSort Manual

Using SORT and SUBSORT DEFINEs
FastSort Manual429834-003
7-14
Creating and Using the =_SORT_DEFAULTS
DEFINE
Define Name =_SORT_DEFAULTS
CLASS SORT
The following ADD DEFINE command creates the =_SORT_DEFAULTS DEFINE and
sets the SCRATCH, SWAP, and CPU attributes:
ADD DEFINE =_SORT_DEFAULTS, CLASS SORT, &
SCRATCH $disk.scratch.file &
SWAP $disk.swap.file &
CPU 8
You can change the settings of the current attributes of the =_SORT_DEFAULTS
DEFINE using the ALTER DEFINE command. You can then use the INFO DEFINE
command to display the new attribute values.
ALTER DEFINE =_SORT_DEFAULTS, SCRATCH $disk
ALTER DEFINE =_SORT_DEFAULTS, PRI 150
INFO DEFINE =_SORT_DEFAULTS, DETAIL
Define Name =_SORT_DEFAULTS
CLASS SORT
SCRATCH $DISK
PRI 150
To use the =_SORT_DEFAULTS DEFINE with interactive FastSort, you do not need to
specify it the RUN command, as shown in the following example.
> SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
<FROM fruit
<ASC 1:10
<RUN
apple
banana
grape
grapefruit
lemon
orange
pear
watermelon
8 RECORDS 132 MAX RECORD SIZE
00:02 ELAPSED TIME 63 BUFFER PAGES
00:00 I/O WAIT TIME 0 INITIAL RUNS
19 COMPARES 0 MERGE ORDER
0 SCRATCH DISK
0 SCRATCH SEEKS
Errors detected: 0
Warnings detected: 0
In the next example, an invalid disk volume name for the =_SORT_DEFAULTS
DEFINE SCRATCH attribute causes the FastSort error message (A SCRATCH FILE
CANNOT BE OPENED) and file-system error 14 (DEVICE DOES NOT EXIST).
SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994