Go to Home Page
Questions?
Call 1-800-572-5517
 
  Go to Home Page  
  See all products
  See price schedules
  See manuals, tutorials, articles
  Download a free 30-day trial
  See user testimonials
  About Pacific Systems Group
 
 
SMF Tools
  See SMF Record Layouts
  See Sample SMF Reports
  Learn How to Export SMF Data
  Download Free SMF Reporting Software (30 days)
 
One of the greatest SMF record parsing programming languages I've ever seen. Chief, Large Systems Services Branch, NIH
  Choose Spectrum Writer to add 4GL to your product
  Free 60-Page Book (PDF) - How to Make an SMF Report
Spectrum DCOLLECT Reporter - the 4GL DCOLLECT Report Writer.

Spectrum SMF Writer - the 4GL SMF Report Writer.

SMF Type 6 Record

This table shows the record layout for type 6 SMF records
(External Writer).

List of other SMF record layouts available.
List of sample SMF reports.

Purpose: The external writer writes record type 6 when processing is completed for the job output element (JOE). If a printer is running under the control of a functional subsystem (FSS), record type 6 is written for each data set printed on that printer.

This record identifies the output writer by SYSOUT class and form number, and identifies the job according to job log identification, JES2-assigned job number, and user identification. The job name, time, and date that the reader recognized the JOB card for this job constitute job log identification. It contains information on the output writer activity such as the number of data sets processed, and the FCB and universal character set identification for the printer.

The external writer does not fill every field in the common section. Unfilled fields are left with zeroes.

Any post-processor accounting routine that scans a type 6 record can determine the writer of the record from field SMF6SBS and check field SMF6PAD1 to determine the optional sections that are present in the record. When scanning the record for data, the accounting routine obtains the length for each extension section at run time when it moves from one section to the next. The length is a two-byte field at the beginning of each section.

It is possible that records with truncated job numbers will be generated (refer to SMF6JNM for details). This erroneous output will cause problems with customer’s accounting programs as well as other report programs such as Tivoli Performance Reporter for OS/390. A change may be required in the testing of the record level indicator.

If a SYSOUT data set, such as one that is held, is deleted before printing, a record type 6 will not be written.

If an external writer or user-supplied writer is used, SMF produces an incomplete record type 6. SMF produces this incomplete record only when the external writer directs output to a printer or punch. If the external writer directs output to a tape or disk, then SMF does not produce this record. The incomplete record type 6 differs from the JES2 record type as follows:

  • Its length is 88 bytes (offsets 88 and 92 are not produced)
  • The following fields are zero:
    • The number of logical records (offset 51)
    • I/O status indicators (offset 55)
    • Subsystem generating identification (offset 62)
    • Data set control indicators (offset 66)
    • JES2 logical output device name (offset 72).

It's easy to report on SMF 6 data!

SMF Spectrum Writer
We have a low-cost 4GL report writer especially for SMF files. It's called Spectrum SMF Writer.

Spectrum SMF Writer handles the difficult SMF record parsing for you automatically. You just specify which fields you want to see.

Spectrum SMF Writer also converts the arcane date and time fields and reformats them into an attractive report.

Plus, Spectrum SMF Writer can export SMF data as comma delimited files to use on your PC.
 
Try It FREE Now!

