Display Command (DSPCMD)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Command (DSPCMD) command shows some of the values that were specified for parameters in the Create Command (CRTCMD) command.

Top

Parameters

Keyword Description Choices Notes
CMD Command Qualified object name Required, Positional 1
Qualifier 1: Command Name
Qualifier 2: Library Name, *LIBL, *CURLIB
OUTPUT Output *, *PRINT Optional, Positional 2
Top

Command (CMD)

Specifies the command whose information is to be displayed.

This is a required parameter.

Qualifier 1: Command

name
Specify the name of the command to be shown.

Qualifier 2: Library

*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 library is specified as the current library for the job, QGPL is used.
name
Specify the name of the library that contains the command.
Top

Output (OUTPUT)

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

*
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.
Top

Examples

DSPCMD   CMD(PAYROLL)

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

Top

Error messages

*ESCAPE Messages

CPF2150
Object information function failed.
CPF2151
Operation failed for &2 in &1 type *&3.
CPF6210
Command &1 in library &2 not found.
CPF6250
Cannot display or retrieve command &1 in library &2.
CPF7D41
Error occurred while logging order assistance request.
CPF7D42
Error occurred while performing database operation.
CPF8103
Command &4 in &9 damaged.
CPF8122
&8 damage on library &4.
CPF8123
Damage on object information for library &4.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9805
Object &2 in library &3 destroyed.
CPF9807
One or more libraries in library list deleted.
CPF9808
Cannot allocate one or more libraries on library list.
CPF9810
Library &1 not found.
CPF9820
Not authorized to use library &1.
CPF9824
Not authorized to command &1 in library &2.
CPF9871
Error occurred while processing.
Top