Command reference / prog

DSPCMD

Display Command

The Display Command (DSPCMD) command shows some of the values that were specified for parameters in the Create Command (CRTCMD) command. The command name is required; output can be shown at the display station or printed with the job's spooled output.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

CMD Command

Specifies the command whose information is to be displayed. This is a required parameter. The first qualifier is the command name; the second qualifier is the library.

Type
*QUAL
Required
Yes
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 command. If no current library is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Command Command

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *LIBL, *CURLIB

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 command attributes are shown at the display station. If the command is running in batch mode, the attributes are printed.
*PRINT
The command attributes are printed.

Examples

DSPCMD CMD(PAYROLL)

This command shows all current user-assigned parameter values for the user-defined command PAYROLL at the display station.

IBM command documentation

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