FastSort Manual

Using FastSort System Procedures
FastSort Manual429834-003
5-9
SORTERROR Procedure
SORTERROR Procedure
Use SORTERROR to provide the message text for the last FastSort error code
returned by a FastSort procedure.
length returned value
INT
returns the number of characters in the error message.
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:32
is a 32-word integer array that receives the FastSort error code message text.
SORTPROG does not pad the text with blanks if the buffer is shorter than 32
words. Any bytes to the right of the text remain unchanged.
Example
textlen := SORTERROR (sortblock,
outbuf);
SORTERRORDETAIL Procedure
Use SORTERRORDETAIL to obtain the file-system or NEWPROCESS error code and
the FastSort error code for the most recent error. If an input file caused the error,
SORTERRORDETAIL also uses an index to identify the file in the array of file names
created by the in-file-name parameter of the SORTMERGESTART procedure.
status returned value
INT(32)
{ length := } SORTERROR ( ctlblock ! i
{ CALL } , buffer ) ! o
{ status := } SORTERRORDETAIL ( ctlblock ) ! i
{ CALL }