FastSort Manual

Using SORT and SUBSORT DEFINEs
FastSort Manual429834-003
7-17
Parallel Sort Run Example
Parallel Sort Run Example
The following example shows a parallel sort run using a SORT DEFINE named
=PARALLEL_SORT and SUBSORT DEFINEs named =SUBSORTA and
=SUBSORTB. (The input file FRUIT contains only 8 records; however, an actual input
file would be much larger to require a parallel sort operation.)
SET DEFMODE ON
ADD DEFINE =parallel_sort, CLASS SORT, &
SCRATCH $disk.fastsort.scratch, &
CPU 5, &
PRI 145, &
SUBSORTS (=subsorta, =subsortb)
INFO DEFINE =parallel_sort, DETAIL
Define Name =parallel_sort
CLASS SORT
SCRATCH $DISK.FASTSORT.SCRATCH
CPU 5
PRI 145
SUBSORTS (=SUBSORTA,=SUBSORTB)
To create SUBSORT DEFINEs, first set the DEFINE CLASS to SUBSORT. Then use
the SHOW DEFINE command to display the available attributes in the working attribute
set. The two question marks (??) indicate a required attribute that you must supply.
SET DEFINE CLASS SUBSORT
SHOW DEFINE *
CLASS SUBSORT
SCRATCH ??
SWAP
CPU
PRI
SEGMENT
PROGRAM
Current attribute set is incomplete
SET DEFINE SCRATCH $disk
Create SUBSORT DEFINEs using the names specified in the ADD DEFINE command
for the =PARALLEL_SORT DEFINE, and then display all your current DEFINEs
(including the =_DEFAULTS DEFINE):
ADD DEFINE =subsorta, CPU 3
ADD DEFINE =subsortb, CPU 6
INFO DEFINE **, DETAIL
Define Name PARALLEL_SORT
CLASS SORT
SCRATCH $DISK.FASTSORT.SCRATCH
CPU 5
PRI 145
SUBSORTS (=SUBSORTA,=SUBSORTB)
Define Name =SUBSORTA
CLASS SUBSORT
SCRATCH $DISK