Command reference / prog

WRKSRVPGM

Work with Service Programs

The Work with Service Program (WRKSRVPGM) command allows you to display and work with a list of service programs from one or more libraries. Only the libraries to which you have use (*USE) authority are searched, and only the service programs to which you have some authority are shown on the display.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 2.

Restrictions

Parameters

SRVPGM Service program

Specifies the search process for service programs to be placed in the list. All service programs with names corresponding to the specified parameter value, and for which the user has authority, are shown. This is a required parameter. The first qualifier is the service program name or generic name; the second qualifier is the library.

Type
*QUAL
Required
No
Case
Uppercase
*ALL
All service programs in the libraries identified in the library qualifier are shown.
*LIBL
All libraries in the library list for the current thread are searched.
*CURLIB
The current library for the job is searched. If no current library is set, QGPL is used.
*USRLIBL
Only the libraries in the user portion of the job's library list are searched.
*ALL (lib)
All libraries in the system portion of the job's library list, including QSYS, are searched.
*ALLUSR
All user libraries (names not beginning with Q, plus selected IBM-supplied Qxxx libraries) are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Service program Service program

Type
*GENERIC
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR

OUTPUT Output

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

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
Displayed for interactive jobs; printed with the job's spooled output for non-interactive jobs.
*PRINT
Printed with the job's spooled output.

Examples

WRKSRVPGM SRVPGM(COMPLETE)

This command displays the Work with Service Programs panel, showing a list of service programs named COMPLETE that are located using the library list.

IBM command documentation

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