| Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
The Work with Programs (WRKPGM) command allows you to show a list of programs from one or more libraries.
Restrictions:
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| PGM | Program | Qualified object name | Required, Positional 1 |
| Qualifier 1: Program | Generic name, name, *ALL | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL, *ALLUSR, *ALL | ||
| PGMATR | Program attribute | *ALL, ASM38, BAS, BAS38, CBL, CBLLE, CBL36, CBL38, CLE, CLLE, CLP, CLP38, CPPLE, CSP, DFU, DFUEXC, DFUNOTEXC, FTN, PAS, PAS38, PLI, PLI38, RMC, RPG, RPGLE, RPG36, RPG38 | Optional, Positional 2 |
| Top |
Specifies the programs to be shown.
This is a required parameter.
Qualifier 1: Program
Qualifier 2: Library
#CGULIB #DSULIB #SEULIB #COBLIB #RPGLIB #DFULIB #SDALIB
Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
QDSNX QRCLxxxxx QUSRDIRDB QUSRVI QGPL QSRVAGT QUSRIJS QUSRVxRxMx QGPL38 QSYS2 QUSRINFSKR QMGTC QSYS2xxxxx QUSRNOTES QMGTC2 QS36F QUSROND QMPGDATA QUSER38 QUSRPOSGS QMQMDATA QUSRADSM QUSRPOSSA QMQMPROC QUSRBRM QUSRPYMSVR QPFRDATA QUSRDIRCF QUSRRDARS QRCL QUSRDIRCL QUSRSYS
| Top |
Specifies whether only programs with a specific program attribute are shown.
| Top |
Example 1: Working with Control Language Programs
WRKPGM PGM(MYLIB/*ALL) PGMATR(CLP)
This command displays the Work with Programs panel, showing a list of all the programs with the attribute CLP (control language program) to which the user has some authority that are stored in library MYLIB.
Example 2: Working with Programs by Generic Name
WRKPGM PGM(AB*)
This command displays the Work with Programs panel, showing a list of all programs in the library list that have names beginning with the letters 'AB'.
| Top |
*ESCAPE Messages
| Top |