CL Command Reference - DSPPGM

CL Command List > DSPPGM Reference

Description:

The Display Program (DSPPGM) command displays information about a program. The display includes information about the compiler, the source from which the program was created, certain processing attributes of the program, the size of the program, and the number of parameters that must be passed to the program when it is called.

Restrictions:

. You must have read (*READ) authority to the program and execute (*EXECUTE) authority to the library to use this command.

. You must have use (*USE) authority to the program when DETAIL(*MODULE) is specified.


Examples:

Example 1: Displaying Program Information

DSPPGM PGM(LIB01/PAYROLL)

This command displays information about the program named PAYROLL in library LIB01. The display is shown at the display station if requested by an interactive job, or printed if requested by a batch job.



Example 2: Printing Program Information

DSPPGM PGM(CUSINQ) OUTPUT(*PRINT)

This command displays information about a program named CUSINQ. The library list is used to find the program, and the information is printed.