FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-14
SORTMERGERECEIVE Procedure
ctlblock input
INT:ref:200
is the same global storage array you name in the call to SORTMERGESTART. You
should not rely on the information in ctlblock, because this information can
change without warning.
record-loc output
INT:ref:*
is a memory location for receiving a record. The maximum record size from
SORTMERGESTART determines the maximum length of this buffer. You must
specify record-loc or record-loc-ext, but you cannot specify both. For
buffer size of 32 KB, the record-loc cannot be used, instead record-loc-ext
must be used.
length output
INT:ref:1
receives the length, in bytes, of the record retrieved. A value of –1 indicates there
are no more records to return.
spare1 and spare2 reserved
are reserved for future parameters. Specifying a value for spare1 or spare2
causes an error. However, if you specify record-loc-ext, you must put the
commas in the call to reserve places for these parameters.
record-loc-ext output
INT(32):ref:*
is an extended memory location for receiving a record. You must specify record-
loc-ext or record-loc, but you cannot specify both parameters. For buffer size
of 32 KB, only the record-loc-ext must be used.
Guidelines
Follow these guidelines when you call the SORTMERGERECEIVE procedure.
Omitting the Name of the Output File
If you omit the out-file-name parameter from the call to SORTMERGESTART or if
out-file-name equals all blanks, you must call SORTMERGERECEIVE to return
the output records, one for each call, to the calling process. You specify the format for
the output records in the format parameter of SORTMERGESTART. SORTPROG
produces output records in any of these formats:
The entire record