FastSort Manual

Using FastSort Commands
FastSort Manual429834-003
3-26
SUBSORT Command
TO
displays all parameters for the current output file.
Examples
SHOW KEYS
SHOW FROM
SUBSORT Command
Use the SUBSORT command to set up the parameters for a SORTPROG subsort
process for a parallel sort or merge run.
A subsort process runs under a SORTPROG distributor-collector process set up by a
RUN command.
The distributor-collector process reads the input file and distributes the input records to
each subsort process named in the SUBSORT command. After the subsort processes
finish sorting, the distributor-collector process merges the records from the subsort
processes and then writes them to the output file.
scratch-file
is the name of an initial scratch file for the subsort process. If you specify an
existing file, it must be unstructured. FastSort purges all data in an existing scratch
file before using it.
BLOCK size
specifies the size in bytes of the input and output blocks for scratch files. The
scratch file block size must be large enough to accept the largest input record,
rounded up to the nearest even byte, plus 14 bytes of overhead.
The block size can be any multiple of 2048 bytes up to 56 KB. The default is
56 KB.
Note. Although you can specify up to 16 subsort processes, HP recommends that you specify
no more than 8. Running more than 8 subsort processes can cause performance degradation
for your system or the run to fail with FastSort error 22 (THE MEMORY SPACE FOR
SORTING IS INSUFFICIENT).
SUBSORT scratch-file [ , BLOCK size ]...
[ , CPU processor ]
[ , MEM memory ]
[ , PRI priority ]
[ , SEGMENT size ]
[ , PROGRAM file ]
[ , SWAP file ]