Command reference / msg

DSPMSGD

Display Message Description

Shows detailed information about the messages in a message file. The descriptions of specific messages, or of a range of messages in one message file, can be specified by their identifiers, or all messages in one message file can be specified. The QSYS2.MESSAGE_FILE_DATA view returns similar information.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

RANGE Range of message identifiers

Specifies the range of message identifiers in the specified message file for which message descriptions are displayed or printed. If the starting identifier is not specified, descriptions begin with the first message in the file.

Type
*ELEM
Required
No
Default
*FIRST
Case
Uppercase

Suggested / special values: *ALL

*ALL
All message descriptions in the message file specified are displayed or printed. This value can only be specified in the first element.
*FIRST
The first message in the file is the first message whose description is displayed or printed (starting identifier element).
*ONLY
Only the starting message identifier has its description printed, if DETAIL(*FULL) is specified (ending identifier element; default).
*LAST
The last message in the file is the last message whose description is printed (ending identifier element).
Elements in order

Lower value Lower value

Type
*NAME
Required
No
Default
*FIRST
Length
7
Case
Uppercase

Suggested / special values: *FIRST

Upper value Upper value

Type
*NAME
Required
No
Default
*ONLY
Length
7
Case
Uppercase

Suggested / special values: *ONLY, *LAST

MSGF Message file

Specifies the message file from which the message descriptions are to be shown.

Type
*QUAL
Required
No
Case
Uppercase
*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the message file; if none, QGPL is used.
*USRLIBL
Only the libraries in the user portion of the job's library list are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Message file Message file

Type
*NAME
Required
No
Default
QCPFMSG
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *USRLIBL

DETAIL Detail

Specifies the amount of detail about the message that is displayed or printed.

Type
*CHAR
Required
No
Default
*FULL
Length
6
Case
Uppercase

Allowed values: *BASIC, *FULL

*FULL
Detailed message descriptions are displayed or printed. If an asterisk (*) is specified for OUTPUT, a menu lets the user select which details to view.
*BASIC
A list of the specified message identifiers, their severity, and messages is displayed or printed. Interactive users can choose to show or print detailed descriptions from the list.

FMTTXT Format message text

Specifies whether messages and help information are displayed or printed in a formatted style.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
The messages and help information are displayed or printed in a formatted style.
*NO
The messages and help information are displayed or printed in an unformatted style.

OUTPUT Output

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
*PRINT
The output is printed with the job's spooled output.

Examples

DSPMSGD RANGE(CPF1100 CPF3600) MSGF(QSYS/QCPFMSG)

From a display station, the descriptions of the specified messages are shown on the display. From a batch job, the descriptions are sent to the job's spooled output queue.

DSPMSGD RANGE(*FIRST IDU0571) MSGF(QIDU/QIDUMSG) FMTTXT(*NO) OUTPUT(*PRINT)

Prints the message descriptions from the first message in the QIDUMSG message file through message IDU0571, unformatted.

IBM command documentation

Generated from os/cl/catalog/DSPMSGD.json and os/cl/help/DSPMSGD.json.