SMF Type 6 Record -- External Writer
Offset
(Dec.)
Offset
(Hex)
NameLengthFormatDescription
00SMF6LEN2binary
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.
22SMF6SEG2binary
Segment descriptor (see record length field).
44SMF6FLG1binary
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.
55SMF6RTY1binary
Record type 6 (X'06').
66SMF6TME4binary
Time since midnight, in hundredths of a second, that the record was moved into the SMF buffer.
10ASMF6DTE4packed
Date when the record was moved into the SMF buffer, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
14ESMF6SID4EBCDIC
System identification (from the SID parameter).
1812SMF6JBN8EBCDIC
Job name (taken from job’s RESQ). The job name, time, and date that the reader recognized the JOB card (for this job) log identification, or transaction name (for APPC output).
261ASMF6RST4binary
Time since midnight, in hundredths of a second, that the reader recognized the JOB card (for this job).
301ESMF6RSD4packed
Date that 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.
3422SMF6UIF8EBCDIC
User identification (taken from common exit parameter area not from USER= parameter on job statement).
422ASMF6OWC1EBCDIC
SYSOUT class (this field is blank for non-SYSOUT data sets).
432BSMF6WST4binary
Start time since midnight, in hundredths of a second, of print/punch processor including remote device working on the data in this record.
472FSMF6WSD4packed
Start date of print/punch processor including remote device working on the data in this record, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
5133SMF6NLR4binary
Number of logical records written by the writer, by form number and class (this field includes JOBLOG information and data set copies). For an example, a data set of 1000 lines with two copies will show 2000 in this field.
5537SMF6IOE1binary
Zero or X’04’ if the system detects an error while processing the input data set.
5638SMF6NDS1binary
Number of data sets processed by the writer and included in this record. If multiple copies are produced, each copy is counted. (This field includes JOBLOG information.)
5739SMF6FMN4EBCDIC
Form number as defined in the FORM= parameter of the DD statement.
613DSMF6PAD11binary
Section indicator Bit Meaning When Set 0 Reserved 1 Common section present 2 Reserved. 3 Enhanced SYSOUT support section present 4-7 Reserved.
623ESMF6SBS2binary
Subsystem identification (X'0000' indicates external writer).
Enhanced SYSOUT Support (ESS) Section for External Writer
6440SMF6LN52binary
Length of ESS section (including this field).
6642SMF6SGID4binary
Segment identifier. Contains 0 when the file is not segmented.
7046SMF6IND1binary
Section indicator Bit Meaning When Set 0 Error obtaining scheduler JCL facility (SJF) information. Scheduler work block text unit (SWBTU) data area is not present. 1-7 Reserved.
7147SMF6RSV1--
Reserved.
7248SMF6JDVT8EBCDIC
JCL definition table (JDT) name in JCL definition vector table (JDTV).
8050SMF6TUL2binary
Text unit (SWBTU) data area length.
8252SMF6TUVARbinary
Text unit (SWBTU) data area. The data area can be processed using the SWBTUREQ macro and is mapped by MVS macro IEFSJPFX.
I/O Data Section for External Writer
(Offset from beginning of record: 64 + SMF6-ESS-LGTH)
00SMF6LN12binary
Length of this section, including this field.
22SMF6DCI1binary
X'0000' indicates external writer.
33SMF6INDC1binary
Record level indicator Value Release — Support 0 Reserved 1 MVS/XA SP2.2.0 and before — restructured SMF type 6 record 2 Reserved 3 MVS/ESA SP3.1.0 — greater than 10K job support 4-7 Reserved.This field definition changes with each new version of the SMF type 6 record.
44SMF6JNM4EBCDIC
When SMF6INDC contains a X'1', this field contains a four-digit EBCDIC job number. When SMF6INDC contains a X'3' or greater, the job number has more than four digits, and this field contains zeroes. The correct job number is then found in SMF6JBID.
88SMF6OUT8EBCDIC
X'0000' external writer.
1610SMF6FCB4EBCDIC
FCB image identification (printer only).
2014SMF6UCS4EBCDIC
UCS image identification (printer only).
Common Section for External Writer
(Offset from beginning of record: 64 + SMF6-ESS-LGTH + SMF6LN1)
00SMF6LN32binary
Length of the common section, including this field.
22SMF6ROUT4binary
Output route code (this field is always set to zero). The route code is specified on the /*OUTPUT or DD statement.
66SMF6EFMN8EBCDIC
Output form number. This field is set regardless of the number of characters in the forms field (SMF6FMN). The form number is specified on the FORM= parameter of the DD statement.
14E--16binary
Reserved.
301ESMF6JBID8EBCDIC
Job ID, or transaction ID (for APPC output). The following fields (up to and including SMF6OTOK) are only present if SMF6INDC is equal to or greater than X'04':
3826SMF6STNM8EBCDIC
This field is not filled in for an output writer.
462ESMF6PRNM8EBCDIC
This field is not filled in for an output writer.
5436SMF6DDNM8EBCDIC
This field is not filled in for an output writer.
623ESMF6USID8EBCDIC
The user ID associated with the job/session that created the data set, or the user ID associated with the transaction ID (for APPC output).
7046SMF6SECS8EBCDIC
The security label of the created data set, or data set level seclabel.
784ESMF6PRMD8EBCDIC
The processing mode of the data set.
8656SMF6DSNM53EBCDIC
The name of the data set being printed.
1398B--3binary
Reserved.
1428ESMF6OTOK20EBCDIC
Reserved. smf06@C This section contains the output descriptor (if any) for first offloaded data set in this record.

The table above is based on the description provided by IBM in its "MVS Systems Management Facilities (SMF)" manual.

Copyright 2024.
Pacific Systems Group.
All rights reserved.


Spectrum Writer 4GL - the economical alternative to SAS, Easytrieve, DYL-280...

Home | Products | Prices | Documentation | 30-Day Trials | Customer Reviews | Company | FAQ | Sample Reports | SMF Records
Send Your Comments or Questions