MPE/iX Intrinsics Reference Manual (32650-90905)

610 Chapter10
Command Definitions (QUIT-ZSIZE)
SORTINIT
Passes the maximum length of a record in characters. If you do not specify
reclength
, the record length is taken from the first file specified in the
inputfiles
parameter. If this parameter is not specified, the
inputfiles
parameter must be specified.
numrecs
32-bit signed integer by value (optional)
Passes the upper bound to the number of records to be sorted. If
numrecs
is not specified (or if all input files are not on the disk), the value of 10,000
(32-bit integer) is used. Otherwise, the value of this parameter is derived
from the file label (the end of file number of the input files).
numkeys
16-bit signed integer by value (optional)
Passes the number of keys used during the comparison of records. This
parameter can be >= 1. If the
numkeys
parameter is specified, the
keys
parameter must be specified and the
keycompare
parameter cannot be
specified. Together,
numkeys
and
keys
describe the way records are sorted.
keys
16-bit integer array (optional)
Passes information about the keys used during comparison of records. If
you specify the
keys
parameter, you must specify the
numkeys
parameter
and must not specify
keycompare
. Together,
keys
and
numkeys
describe
the way records are merged.
The first element gives the position of the first character of the key within
the record. The second element gives the number of characters in the key.
Bits (0:8) of the third element give the ordering sequence of the records (0
for ascending, 1 for descending). Bits (8:8) of the third element indicate the
type of data according to the following convention:
Value Meaning
0 8-bit unsigned integer
1 Twos complement (including 16-bit and 32-bit signed
integer)
2 Floating-point (including real and long)
3 Packed decimal
4 Display trailing sign
5 Packed decimal with even number of digits
6 Display leading sign
7 Display leading sign separate
8 Display trailing sign separate
9 Character (using the collating sequence of
charseq
)
11 Short floating-point decimal
12 Floating-point decimal