Record Input [ SORT-MERGE/XL Programmer's Guide ] MPE/iX 5.0 Documentation
SORT-MERGE/XL Programmer's Guide
Record Input
Record input is useful for sorting information that is entered
interactively or produced internally by a program. To input records to
SORT/XL you use the HPSORTINPUT intrinsic.
MERGE/XL does not allow record input. The syntax of HPSORTINPUT is:
HPSORTINPUT (status, buffer, length);
The buffer parameter contains the record to be input.
NOTE The buffer parameter is a character (byte) array. If your record
contains other data types, you must build buffer byte by byte.
The length parameter contains the length of the record.
NOTE This value must not be greater than the value of the reclength
parameter in the HPSORTINIT intrinsic.
An example of using HPSORTINPUT follows:
____________________________________________________________________
| |
| var |
| status : INTEGER; |
| buffer : packed array [1..80] of CHAR; |
| length : INTEGER; |
| : |
| HPSORTINPUT (status, buffer, length); |
____________________________________________________________________
To use record input:
* The reclength parameter in HPSORTINIT must be specified.
* The inputfiles parameter in HPSORTINIT must not be specified.
MPE/iX 5.0 Documentation