HPlogo MPE/iX Intrinsics Reference Manual > Chapter 10 Command Definitions (QUIT-ZSIZE)

SORTINPUT

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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 SORTEND, SORTERRORMESS, SORTINIT, SORTOUTPUT, SORTSTAT, SORTTITLE, HPSORTEND, HPSORTERRORMESS, HPSORTINIT, HPSORTINPUT, HPSORTOUTPUT, HPSORTSTAT, HPSORTTITLE
Manuals SORT-MERGE/XL Programmer's Guide




SORTINIT


SORTOUTPUT