MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 10 611
Command Definitions (QUIT-ZSIZE)
SORTINIT
NOTE The integrity of the
keys
array must be maintained throughout the SORT
operation. Do not change it until after the SORTEND intrinsic has been called.
altseq
16-bit signed integer array (optional)
Passes an alternate collating sequence. Bits (0:8) of the first element are
specified according to the following table, where the sequence comprises
the columns and the data comprises the rows:
excess space above nonumber table—>
Bits (8:8) of the first element specify one less than the total number of
characters in the collating sequence (in this instance, chr(255) or %377).
The remaining array elements comprise the actual collating sequence
responsible for the particular SORT operation.
keycompare
procedure (reserved)
Do not specify this parameter, but maintain parameter position.
errorproc
procedure (reserved)
Do not specify this parameter, but maintain parameter position.
statistics
16-bit signed integer array (optional)
Returns information on the SORT operation, as follows:
Value Meaning
1, 2 Number of records sorted (32-bit integer)
3 Number of intermediate passes
4 Space available for sorting
5, 6 Number of comparisons (32-bit integer)
7,8 Number of scratch file I/Os (32-bit integer)
9,10 CPU time used in milliseconds (32-bit integer)
11,12 Elapsed time in milliseconds (32-bit integer)
failure
16-bit signed integer (optional)
Returns a true value (-1) if a fatal error occurs; otherwise returns a false
value (0). The value is set after each call to SORTINPUT and SORTOUTPUT.
Refer to the discussion of condition codes.
errorparm
16-bit signed integer (optional)
Returns the SORTLIB error number if an error occurs. Use the
ASCII EBCDIC ALTSEQ
ASCII chr(255) chr(2) chr(0)
EBCDIC chr(1) chr(255) undefined