MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 10 605
Command Definitions (QUIT-ZSIZE)
SORTEND
SORTEND
NM and CM callable.
Closes the scratch file and restores the data stack to its original state.
Syntax
SORTEND;
Operation Notes
Signals the beginning of the SORT program if the SORTOUTPUT intrinsic is not called.
Required if SORTINIT is called. Call SORTEND either after all calls to the output file are
completed by the SORTINIT intrinsic, or after all calls to the SORTOUTPUT intrinsic are
completed.
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. The value
of the
failure
parameter of the SORTINIT intrinsic is set to false.
CCG (0) Not returned.
CCL (1) Request denied. An error occurred during the SORT program. The value of
the
failure
parameter of the SORTINIT intrinsic is set to true.
Related Information
Intrinsics HPSORT, HPMERGE
Manual SORT-MERGE/XL Programmer's Guide