Examples of $ZMESSAGE()

Example:

    GTM> WRITE $ZMESSAGE(36)
    %SYSTEM-F-NOPRIV, no privilege for attempted operation
    
    GTM>
    

This uses $ZMESSAGE() to display the message string corresponding to code 36. Note that the display might vary depending on DCL SET MESSAGE commands issued prior to invoking GT.M.

Example:

    GTM> FOR i=32:1:36 WRITE !,$ZMESSAGE(i)
    

This FOR loop uses $ZMESSAGE() to display all severities of the NOPRIV error.