FastSort Manual

Using SORT and SUBSORT DEFINEs
FastSort Manual429834-003
7-15
Examples of SORT and SUBSORT DEFINEs
<FROM fruit
<ASC 1:10
<RUN
*** ERROR *** A SCRATCH FILE CANNOT BE OPENED.
OPERATING SYSTEM ERROR: 14
SCRATCH FILE: \SYS.$VOLUME
To correct the error, use the ALTER DEFINE command to set the SCRATCH attribute
to a valid name and then run FastSort again.
ALTER DEFINE =_SORT_DEFAULTS, SCRATCH $data
SORT
...
Examples of SORT and SUBSORT DEFINEs
This subsection contains the following examples:
A serial sort run using a SORT DEFINE
A parallel sort run with a SORT DEFINE for a distributor-collector process and
two SUBSORT DEFINEs for the subsort processes
Serial Sort Run Example
The first example creates a SORT DEFINE named =SORT_RUN for a serial sort
operation. The SET commands set the DEFINE mode (DEFMODE) to ON and the
DEFINE CLASS to SORT. The SHOW DEFINE command then displays the available
attributes in the working attribute set:
SET DEFMODE ON
SET DEFINE CLASS SORT
SHOW DEFINE *
CLASS SORT
SCRATCH
SCRATCHON
NOSCRATCHON
SWAP
MODE
CPU
BLOCK
PRI
SEGMENT
PROGRAM
CPUS
NOTCPUS
SUBSORTS
VLM
Set selected attributes in the working attribute set:
SET DEFINE SCRATCH $disk
SET DEFINE SWAP $data