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

SORTEND

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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




SETJCW


SORTERRORMESS