$ZMessage()

Returns a message string associated with a specified status code .

The format for the $ZMESSAGE function is:

$ZM[ESSAGE](intexpr)

$ZMESSAGE() provides a tool for examining the message and/or mnemonic associated with a particular message code as reported in $ZSTATUS.

The $ZSTATUS Intrinsic Special Variable holds the message code and the message of the last non-Direct Mode GT.M error. For more information on $ZSTATUS, refer "Intrinsic Special Variables".

Examples of $ZMESSAGE()

Example:

GTM>write $zmessage(150373210)
%GTM-E-DIVZERO, Attempt to divide by zero
GTM>

This uses $ZMESSAGE() to display the message string corresponding to code 150373210.