z/OS ISPF Services Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


System variables used to format error messages

z/OS ISPF Services Guide
SC19-3626-00

If an error occurs, an error message is formatted before control returns to the function. This list defines the contents of the system variables that are used to format error messages:

Variables
Contents
ZERRMSG
Message ID.
ZERRSM
Short-message text in which variables have been resolved.
ZERRLM
Long-message text in which variables have been resolved.
ZERRHM
The name of a Help panel, if one was specified in the message definition.
ZERRALRM
The value YES if an alarm was specified in the message definition (.ALARM=YES); otherwise, the value NO.

ZERRMSG, ZERRSM, and ZERRLM are changed only when the return code from a DM component service is greater than 8.

These system variables are in the function pool, if it exists. Otherwise, they are in the shared variable pool.

The function can display the message, log the message, or both, simply by invoking the appropriate service with the message ID ISRZ002. For example:
ISPEXEC  SETMSG  MSG( ISRZ002 )
ISPEXEC  LOG  MSG( ISRZ002 )

The service provides the short- and long-message text, the name of the corresponding help panel, and the alarm setting for your use.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014