Display Class (DSPCLS)

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

The Display Class (DSPCLS) command displays the attributes of a class.

Top

Parameters

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

Class (CLS)

Specifies the name and library of the class whose attributes are to be displayed.

This is a required parameter.

Qualifier 1: Class

name
Specify the name of the class.

Qualifier 2: Library

*LIBL
All libraries in the thread's library list are searched until a match is found.
*CURLIB
The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
name
Specify the library where the class is located.
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 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.
Top

Examples

DSPCLS   CLS(CLASS1)  OUTPUT(*PRINT)

This command directs the attributes of class CLASS1 to the job's output spooling queue to be printed.

Top

Error messages

*ESCAPE Messages

CPF1029
No authority to library &1.
CPF1039
Class library &1 not found.
CPF1065
Class &1 in library &2 not found.
CPF1067
Cannot allocate library &1.
CPF1068
Cannot allocate class &1 in library &2.
CPF1098
No authority to class &1 in library &2.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9850
Override of printer file &1 not allowed.
CPF9851
Overflow value for file &1 in &2 too small.
CPF9871
Error occurred while processing.
CPF9899
Error occurred during processing of command.
Top