Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SETMSG—set next message z/OS ISPF Services Guide SC19-3626-00 |
|
The SETMSG service allows a dialog function to display a message on the next panel that is written by ISPF to the terminal. The next panel does not have to be displayed as a result of action taken by the function routine. In fact, the function routine can have terminated before the next panel is displayed. The specified message is retrieved from the message library at the time the set message request is issued. Values for all variables defined in the message are substituted at this time and the message is saved in a message area for the application. When the next panel is displayed, the message is retrieved from the save area and displayed on the panel. If multiple set-message requests have been issued before a panel is displayed, only the last message is displayed. You can use the optional COND parameter to request that the specified message is to be displayed only if there is no prior SETMSG request pending. A message specified on the panel display request is overridden by any outstanding set next message request. A message that has been set with SETMSG is displayed the next time any full-screen output is sent to the display, regardless of whether that output is a panel, table display, Browse data, or Edit data. The SETMSG service executed in the batch environment causes the message to be written to the log at the point at which it would normally be sent to the screen for display. The message is preserved across CONTROL NONDISPL; that is, the message is displayed on the next actual output to the terminal. If the next panel is processed in non-display mode, the message remains pending, to be displayed with any following panel that is processed in display mode. If the message refers to a help panel, the help panel should not include substitutable variables. Variables in related help panels contain the values current at the time the HELP command is issued, not at the time the SETMSG service is invoked. Command invocation formatCall invocation formatParameters
Return codesThese return codes are possible:
Example 1 On
the next panel that is displayed, put a message whose ID, ABCX015,
is in a dialog variable named TERMSG.
Set
the program variable BUFFER to contain:
Set
program variable BUFLEN to the length of the variable BUFFER. Enter
the command:
or alternately
Example 2This SETMSG and DISPLAY request displays message TSTA110 in a message
pop-up window that requires a response from the end user before interaction
with the underlying panel is possible. The message pop-up window is
positioned relative to the field FLD1.
Using this message definition for TSTA110
Results in:
|
Copyright IBM Corporation 1990, 2014
|