Display Service Program (DSPSRVPGM)

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

The Display Service Program (DSPSRVPGM) command displays information about a service program, including the creation and processing attributes of the service program, information about the compiler, and the size of the service program.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
SRVPGM Service program Qualified object name Required, Positional 1
Qualifier 1: Service program Name
Qualifier 2: Library Name, *LIBL, *CURLIB
OUTPUT Output *, *PRINT Optional, Positional 2
DETAIL Detail Single values: *ALL
Other values (up to 10 repetitions): *BASIC, *SIZE, *MODULE, *SRVPGM, *PROCEXP, *DTAEXP, *ACTGRPEXP, *ACTGRPIMP, *SIGNATURE, *COPYRIGHT
Optional
Top

Service program (SRVPGM)

Specifies the service program for which information is displayed or printed.

This is a required parameter.

Qualifier 1: Service program

name
Specify the name of the service program.

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 searched. If no library is specified as the current library for the job, the QGPL library is used.
name
Specify the name of the library to be searched.
Top

Output (OUTPUT)

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

This is a required parameter.

*
Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
*PRINT
The output is printed with the job's spooled output.
Top

Detail (DETAIL)

Specifies the type of information displayed for the service program.

This is a required parameter.

Single values

*ALL
All of the DETAIL information types (*BASIC, *SIZE, *MODULE, *SRVPGM, *PROCEXP, *DTAEXP, *ACTGRPEXP, *ACTGRPIMP, *SIGNATURE, and *COPYRIGHT) are shown on the display. If you chose to have the information displayed on a screen, you would be able to scroll through the information for each type of information, but would have to press Enter (or PF12) to go from one information section to the next.

Other values (up to 8 repetitions)

*BASIC
General service program information is shown.
*SIZE
The size and size limits for this service program are shown.
*MODULE
A list of the module objects bound by this service program is shown. The library shown for each module is the library that the module was in when the service program was first created. If the module has been replaced by a module from a different library, this library name remains the name of the library that the module was in when the service program was created.
*SRVPGM
A list of the service program objects bound by this service program is shown.
*PROCEXP
A list of the procedures exported from a service program and specified in the binding language is shown. The exports are only for the current signature.
*DTAEXP
A list of the data items exported from a service program and specified in the binding language is shown. The exports are only for the current signature.
*ACTGRPEXP
A list is shown of the data items exported to the activation group specified in the data export entry in the binding specifications.
*ACTGRPIMP
A list is shown of the imports that are resolved by weak exports that had been exported to the activation group directory.
*SIGNATURE
A list of the signatures for this service program is shown. The first signature in the list is the current signature.
*COPYRIGHT
A list of the copyrights for this service program is shown.
Top

Examples

DSPSRVPGM   SRVPGM(COACH)

This command displays a service program object named COACH.

Top

Error messages

*ESCAPE Messages

CPF2150
Object information function failed.
CPF2151
Operation failed for &2 in &1 type *&3.
CPF8122
&8 damage on library &4.
CPF8123
Damage on object information for library &4.
CPF813D
Service program &4 in &9 damaged.
CPF9801
Object &2 in library &3 not found.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9806
Cannot perform function for object &2 in library &3.
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.
CPF9830
Cannot assign library &1.
CPF9871
Error occurred while processing.
Top