FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-10
SORTERRORSUM Procedure
returns 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
SORTMERGESTART.
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:
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.
Example
detail^status := SORTERRORDETAIL (sortblock);
SORTERRORSUM Procedure
Use SORTERRORSUM to obtain the information that SORTERROR and
SORTERRORDETAIL provide and to identify the cause of the last error. In parallel
sorting, SORTERRORSUM specifies the process and processor (CPU) in which the
last error occurred.
length returned value
INT
returns the number of characters in the error message.
Parameter
Word
Bits
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
15
High-order File system or NEWPROCESS(NOWAIT) error code
Low-order FastSort input file index FastSort error code
{ length := } SORTERRORSUM ( ctlblock ! i
{ CALL } ,[ buffer ] ! o
,[ error-code ] ! o
,[ error-source ] ! o
,[ subsort-index ] ! o
,[ subsort-id ] ) ! o