ZHALT

The ZHALT command stops program execution and causes GT.M to return control to the invoking environment/program with a return code.

The format of the ZHALT command is:

ZHALT[:tvexpr] [intexpr]

Examples of ZHALT

Example:

GTM>zhalt 230
$ echo $?
230

Example:

GTM>zhalt 257
$ echo $?
1