FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-5
SORTBUILDPARM Procedure
use the restart flags, it must call SORTMERGESTATISTICS or an error must end
the SORTPROG process.
define-name input
INT:ref:12
is an optional 12-word array that specifies the SORT DEFINE name to be used.
For more information, see Section 7, Using SORT and SUBSORT DEFINEs.
reserved1 and reserved2
are reserved for future parameters. If you specify a value for reserved1 or
reserved2, FastSort returns an error.
scratchvols input
INT:ref:*
is a pointer to an array of the form shown in Table 5-1.
Using 32 KB Buffers
FastSort supports buffers up to 32 KB.
Example
build^status := SORTBUILDPARM (sortblock,,,
blockbuf,
dblbuff,
32768);
FastSort supports only buffered interface for records greater than 4072 bytes.
Table 5-1. SORTBUILDPARM scratchvols Structure
Word Description
0:7 Eight words reserved for use by FastSort library procedures.
8 Set to zero if SORTPROG should use specified volumes for scratch files.
Set to one if SORTPROG should not use specified volumes for scratch files.
9 The number of volumes specified in the following list. The range is 1 to 32.
10:13* The first entry on the list of volume names. The volume name must be of the
form $data, $data*, $sp?o*, and so on. The volume name must be eight
bytes long, blank padded on the right. There are no list separators.
:
:
:
137
:
:
:
If there are 32 volumes on the list, the final word of the array is word 137.
* Words 14 through 137 are optional.