FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-30
SORTMERGESTART Procedure
Other flags2 bits are not used and should be set to 0.
subsort-count input
INT:value
specifies the number of subsort processes from 2 to 8. Higher numbers can cause
run-time errors, depending on your system configuration and the system load. If
subsort-count equals n, scratch-file-name and process-start become
integer arrays of dimension n + 1.
spare5 reserved
INT:value
is reserved for a future parameter. If you specify a value for spare5, FastSort
returns an error.
Guidelines
Follow the guidelines on the next pages when you call the SORTMERGESTART
procedure.
Data Stack Space
In addition to the 350 words required by system procedure calls, the
SORTMERGESTART procedure requires additional data stack space that is not
automatically allocated by the BINSERV process during compilation. Refer to the table
at the beginning of this section as a guideline to determine the amount of additional
space you need to allocate for an application that calls SORTMERGESTART.
Key-Field Definitions in the Key-Block Array
The first word of the key-block array is the number of keys. After the first word, each
three words describe a key as follows:
Table 5-3
on page 5-31 lists the values for each three-word key description.
Word Description
0 Number of Keys
1:3 Description of First Key
4:6 Description of Second Key
. . .
Description of Last Key