MPE/iX Intrinsics Reference Manual (32650-90905)

Chapter 10 613
Command Definitions (QUIT-ZSIZE)
SORTINPUT
SORTINPUT
NM and CM callable.
Provides an alternative method of specifying how records are supplied to the SORT
program.
Syntax
CA I16V
SORTINPUT(
record,length
);
Parameters
record
16-bit character array
Passes the next input data record.
length
16-bit signed integer
Passes the length of the
record
parameter value. This value should be
long enough to contain all specified keys, but not longer than the record
size specified in the
reclen
parameter of the SORTINIT intrinsic.
Operation Notes
Use this intrinsic only if the
inputfiles
parameter in a call to the SORTINIT intrinsic was
not used. SORTINPUT passes the input records, one at a time, to the SORT program. A call
to SORTINPUT follows a call to SORTINIT and precedes all calls to the SORTOUTPUT and
SORTEND intrinsics.
NOTE If you are coding a CM application, you must call SORTEND in the same
routine in which you call the SORTINIT intrinsic. This is not the case when
you code an NM application.
Condition Codes
CCE (2) Request granted. No error occurred during the SORT program.
CCG (0) Not returned.
CCL (1) Request denied. An error occurred during the SORT program.
Related Information
Intrinsics HPSORT, HPMERGE
Manual SORT-MERGE/XL Programmer's Guide