FastSort Manual
Using SORT and SUBSORT DEFINEs
FastSort Manual—429834-003
7-9
Creating a SUBSORT DEFINE
Creating a SUBSORT DEFINE
A SUBSORT DEFINE controls a subsort process in a parallel sort run. Specify 
between 2 and 8 SUBSORT DEFINEs for a SORT DEFINE.
You create a SUBSORT DEFINE in the same manner as a SORT DEFINE. To use a 
SUBSORT DEFINE, you must also name the SUBSORT DEFINE in the SORT 
DEFINE SUBSORTS attribute. At run time, each SUBSORTS attribute of a SORT 
DEFINE must correspond to an existing SUBSORT DEFINE. 
The following example creates a SUBSORT DEFINE named =SUBSORTA, which is 
associated with the =DISTRIBUTOR_COLLECTOR SORT DEFINE: 
SET DEFINE CLASS SUBSORT
SET DEFINE SCRATCH $disk.temp1
SET DEFINE SWAP $disk.temp2
ADD DEFINE =subsorta 
An INFO DEFINE command for =SUBSORTA displays:
 Define Name =SUBSORTA
 CLASS SUBSORT
 SCRATCH $DISK.TEMP1
 SWAP $DISK.TEMP2 
Modifying a DEFINE
You can also use TACL commands to add, modify, or delete the attributes of a SORT 
or SUBSORT DEFINE (or the entire DEFINE). The following examples show several 
ALTER DEFINE and RESET DEFINE commands with the results displayed with the 
INFO DEFINE command. 
To add one or more SUBSORT DEFINE names to an existing SORT DEFINE, use the 
ALTER DEFINE command: 
ALTER DEFINE =distributor_collector, &
 SUBSORTS (=subsorta,=subsortb,=subsortc,=subsortd)
INFO DEFINE =distributor_collector, DETAIL
 Define Name =DISTRIBUTOR_COLLECTOR DEFINE
 CLASS SORT
 SWAP $DISK.FASTSORT.SWAPFILE
 MODE MINSPACE
 SUBSORTS (=SUBSORTA,=SUBSORTB,=SUBSORTC,=SUBSORTD)
You can also use the ALTER DEFINE command to modify a SUBSORT DEFINE name 
of an existing SORT DEFINE. The following command removes =SUBSORTA: 
ALTER DEFINE =distributor_collector, &
 SUBSORTS (=subsortb, =subsortc, =subsortd)
Note. FastSort supports up to 16 SUBSORT DEFINEs; however, to prevent run-time errors 
and performance problems, HP recommends that you specify no more than 8 SUBSORT 
DEFINEs.










