Checking the Execution Status of Commands [ HP Link Editor/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Link Editor/XL Reference Manual
Checking the Execution Status of Commands
When you're running a batch job and an error occurs, HP Link Editor/XL
sets the system Job Control Word (JCW) to FATAL (octal 100000,
hexadecimal 8000, decimal 32768). This causes MPE XL to flush the
remainder of the job. By entering an MPE XL :CONTINUE command in the job
file, you can continue the job and then test the JCW.
The link editor sets two other Job Control Words when it finishes. Since
these Job Control Words are set in session and batch mode, you can test
them in command files and UDCs. The job control words are:
* LKEDCMD
LKEDCMD shows the status of the last command executed. If there
is an error, it contains the actual error number. If there is no
error, LKEDCMD is set to zero.
* LKEDSTAT
LKEDSTAT is set to FATAL (octal 100000, hexadecimal 8000, decimal
32768) when there is an error. If there is a warning, LKEDSTAT
contains WARN (octal 40000, hexadecimal 4000, decimal 16384). If
there are no errors or warnings, LKEDSTAT is set to zero.
MPE/iX 5.0 Documentation