MSGID

Read syntax diagramSkip visual syntax diagram
>>-MSGID--+-ON--+----------------------------------------------><
          '-OFF-'   

With no parameters, displays a message indicating the message ID of the last message displayed. With a parameter of ON or OFF, indicates whether a message number is to be added to the beginning of interactive long message text. During entry to ISPF, the mode is initialized to OFF, and the message ID is not displayed as part of the long message text on interactive displays. If the addition of the message ID would cause long message text to be truncated, the message is displayed in a pop-up window.

Messages that have the message number included in the long message text will continue to display the message number, even when MSGID OFF is in effect. Also, the message number will appear twice when MSGID ON is in effect.

The MSGID ON/OFF command affects only the current logical screen, so when you are running in split screen, one screen can have MSGID ON and the other MSGID OFF. The MSGID command will return only the MSGID of a message for its own logical screen.

An option on the Log Data Set Defaults and List Data Set Defaults panels, which are choices on the Log/List pull-down on the ISPF Settings panel,
    Log Message ID . . . _  (/ = Yes)
allows you to select whether the message ID is written to the log data set as part of the long message text. The initial default is deselected. Note that not all lines in the log data set originate from a message member. Therefore, not every line in the log data set will have a message number associated with it.
Note: This facility does not affect long message text returned by the GETMSG service, messages displayed in the Error Box, or messages displayed by TRACEX.