FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-2
SORTBUILDPARM Procedure
To allocate this additional space in an application, use one of the following methods:
For a TAL application, use the DATAPAGES compiler directive during compilation.
Specify DATAPAGES 64 to allocate the maximum amount.
For all applications, use the Binder SET EXTENDSTACK command after
compilation. Specify 64 PAGES to allocate the maximum amount.
When you run the program, specify 64 for the MEM option of the RUN command. If
you run the program from another application, specify 64 for the
PROCESS_CREATE_ or NEWPROCESS[NOWAIT] memory-pages parameter.
Move user data from the user data segment to an extended data segment to free
up more data stack space for the call to SORTMERGESTART.
For information about TAL compiler directives, see the TAL Reference Manual. For
information about the Binder SET command, see the Binder Manual.
In addition to the requirements listed in the table above, if you specify either the
SCRATCHON or NOSCRATCHON attributes in a SORT DEFINE, FastSort requires up
to 138 additional words of stack space. To learn how FastSort uses this space to build
a pool of scratch volumes, see Table 5-1 on page 5-5.
If your application process starts a new process, FastSort also requires 30 to 35
additional words of stack space to support the PROCESS_CREATE_ procedure.
SORTBUILDPARM Procedure
Use SORTBUILDPARM to specify the following:
A group of processors (CPUs) for a parallel sort run
A buffer for record blocking
A list of volumes to be used or not used for scratch files
Operation Description Additional Space
Simple Less than 5 keys, no subsorts, 1 input file 2 pages
Medium Greater than 5 keys, either subsorts or multiple input files 3 pages
Complex Greater than 5 keys, subsorts, multiple input files 4 pages