| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Print Command Usage (PRTCMDUSG) command creates a cross-referenced listing of a specified group of CL commands that are used in a specified group of CL programs. The report shows, program by program, which of the specified commands are used in each program. The report can be used to identify which programs need to be recompiled because of changes that have been made to the command definition objects of commands specified on the PRTCMDUSG command. Note that this command can take a long time to run and can make a lot of printed output.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| CMD | Command | Values (up to 50 repetitions): Qualified object name | Required, Positional 1 |
| Qualifier 1: Command | Name | ||
| Qualifier 2: Library | Name, *LIBL | ||
| PGM | Program | Qualified object name | Optional, Positional 2 |
| Qualifier 1: Program | Generic name, name, *ALL | ||
| Qualifier 2: Library | Name, *USRLIBL, *CURLIB, *ALLUSR |
| Top |
Specifies the names of up to fifty CL commands for which specified programs are searched and printed in a report. The system searches the specified programs for every occurrence of each command you specify.
Note: PRTCMDUSG cannot be used to print the command usage for ILE CL programs and modules.
This is a required parameter.
Qualifier 1: Command
Qualifier 2: Library
| Top |
Specifies one or more CL programs that are searched for the specified commands. Only the programs and libraries for which you have some (any) authority are included in the report. This parameter also can specify that all (*ALL) programs in the specified library or libraries (*USRLIBL/*ALL, for example) are searched.
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 |
PRTCMDUSG CMD(CPYF) PGM(PAYROLL/*ALL)
This commands searches all CL programs in the library PAYROLL for the Copy File (CPYF) commands and prints the names of both the commands and the program.
| Top |
*ESCAPE Messages
| Top |