Currently, there’s no easy way to locate jobs that are spending a lot of CPU cycles over time or using up a lot of temporary storage. The PRTJOBRUNA (Print Job Run Attributes) command lets you print a list displaying most of the information available in the DSPJOB OPTION(*RUNA) panel, then sort it in either CPU time of temporary storage usage order. A couple of command parameters also give you the option to specify a lower limit of either usage to reduce the number of jobs included in the list. This list can be further narrowed by specifying a specific job type.
Download the save file containing the source code.