Go to Home Page
 
Go to Home Page Go to Home Page  
About Spectrum Writer About Spectrum Writer
Online brochure and other documentation Online brochure and other documentation
Online brochure and other documentation Online brochure and other documentation
How to contact us How to contact us
Download a free 30-day trial of Spectrum Writer Download a free 30-day trial of Spectrum Writer
 
 
  Report Writer Speedup Tips Article
Use Mainframe Data in Excel with Spectrum Writer 4GL.
SMF 5 Record Layout

SMF Type 5 Record

This table shows the record layout for type 5 SMF records (Job Termination).
Also read our tips for working with SMF type 5 records.

Spectrum SMF Writer is the 4GL report writer for SMF files on z/OS and VSE systems.
Download your free trial now!

Jump to the Spectrum SMF Writer definitions for SMF type 5 records.

SMF Type 5 Record -- Job Termination
Offset
(Dec.)
Offset
(Hex)
NameLengthFormatDescription
00SMF5LEN2binary
Record length. This field and the next field (total of four bytes) form the RDW (record descriptor word). See “Standard SMF Record Header” on page 13-1 for a detailed description.
22SMF5SEG2binary
Segment descriptor (see record length field).
44SMF5FLG1binary
System indicator: Bit Meaning When Set 0-2 Reserved 3-6 Version indicators* 7 Reserved.*See “Standard SMF Record Header” on page 13-1 for a detailed description.
55SMF5RTY1binary
Record type 5 (X'05').
66SMF5TME4binary
Time since midnight, in hundredths of a second, that the record was moved into the SMF buffer.
10ASMF5DTE4packed
Date when the record is passed to the SMF writer, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description. This is the date that the job terminated.
14ESMF5SID4EBCDIC
System identification (from the SID parameter).
1812SMF5JBN8EBCDIC
Job name. The job name, time, and date that the reader recognized the JOB card (for this job) constitute the job log identification, or transaction name (for APPC output).
261ASMF5RST4binary
Time since midnight, in hundredths of a second, that the reader recognized the JOB card (for this job).
301ESMF5RSD4packed
Date when the reader recognized the JOB card (for this job), in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
3422SMF5UIF8EBCDIC
User-defined identification field (taken from common exit parameter area, not from USER=parameter on job statement).
422ASMF5NST1binary
Number of steps in the job.
432BSMF5JIT4binary
Time since midnight, in hundredths of a second, that the initiator selected the job.
472FSMF5JID4packed
Date when the initiator selected the job, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
5133SMF5NCI4binary
Number of card-image records in DD DATA and DD* data sets read by the reader for the job.
5537SMF5JCC2binary
Job completion code: X'0ccc' indicates system ABEND in the last job step where ccc is the system ABEND code (see z/OS MVS System Codes). X'8ccc' indicates user ABEND in the last job step where ccc is the user ABEND code. X'nnnn' indicates normal completion where nnnn is the contents of the two low-order bytes in register 15 at termination. X'0000' indicates either: (see note) 1. The last job step was flushed (not processed) because of an error during allocation or in a preceding job step, or 2. normal job completion with a return code of 0.Note: When a step in a multi-step job terminates abnormally, the subsequent steps, whether executed or flushed, do not propagate the step abend code for processing this record. The code appears in the job termination record (type 4). In this case, the field - SMF5JCC, can contain X'nnnn'. If an abend occurred in the job, the job termination indicator (bit 6 in the SMFJBTI field) is set to 1. Use this field in conjunction with the job termination indicator field, SMFJBTI.
5739SMF5JPTY1binary
Job selection priority. This field normally equals the user-assigned priority of zero to 13, but if the job fails while being scheduled, this field equals 14 (taken from the PRTY parameter on the JOB card). If no value is specified for the PRTY parameter on the JOB card, this field contains: v For JES3, the default priority specified on the JES3 STANDARDS initialization card v For JES2, a zero.Note that JES2 does not use the priority value reported in this field.
583ASMF5RSTT4binary
Time since midnight, in hundredths of a second, that the reader recognized the end of the job.
623ESMF5RSTD4packed
Date when the reader recognized the end of the job, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
6642SMF5JBTI1binary
Bit Meaning When Set 0 Reserved 1 Canceled by exit IEFUJV 2 Canceled by exit IEFUJI 3 Canceled by exit IEFUSI 4 Canceled by exit IEFACTRT (step exit only) 5 Reserved 6 If 0, normal completion (if 1, then ABEND). 7 Reserved.
6743SMF5MCI1--
Reserved.
6844SMF5TRAN4binary
Job transaction residency time, in 1024-microsecond units. That is the total amount of time the transaction was in central storage.
7248SMF5CKRE1--
Reserved.
7349SMF5RDCL1binary
Reader device class. (This field is not filled in for jobs submitted by way of an internal reader.)
744ASMF5RUTY1binary
Reader unit type. (This field is not filled in for jobs submitted via an internal reader.)
754BSMF5JICL1EBCDIC
Job input class (taken from JOB card; default equals ‘A’).
764CSMF5SPK1binary
Storage protect key, in the form xxxx0000 where xxxx is the key.
774DSMF5SRBT3binary
Job CPU time under SRBs, in hundredths of a second. This field includes the CPU time for various supervisory routines that are dispatched via SRBs: locking routines, page resolution, swap control, cross-memory communications (WAIT, POST, I/0 POST), and TQE scheduling.
8050SMF5TJS4binary
Job service, in service units.
8454SMF5TTAT4binary
Job transaction active time, in 1024-microsecond units.
8858SMF5RV24--
Reserved.
925CSMF5PGNO2binary
Reserved.
945ESMF5RV32--
Reserved.
9660SMF5TLEN1binary
Length of rest of the fixed portion of the record.
9761SMF5PRGN20EBCDIC
Programmer’s name.
11775SMF5JCPU3binary
Reserved.
12078SMF5ACTF1binary
Number of accounting fields.
12179SMF5JSAFvariableEBCDIC
Accounting fields. Each entry for an accounting field contains the length of the field (one byte, binary) followed by the field (EBCDIC). A zero indicates an omitted field.
Relocate Section
(Offset from beginning of record: 96 + SMF5TLEN)
00SMF5CPUS4binary
Job CPU service, in service units.
44SMF5IOCS4binary
Job I/O service in service units.
88SMF5MSOS4binary
Job main storage service, in service units.
12CSMF5SRBS4binary
Job SRB service, in service units.
1610SMF5RSV18Reserved.

