z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Edit macro messages

z/OS ISPF Edit and Edit Macros
SC19-3621-00

You can display messages from an edit macro the same way you do from an ISPF dialog.
  • Use SETMSG, which causes the message to appear on whatever panel is displayed next.
  • Use DISPLAY with the MSG keyword. This is useful if the macro displays panels of its own.
ISPF provides three generic messages for use in dialogs where you want to generate the message text or when you do not want a separate message library.
ISRZ000  '&ZEDSMSG'  .ALARM = NO   .HELP = ISR2MACR
'&ZEDLMSG'
ISRZ001  '&ZEDSMSG'  .ALARM = YES  .HELP = ISR2MACR
'&ZEDLMSG'
ISRZ002  '&ZERRSM'  .ALARM = &ZERRALRM  .HELP = &ZERRHM
'&ZERRLM'

For example, if you want your macro to sound an alarm and to issue the short message INVALID PARAMETER and the long message PARAMETER MUST BE 4 DIGITS, use these statements:

CLIST statements

SET &ZEDSMSG = &STR(INVALID PARAMETER)
SET &ZEDLMSG = &STR(PARAMETER MUST BE 4 DIGITS)
ISPEXEC SETMSG MSG(ISRZ001)

REXX statements

ADDRESS ISPEXEC
zedsmsg = 'Invalid Parameter'
zedlmsg = 'Parameter must be 4 digits'
'SETMSG MSG(ISRZ001)'
Note: ZEDLMSG only displays when you enter the HELP command.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014