| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Analyze Command Performance (ANZCMDPFR) command measures the performance of a single CL command or a set of CL commands. For a single command, performance information is collected from when the command starts until the command ends. For a set of commands, performance information is collected from the start of the first command in the set until the last command in the set ends.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| CMD | Command | Command string | Optional |
| CMDFILE | Command file | Qualified object name | Optional |
| Qualifier 1: Command file | Name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| CMDMBR | Command member | Name, *FIRST | Optional |
| OUTPUT | Output | *MSG, *OUTFILE | Optional |
| OUTFILE | File to receive output | Qualified object name | Optional |
| Qualifier 1: File to receive output | Name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| OUTMBR | Output member options | Element list | Optional |
| Element 1: Member to receive output | Name, *FIRST | ||
| Element 2: Replace or add records | *REPLACE, *ADD |
| Top |
Specifies a CL command whose performance is to be analyzed.
Note: A value must be specified for either this parameter or the Command file (CMDFILE) parameter. You cannot specify a value for both the CMD and CMDFILE parameters.
| Top |
Specifies the database source file that contains the source member that contains the CL commands whose performance is to be analyzed.
Note: A value must be specified for either this parameter or the Command (CMD) parameter. You cannot specify a value for both the CMD and CMDFILE parameters.
Qualifier 1: Command file
Qualifier 2: Library
| Top |
Specifies the database source file member that contains the CL commands whose performance is to be analyzed.
| Top |
Specifies where the output from the command is sent.
| Top |
Specifies the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library.
Note: If a new file is created, the text describing that file is "Output file for ANZCMDPFR" and the public authority is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority. The database format (QAPYANZR) of the output file is the same as that used in the IBM-supplied database file QAPYANZC.
Qualifier 1: File to receive output
Qualifier 2: Library
| Top |
Specifies the name of the database file member that receives the output of the command.
Element 1: Member to receive output
Element 2: Replace or add records
| Top |
Example 1: Analyzing Performance of a Single Command
ANZCMDPFR CMD(CRTLIB LIB(TST))
This command analyzes the performance of the CRTLIB LIB(TST) command. The results are sent as messages.
Example 2: Analyzing a Command and Writing Results to a File
ANZCMDPFR CMD(DSPLIB LIB(QGPL)) OUTPUT(*OUTFILE)
OUTFILE(MYLIB/MYFILE)
This command analyzes the performance of the DSPLIB LIB(QGPL) command. The results are written to the first member of database file MYFILE in library MYLIB.
Example 3: Analyzing Performance of a Set of CL Commands
ANZCMDPFR CMDFILE(MYLIB/MYCMDFILE)
CMDMBR(CMDS)
This command analyzes the performance of the set of CL commands located in the source member named CMDS in file MYCMDFILE in library MYLIB. The results are sent as messages.
| Top |
*ESCAPE Messages
| Top |