The ZMESSAGE command raises an exception condition based on the specified message code.
The format of the ZMESSAGE command is:
ZM[ESSAGE][:tvexpr] intexpr[:expr2][:...]
The required integer expression specifies the message code. There are two types of message codes:
3 lsb
Severity
Action
0
Warning
XECUTEs $ETRAP or $ZTRAP and terminates the process
1
Success
Displays the associated message on STDERR* and continues execution. It does not invoke $ETRAP or $ZTRAP.
2
Error
XECUTEs $ETRAP or $ZTRAP
3
Information
Displays the associated message on STDERR* and continues execution. It does not invoke $ETRAP or $ZTRAP.
4
Severe/Fatal
Displays the associated message on STDERR and terminates the process.
5,6,7
Unassigned/Unsupported
-
ZMESSAGE transforms two sets of error messages into SPCLZMSG errors: