SMFOD3 – SMF Daily Top 10 Batch Programs
The SMFOD3 inquiry generates several chart sets.
The chart sets show the daily top
nn
(default 10) batch programs using CPU, I/O, and central storage (memory) resources on your z/OS systems. For each resource type, one chart set shows the top ten batch programs using the resource over the entire Central Processing Complex (CPC), and another shows the top ten batch programs for each z/OS system. The inquiry reads detail data from the BATPGM (Batch User Program Activity) file, and summarizes the data by program name executed. The charted data reflects interval and step record information from all batch job steps that executed the top ten programs over all batch jobs.For CPU, the CPU time used by each of the top ten jobs is displayed using a vertical bar. The vertical bar is segmented by CPU time type (for example, TCB, SRB, I/O Interrupt, zIIP, zAAP, and so on).
Two horizontal lines show the program count (number of unique program executions) and interval count (number of interval records) encountered for the job. For short running steps, the interval count and program count values have similar values. For long running programs, the interval count exceeds the program count.
The program count data element (PGMCOUNT) is only set to one (1) for the last interval record for a long-running program. For jobs with a long-running program step that has not yet ended, PGMCOUNT is zero.
For I/O, I/O Service Units that are used by the top ten jobs are displayed. The vertical bar shows I/O service units for the top ten jobs. As with the CPU chart, the program and interval record count are shown using a horizontal line.
For device connect time, the device connect time that is used by each of the top ten batch jobs is displayed. The vertical bar is segmented by device class (for example, DASD, TAPE, Unit Record, and so on). As with the CPU chart, the program and interval record count are shown using a horizontal line.
For EXCPs, The final chart shows EXCPs by device class, again using a segmented vertical bar. The EXCPs used by each of the top ten batch jobs are displayed. The vertical bar is segmented by device class (for example, DASD, TAPE, Unit Record, and so on). As with the CPU chart, the program and interval record count are shown using a horizontal line.
For central storage, the top ten jobs with the largest average working set size are displayed. Average working set size is the average number of page frames in central storage that is used by the program. The page frame count is shown using a vertical bar and the program and interval record count are shown using a horizontal line.
The average working set size represents the average for all step and interval records that are encountered for each of the top ten batch jobs. For this inquiry, the average working set size may be of limited value because many batch jobs contain several execution steps with dissimilar execution characteristics.
Uses
It is important to understand which applications are the biggest consumers of limited and expensive IT resources. This inquiry shows the largest batch program consumers running on z/OS systems—at both the CPC and individual z/OS system level. Knowing not only the amount of resource that is consumed but also the frequency of program execution can help you to focus on tuning efforts where potential payback is greatest.
Data Extracts
This inquiry produces the following charts:
SMF Daily Top 10 Batch Pgms CPU CPCID

Left Y-axis
- PGMTCBTM
- Step TCB CPU Time
- PGMSRBTM
- Step SRB CPU Time
- PGMSPNTM
- Normalized zIIP CPU Time
- PGMZPNTM
- Normalized zAAP CPU Time
- PGMTCTM
- Step Initiator TCB Time
- PGMISRTM
- Step Initiator SRB Time
- PGMHIPTM
- Step Hiperspace CPU Time
- PGMIOITM
- Step I/O Interrupt CPU Time
- PGMRCTTM
- Step Region Control Task CPU Time
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Pgms CPU SYSID

Left Y-axis
- PGMTCBTM
- Step TCB CPU Time
- PGMSRBTM
- Step SRB CPU Time
- PGMSPNTM
- Normalized zIIP CPU Time
- PGMZPNTM
- Normalized zAAP CPU Time
- PGMTCTM
- Step Initiator TCB Time
- PGMISRTM
- Step Initiator SRB Time
- PGMHIPTM
- Step Hiperspace CPU Time
- PGMIOITM
- Step I/O Interrupt CPU Time
- PGMRCTTM
- Step Region Control Task CPU Time
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – Service Units CPCID

Left Y-axis
- PGMIOSU
- I/O Service Units
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – Connect Time CPCID

Left Y-axis
- PGMCCOMM
- Communication Device Connect Time
- PGMCDASD
- DASD Device Connect Time
- PGMCGRAF
- Graphics Device Connect Time
- PGMCTAPE
- Tape Device Connect Time
- PGMCUREC
- Unit Record Device Connect Time
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – EXCPs CPCID

Left Y-axis
- PGMCCOMM
- Communication Device EXCPS
- PGMCDASD
- DASD Device EXCPS
- PGMCGRAF
- Graphics Device EXCPS
- PGMCTAPE
- Tape Device EXCPS
- PGMCUREC
- Unit Record Device EXCPS
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – Service Units SYSID

Left Y-axis
- PGMIOSU
- I/O Service Units
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – Connect Time SYSID

Left Y-axis
- PGMCCOMM
- Communication Device Connect Time
- PGMCDASD
- DASD Device Connect Time
- PGMCGRAF
- Graphics Device Connect Time
- PGMCTAPE
- Tape Device Connect Time
- PGMCUREC
- Unit Record Device Connect Time
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Programs I/O – EXCPs SYSID

Left Y-axis
- PGMCCOMM
- Communication Device EXCPS
- PGMCDASD
- DASD Device EXCPS
- PGMCGRAF
- Graphics Device EXCPS
- PGMCTAPE
- Tape Device EXCPS
- PGMCUREC
- Unit Record Device EXCPS
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Pgms Memory CPCID

Left Y-axis
- PGMAVWSS
- Avg Working Set Size
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
SMF Daily Top 10 Batch Pgms Memory SYSID

Left Y-axis
- PGMAVWSS
- Avg Working Set Size
Right Y-axis
- PGMCOUNT
- Program Steps Encountered
- INTVLCNT
- Interval Record Count
X-axis
- PGMRANK
- “rank” – Program Name (where rank is 01, 02, and so on)
Data Source
- BATPGM at the Detail Timespan
Inquiry Defaults
- Derivations:
Date
DATEPART(ENDTS)
CPCID
%CPCID (macro CPCID generated by sp.MICS.MACAUTOS(CPCIDFMT))
PGMRANK
PUT(COUNT,Z2.) || ' - ' || PROGRAM ;
where COUNT is the rank of resource use (for example, 01 is the largest resource user)
TOTCPU
SUM(PGMTCBTM,PGMSRBTM,PGMHIPTM,PGMRCTTM,PGMIOITM, PGMSPNTM,PGMZPNTM,PGMISRTM,PGMITCTM) ;
INTVLCNT
INTVLCNT represents the number of observations that were summarized in the chart. In general, every observation in the MICS step level files represents an interval record, but there is no MICS data element that counts the number of intervals. These SMFODx inquiries make use of an accumulated data element that is not needed for charting (PGMCOACT) as a convenient way to summarize the number of observations included in the chart. They do this by assigning a value of one (1) to PGMCOACT.
Run-Time Execution Parameter Overrides
The SMFOD3 inquiry contains the following parameters:
- UNIT
- Select one or moreMICS databaseunits by entering the data base IDs. Enter multiple IDs with a blank following each ID value.
- CYCLE RANGE
- Enter range ofMICSonline file cycles or enter ARCHIVE for archive files.
- SELECT YESTERDAY
- Specify whether to report only on observations with a time stamp from yesterday.
- Available values:
- Y- Yes
- N- No (Default)
- WORKLOADS
- Enter the number of workloads to display on the chart. The default is 10.