Command reference / prog

DSPSRVPGM

Display Service Program

Displays information about a service program, including its creation and processing attributes, compiler information, and size. 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

SRVPGM Service program

Specifies the service program whose information is displayed or printed. This parameter is required. Its library qualifier accepts special values.

Type
*QUAL
Required
Yes
Case
Uppercase
*LIBL
All libraries in the thread's library list are searched until the first match is found.
*CURLIB
The job's current library is searched, or QGPL if no current library is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Service program Service 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 workstation or printed with the job's spooled output. This parameter is required.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Output from an interactive job is shown on the display, and output from a batch job is printed with the job's spooled output.
*PRINT
The output is printed with the job's spooled output.

DETAIL Detail

Specifies the types of information displayed for the service program. This parameter is required.

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

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

*ALL
All DETAIL information types are shown, with a scroll-and-Enter step between sections when on a display.
*BASIC
General service program information is shown.
*SIZE
The size and size limits of the service program are shown.
*MODULE
The module objects bound by the service program are listed, with the library each module was in when the program was created.
*SRVPGM
The service program objects bound by this service program are listed.
*PROCEXP
The procedures exported from the service program in the binding language are listed for the current signature.
*DTAEXP
The data items exported from the service program in the binding language are listed for the current signature.
*ACTGRPEXP
The data items exported to the activation group named in the binding specifications are listed.
*ACTGRPIMP
The imports resolved by weak exports held in the activation group export directory are listed.
*SIGNATURE
The signatures of the service program are listed, with the first being the current signature.
*COPYRIGHT
The copyrights of the service program are listed.

Examples

DSPSRVPGM SRVPGM(COACH)

Displays the service program object named COACH.

IBM command documentation

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