Command reference / prog

DSPPGM

Display Program

Displays information about a program: the compiler, the source it was created from, certain processing attributes, its size, and the number of parameters that must be passed when it is called. The QSYS2.BOUND_MODULE_INFO, QSYS2.BOUND_SRVPGM_INFO, QSYS2.PROGRAM_EXPORT_IMPORT_INFO, and QSYS2.PROGRAM_INFO views return similar information.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

PGM Program

Specifies the program for which information is displayed. Required.

Type
*QUAL
Required
Yes
Case
Uppercase
*LIBL
Searches all libraries in the thread's library list until the first match is found.
*CURLIB
Uses the thread's current library to locate the program; if none is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Program Program

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 output is shown at the requesting workstation or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Shown if requested by an interactive job, or printed with the job's spooled output if requested by a batch job.
*PRINT
Printed with the job's spooled output.

DETAIL Detail

Specifies the type of information displayed. More than one value can be given, but the list must not include *ALL, which must be specified alone. Only *ALL or *BASIC apply to OPM programs; other values are ignored for them.

Type
*CHAR
Required
No
Default
*ALL
Length
10
List limit
7
Case
Uppercase

Allowed values: *ALL, *BASIC, *SIZE, *MODULE, *ACTGRPEXP, *ACTGRPIMP, *SRVPGM, *COPYRIGHT

*ALL
Shows all DETAIL information types (*BASIC, *SIZE, *MODULE, *SRVPGM, *ACTGRPEXP, *ACTGRPIMP, *COPYRIGHT).
*BASIC
Shows general program information.
*SIZE
Shows the size and size limits for the program.
*MODULE
Shows a list of the module objects bound by the program.
*SRVPGM
Shows a list of the service programs bound by the program.
*ACTGRPEXP
Shows the data items exported to the activation group named in the binding specifications' data export entry.
*ACTGRPIMP
Shows the imports resolved by weak exports that were exported to the activation group directory.
*COPYRIGHT
Shows the copyrights for the program.

Examples

DSPPGM PGM(LIB01/PAYROLL)

Displays information about program PAYROLL in library LIB01. It is shown at the display station if requested by an interactive job, or printed if requested by a batch job.

DSPPGM PGM(CUSINQ) OUTPUT(*PRINT)

Displays information about program CUSINQ. The library list is used to find the program, and the information is printed.

IBM command documentation

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