The above table is a slightly modified version of the description provided by IBM in their "MVS Systems Management Facilities (SMF)" manual.

 

Spectrum SMF Writer
File Definition for Type 5 SMF Records
Job Termination

********************************************************************
*        SPECTRUM SMF WRITER -- FILE DEFINITION STATEMENTS         *
*           SMF05 - SMF TYPE 5 RECORD "JOB TERMINATION"            *
********************************************************************
FIELD: SMF5LEN DISP(0) LEN(2) TYPE(BINARY)
FIELD: SMF5SEG DISP(2) LEN(2) TYPE(BINARY)
FIELD: SMF5FLG DISP(4) LEN(1) TYPE(BINARY)
FIELD: SMF5RTY DISP(5) LEN(1) TYPE(BINARY)
FIELD: SMF5TME DISP(6) LEN(4) TYPE(B-SECS) DEC(2) FORMAT(TPIC'Z9:99:99.99')
FIELD: SMF5DTE DISP(10) LEN(4) TYPE(P-CYYDDD)
FIELD: SMF5SID DISP(14) LEN(4)
FIELD: SMF5JBN DISP(18) LEN(8)
FIELD: SMF5RST DISP(26) LEN(4) TYPE(B-SECS) DEC(2) FORMAT(TPIC'Z9:99:99.99')
FIELD: SMF5RSD DISP(30) LEN(4) TYPE(P-CYYDDD)
FIELD: SMF5UIF DISP(34) LEN(8)
FIELD: SMF5NST DISP(42) LEN(1) TYPE(BINARY)
FIELD: SMF5JIT DISP(43) LEN(4) TYPE(B-SECS) DEC(2) FORMAT(TPIC'Z9:99:99.99')
FIELD: SMF5JID DISP(47) LEN(4) TYPE(P-CYYDDD)
FIELD: SMF5NCI DISP(51) LEN(4) TYPE(BINARY)
FIELD: SMF5JCC DISP(55) LEN(2) TYPE(BINARY)
FIELD: SMF5JPTY DISP(57) LEN(1) TYPE(BINARY)
FIELD: SMF5RSTT DISP(58) LEN(4) TYPE(B-SECS) DEC(2) FORMAT(TPIC'Z9:99:99.99')
FIELD: SMF5RSTD DISP(62) LEN(4) TYPE(P-CYYDDD)
FIELD: SMF5JBTI DISP(66) LEN(1) TYPE(BINARY)
FIELD: SMF5MCI DISP(67) LEN(1) TYPE(BINARY)
FIELD: SMF5TRAN DISP(68) LEN(4) TYPE(BINARY)
FIELD: SMF5CKRE DISP(72) LEN(1) TYPE(BINARY)
FIELD: SMF5RDCL DISP(73) LEN(1) TYPE(BINARY)
FIELD: SMF5RUTY DISP(74) LEN(1) TYPE(BINARY)
FIELD: SMF5JICL DISP(75) LEN(1)
FIELD: SMF5SPK DISP(76) LEN(1) TYPE(BINARY)
FIELD: SMF5SRBT DISP(77) LEN(3) TYPE(BINARY)
FIELD: SMF5TJS DISP(80) LEN(4) TYPE(BINARY)
FIELD: SMF5TTAT DISP(84) LEN(4) TYPE(BINARY)
FIELD: SMF5RV2 DISP(88) LEN(4) TYPE(BINARY)
FIELD: SMF5PGNO DISP(92) LEN(2) TYPE(BINARY)
FIELD: SMF5RV3 DISP(94) LEN(2) TYPE(BINARY)
FIELD: SMF5TLEN DISP(96) LEN(1) TYPE(BINARY)
FIELD: SMF5PRGN DISP(97) LEN(20)
FIELD: SMF5JCPU DISP(117) LEN(3) TYPE(BINARY)
FIELD: SMF5ACTF DISP(120) LEN(1) TYPE(BINARY)
FIELD: SMF5JSAF DISP(121)
* Relocate Section FIELD: SMF5CPUS DISP(0) LEN(4) TYPE(BINARY) OFFSET(96 + SMF5TLEN)
FIELD: SMF5IOCS DISP(4) LEN(4) TYPE(BINARY)
FIELD: SMF5MSOS DISP(8) LEN(4) TYPE(BINARY)
FIELD: SMF5SRBS DISP(12) LEN(4) TYPE(BINARY)
FIELD: SMF5RSV1 DISP(16) LEN(8)

 
  SMF Type 0 | SMF Type 2 | SMF Type 3 | SMF Type 4 | SMF Type 5 | SMF Type 14 | SMF Type 15 | SMF Type 30

Copyright 2008
Pacific Systems Group
All rights reserved..
Home Page | Spectrum Writer | Online Brochure | Company | Privacy | Contact | Download Trial
Send Your Comments or Questions