6. DATA SOURCES › 6.1 SMF Data › 6.1.2 SMF Data Categories › 6.1.2.1 SMF for Batch, TSO, and Started Tasks
6.1.2.1 SMF for Batch, TSO, and Started Tasks
One of the most common uses of SMF data is to account for the
resources used and to study the performance and capacity
aspects of your batch, TSO, or started task (STC) workloads.
The SMF record types required depend upon the version of MVS
running at your site and whether you have JES2 or JES3.
SMF GENERATING EVENTS
The events in the life cycle of a one-step batch job, TSO
session, or started task that cause the generation of SMF
records are shown in Figure 6-1.
|<-Job Submission
| |<-Step Term /
||<-Allocation (25-JES3 only) | TS Step Term(30-4)
|| |
|||<-Job Init / Logon (30-1) ||<-Job Term / Logoff (30-5)
||| ||
||| || |<-Output Writer (6)
|||<--------------------------->|| | |<-Job Purge (26)
\+++-----------------------------++-----+--+---------------\
> TIME >
/--+-------+-------+-------+-----+-------------------------/
|<----->|<----->|<----->|<--->|<-Last Interval (30-3)
| | |
| | |<-Interval (30-2)
| |
| |<-Interval (30-2)
|
|<-Interval (30-2)
Figure 6-1. Batch JOB, TSO, and STC SMF Recording
The typical batch job, TSO session, or started task generates
a variable number of SMF records during its life cycle.
o An SMF type 25 device allocation record is written for
JES3 systems when the job, TSO session, or started task
has completed Converter/Interpreter processing.
o SMF type 30 subtype 1 is written at job initiation or
TSO logon.
o SMF type 30 subtype 4 is written at each step end or
TSO session end.
o SMF type 30 subtype 5 is written at job end or at TSO
logoff.
If INTERVAL RECORDING is specified:
o SMF type 30 subtype 2 is written only if the duration
of the step or TSO session exceeds the specified
interval amount. More than one subtype 2 record may be
written for a step.
o SMF type 30 subtype 3 is the "incomplete interval"
record. It is the only interval record written for
short steps that end before the specified interval time
has elapsed. It is also written as the last interval
record for long steps and represents the time between
the writing of the last subtype 2 record and the end of
the step.
o SMF type 6 is written when SYSOUT is printed by JES2,
JES3, PSF, or External Writers.
o SMF type 26 is written when the job, TSO session, or
started task is purged from the system.
The quantity of SMF records generated on behalf of a job or
session is variable and depends upon the number and duration
of the job steps, as well as the quantity and variety of
SYSOUT produced. The type 26 purge record, which is the
indicator that all SMF records for the job have been written,
may be generated five minutes or five days after the start of
a job, TSO session, or started task.
Specific information about each of these record types is
presented in Section 6.9.