Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Display Message Description (DSPMSGD) command shows detailed information about the messages in a message file. The descriptions of specific messages, or a range of messages in one message file, can be specified by their identifiers, or all messages in one message file can be specified.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
RANGE | Range of message identifiers | Single values: *ALL Other values: Element list |
Optional, Positional 1 |
Element 1: Lower value | Name, *FIRST | ||
Element 2: Upper value | Name, *ONLY, *LAST | ||
MSGF | Message file | Qualified object name | Optional, Positional 2 |
Qualifier 1: Message file | Name, QCPFMSG | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL | ||
DETAIL | Detail | *BASIC, *FULL | Optional |
FMTTXT | Format message text | *YES, *NO | Optional |
OUTPUT | Output | Optional |
Top |
Specifies the range of message identifiers in the specified message file for which message descriptions are displayed or printed. All message descriptions in the message file specified for the Message file (MSGF) parameter can be displayed or printed by specifying *ALL on this parameter.
If the starting message identifier is not specified, the message descriptions begin with the first message in the specified message file.
Note: The ending message identifier is ignored when DETAIL(*BASIC) is specified with OUTPUT(*) and the list of message identifiers is displayed interactively.
Single values
Element 1: Lower value
The first element of this parameter, called the starting message identifier, specifies the message identifier of the first message description to display or print.
Element 2: Upper value
The second element of this parameter, called the ending message identifier, specifies the message identifier for the last message description to be printed. This value is ignored if OUTPUT(*) is specified.
Top |
Specifies the message file from which the message descriptions are to be shown.
Qualifier 1: Message file
Qualifier 2: Library
Top |
Specifies the amount of detail about the message that is displayed or printed.
Top |
Specifies whether messages and help information are displayed or printed in a formatted style.
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Top |
Example 1: Displaying or Printing Descriptions
DSPMSGD RANGE(CPF1100 CPF3600) MSGF(QSYS/QCPFMSG)
If this command is entered from a display station, the descriptions of the specified messages are shown on the display. If this command is entered from a batch job, the descriptions of the messages are sent to the job's spooled output queue.
Example 2: Printing Message Descriptions
DSPMSGD RANGE(*FIRST IDU0571) MSGF(QIDU/QIDUMSG) FMTTXT(*NO) OUTPUT(*PRINT)
This command prints the message descriptions for message identifiers in the file that are in the following range: from the first message in the QIDUMSG message file through the message whose identifier is IDU0571. The message descriptions are not formatted.
Top |
*ESCAPE Messages
Top |