The Analyze Command Performance (ANZCMDPFR) does exactly what it say – analyzes the performance of a command. This is a very simple utility that reports the wall-clock time spent on the specified command and gives you other performance-related information. This command was a little utility initially used internally by the IBM i development team; it was added to the operating system in the 6.1 release.
ANZCMDPFR is very simple to use. Simply put the command string you want to analyze on the Command (CMD) parameter and run the command. You can get the results in a message in the job’s job log, or you can have them written to a member in a database file. You can also use a database source file that contains a list of commands that you want to have the performance analyzed – which allows you to analyze the performance of a set of commands.
If you chose to have the results in a message, you’ll see CPCC711 – “ANZCMDPFR command completed successfully” – sent to the job’s job log. You need to take help on this message where you will find the performance details in the additional message information. You’ll find the elapsed time, the CPU time used, synchronous database and non-database reads and writes, and asynchronous database and non-database reads and writes.
If you analyze the performance of multiple commands, the performance summary in the message is the total resources used for all the commands in the file.
This blog post was edited for currency on January 31, 2020.
This blog post was originally published on IBMSystemsMag.com and is reproduced here by permission of IBM Systems Media.