FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-11
SORTERRORSUM 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.
buffer output
INT:ref:*
is a 16-word integer array that receives the error message text. SORTPROG does
not pad the text with blanks if the buffer is shorter than 16 words. Any bytes to the
right of the text remain unchanged.
error-code output
INT(32)
receives error codes and the index of an input file in a double-word integer. The
high-order word contains the file-system or NEWPROCESS error code. The low-
order word contains the FastSort error code in the low-order byte and an index
identifying the input file that caused the error in the high-order byte. The index is
one of those in the array of file names created by the in-file-name parameter of
the SORTMERGESTART procedure.
If no input file caused the error or if no error is outstanding, the low-order bits
0 through 7 are 0.
This is the format for the double-word integer:
error-source output
INT:ref:1
is a buffer that specifies the cause of the last FastSort error; error-source can
be one of the following values:
Value Cause of Error
–1 The information is not available.
1 Input file
2 Output file
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Parameter Word
High-Order
Low-Order
Bits
File-System or NEWPROCESS[NOWAIT] Error Code
FastSort Input File Index
FastSort Error Code
VST503.vsd