MPE/iX Intrinsics Reference Manual (32650-90875)
Chapter 10 607
Command Definitions (QUIT-ZSIZE)
SORTINIT
SORTINIT
NM and CM callable.
Initiates the SORT program.
Syntax
I16A I16A I16V
SORTINIT(
inputfiles,outputfiles,outputoption
,
I16V I32V I16V I16A
reclength,numrecs,numkeys,keys
,
I16A PROC PROC I16A
altseq,keycompare,errorproc,statistics
,
I16 I16 I16 I16A
failure,errorparm,spaceallocation,charseq
);
Parameters
inputfiles
16-bit signed integer array (optional)
Passes the file identification numbers of the input files to be sorted. The
last element of this array should be set to zero. If the files are opened with
either the NOBUF or MR (multirecord) access option (
aoption
), the SORT
program performs the buffering and blocking/deblocking. $NULL is not a
valid input file.
outputfiles
16-bit signed integer array (optional)
Passes the file identification number of the output file. The second array
element must be a zero, indicating the end of the array. If the files are
opened with either the NOBUF or MR (multirecord) access option (
aoption
),
the SORT program performs the buffering and blocking/deblocking.
outputoption
16-bit signed integer by value (optional)
Passes a value that determines the format of the output records:
Value Meaning
0 Output record is the same as the input record (default).
1 Output record is a 32-bit integer whose value is the logical
(relative) record number of the record.
2 Output record contains only the key fields, concatenated
together with the major keys on the left, followed by the
remaining keys.
3 Output record is the logical record number followed by the
key fields.
reclength
16-bit signed integer by value (optional)