Sample SMF job flows

Figure 1 shows the key for the following examples.
Figure 1. SMF job flow examples - key
SMF job flow examples - key
The following examples show how the process data is accumulated and reported in several instances:
Figure 2. SMF record type 30: Example 1
SMF record type 30: Example 1
In Figure 2, the flow is as follows:
  1. The job starts and a job start (subtype 1) record is written.
  2. Process a begins and consumes 12 units of resource.
  3. The step ends and a step total record (subtype 4) is written. This record contains one z/OS® UNIX process section showing the 12 units of resource consumed by process a.
  4. The job ends and a job termination record (subtype 5) is written. Because this job contained only one step, the job termination record contains one z/OS UNIX process section matching that of the step total record.
Figure 3. SMF record type 30: Example 2
SMF record type 30: Example 2
In Figure 3, the flow is as follows:
  1. The job starts and a job start (subtype 1) record is written.
  2. Process a begins and consumes 14 units of resource.
  3. An Interval record (subtype 2) is written containing one z/OS UNIX process section showing the 14 units of resource consumed by process a.
  4. The job continues and process a consumes an additional 10 units of resource.
  5. The step ends:
    1. A step termination record (subtype 3) is written. This record contains a single z/OS UNIX process section showing the additional 10 units of resource consumed by process a after the interval.
    2. A step total record (subtype 4) is written. This record contains two z/OS UNIX process sections:
      • One showing the 14 units of resource consumed by process a before the interval
      • One showing the 10 units of resource consumed by process a after the interval
  6. The job ends and a job termination record (subtype 5) is written. Because this job contained only one step, the z/OS UNIX process sections in the job termination record are identical to those written in the step total record.
Figure 4. SMF record type 30: Example 3
SMF record type 30: Example 3
In Figure 4, the flow is as follows:
  1. The job starts and a job start (subtype 1) record is written.
  2. Process a begins and consumes 2 units of resource.
  3. The job is “undubbed” and “dubbed” again as process b. Process b consumes 8 units of resource.
  4. The job is “undubbed” and “dubbed” again as process c. Process c consumes 4 units of resource.
  5. An Interval record (subtype 2) is written containing three z/OS UNIX process sections:
    • One showing the 2 units of resource consumed by process a
    • One showing the 8 units of resource consumed by process b
    • One showing the 4 units of resource consumed by process c
  6. The job continues and process c consumes an additional 6 units of resource.
  7. The job is “undubbed” and “dubbed” again as process d. Process d consumes 4 units of resource.
  8. The step terminates:
    1. A step termination record (subtype 3) is written. This record contains two z/OS UNIX process sections:
      • One showing the 6 units of resource consumed by process c after the interval
      • One showing the 4 units of resource consumed by process d
    2. A step total record (subtype 4) is written. This record contains five z/OS UNIX process sections:
      • One showing the 2 units of resource consumed by process a
      • One showing the 8 units of resource consumed by process b
      • One showing the 4 units of resource consumed by process c before the interval
      • One showing the 6 units of resource consumed by process c after the interval
      • One showing the 4 units of resource consumed by process d
  9. The job ends and a job termination record (subtype 5) is written. Because this job contained only one step, the z/OS UNIX process sections in the job termination record are identical to those written in the step total record.
Figure 5. SMF record type 30: Example 4
SMF record type 30: Example 4
In Figure 5, the flow is as follows:
  1. The job starts and a job start (subtype 1) record is written.
  2. Process a begins and consumes 2 units of resource.
  3. The job is “undubbed” and “dubbed” again as process b. Process b consumes 8 units of resource.
  4. The job is “undubbed.”
  5. An Interval record (subtype 2) is written containing two z/OS UNIX process sections:
    • One showing the 2 units of resource consumed by process a
    • One showing the 8 units of resource consumed by process b
  6. The job is “dubbed” again as process c. Process c consumes 8 units of resource.
  7. The exec service is invoked, causing the job to go through step termination and to start another substep.
    1. A step termination record (subtype 3) is written. This record contains one z/OS UNIX process section showing the 8 units of resource consumed by process c before the exec.
    2. A step total record (subtype 4) is written. This record contains three z/OS UNIX process sections:
      • One showing the 2 units of resource consumed by process a
      • One showing the 8 units of resource consumed by process b
      • One showing the 8 units of resource consumed by process c before the exec
  8. The job continues processing the new substep and process c consumes an additional 6 units of resource.
  9. An Interval record (subtype 2) is written containing one z/OS UNIX process section showing the 6 units of resource consumed by process c since the exec.
  10. The job continues and process c consumes an additional 2 units of resource.
  11. The job is “undubbed” and “dubbed” again as process d. Process d consumes 4 units of resource.
  12. The step ends:
    1. A step termination record (subtype 3) is written. This record contains two z/OS UNIX process sections:
      • One showing the 2 units of resource consumed by process c after the second interval
      • One showing the 4 units of resource consumed by process d
    2. A step total record (subtype 4) is written. This record contains three z/OS UNIX process sections:
      • One showing the 6 units of resource consumed by process c after the exec but before the second interval
      • One showing the 2 units of resource consumed by process c after the second interval
      • One showing the 4 units of resource consumed by process d
  13. The job ends and a job termination record (subtype 5) is written. This record contains all the z/OS UNIX process sections written with the first step total record followed by all the z/OS UNIX process sections written with the second step total record. The following six sections are written to the job termination record:
    • One showing the 2 units of resource consumed by process a
    • One showing the 8 units of resource consumed by process b
    • One showing the 8 units of resource consumed by process c before the exec
    • One showing the 6 units of resource consumed by process c after the exec but before the second interval
    • One showing the 2 units of resource consumed by process c after the second interval
    • One showing the 4 units of resource consumed by process d