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
(Print Services facility (PSF)).

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

Purpose: PSF writes record type 6 whenever data set processing is complete, that is, whenever the JES subsystem that PSF is running under is informed that the user data set is to be released. This type 6 record includes any auxiliary data sets.

For example, a job that includes a job header, data set header, two user data sets, and a job trailer produces two type 6 records. The first record contains data for the job header, the data set header, the first user data set, and any associated message data set. The second record contains data for the second user data set, any associated message data set, and the job trailer.

This record identifies the output writer by SYSOUT class and form number, and subsystem identification. It identifies the job according to job log identification, JES-assigned job number, and user identification. It contains information on the output writer activity such as:

  • The number of logical records processed
  • Writer start time
  • I/O status indicators
  • Logical output device name.

Also covered is information about the number of resources, such as:

  • Fonts
  • Overlays
  • Page segments
  • PAGEDEFS
  • FORMDEFS

This record provides information in separate sections on the activity of the non-impact printing subsystem, and information on the activity of the all-points-addressable (APA) printing subsystem.

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 Decision Support for z/OS. A change may be required in the testing of the record level indicator.

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 -- Print Services facility (PSF)
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. Before the SVC 83, PSF fills in this field via SVC 11 for use with PSF exit 5.
10ASMF6DTE4packed
Date when the record was moved into the SMF buffer, in the form 0cyydddF. See “Standard SMF record header” on page 152 for details. Before the SVC 83, PSF fills in this field via SVC 11 for use with PSF exit 5.
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 from midnight, in hundredths of a second, that the reader recognized the JOB card (for this job).
301ESMF6RSD4packed
Date when the reader recognized the JOB card for this job, in the form 0cyydddF. See “Standard SMF Record Header” for a detailed description.
3422SMF6UIF8EBCDIC
User-defined identification field (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, in hundredths of a second, of output service working on the data in this record. This field is filled in at JES3 LOGIN time for the writer job.
Note: The timestamps should not be used to determine printer utilization.
472FSMF6WSD4packed
Start date of output service working on the data in this record, in the form 0cyydddF. See “Standard SMF record header” for a detailed description. This field is filled in at JES3 LOGIN time for the writer job.
Note: The timestamps should not be used to determine printer utilization.
5133SMF6NLR4binary
Number of logical records written by the writer. (This field is filled in when a data set is completed or restarted; it includes repeats and restarts). This field is non-cumulative across interrupts.
5537SMF6IOE1binary
I/O status indicators
Bit Meaning When Set
0-4 Reserved
5 Data buffer read error
6 Reserved
7 Control buffer read error.
5638SMF6NDS1binary
Number of data sets processed by the writer and included in this record. If multiple copies are produced, each copy is counted.
5739SMF6FMN4EBCDIC
Form number — only the first four bytes appear in this field. This value is taken from the last SETUP message or from the FORMS parameter of the OUTPUT statement for the user data set
613DSMF6PAD11binary
Section indicator
Bit Meaning When Set
0 Non-impact printing subsystem section present
1 Common section present.
2 All-points-addressable (APA) printing subsystem section present
3 Enhanced SYSOUT support section present
4 File Transfer section present
5-7 Reserved
623ESMF6SBS2binary
Subsystem identification - X'0007' signifies PSF
I/O Data Section for PSF
(Offset from beginning of record: 64)
0000SMF6LN12binary
Length of this section, including this field.
0202SMF6DCI1binary
Data set control indicators. (These bits are set when a data set is completed or restarted.)
Bit Meaning When Set
0 Reserved
1 Record represents spin data sets
2 Operator ended this data group
3 Operator restarted data set with destination
4 Operator restarted this data group
5 Received operator restarted data set
6 Operator started with single space
7 Reserved.
0303SMF6INDC1binary
Record level indicator. Bits 0-3 are reserved. Bits 4-7 have a value as follows:
Value Release — Support
1 PSF/MVS release 1.1 — restructured SMF type 6 record
2 Reserved
3 MVS/ESA JES2 SP3.1.1 — greater than 10K job support
4 MVS/ESA JES2 SP3.1.3 and above — security support
5 MVS/ESA JES2 SP4.1.0
6 PSF/MVS Release 3.1.0.
This field definition changes with each new version of the SMF type 6 record.
0404SMF6JNM4EBCDIC
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.
0808SMF6OUT8EBCDIC
For SNA-attached printers, the VTAM logical unit name. For channel-attached printers, the printer device name.
1610SMF6FCB4EBCDIC
Reserved
2014SMF6UCS4EBCDIC
Reserved
2418SMF6PGE4binary
Approximate physical page count, including duplicates and separators.
This field is not incremented in the following cases:
  • When blank pages are sent through the printer after a job because of an NPRO request.
  • When a blank page is generated because PSF is not generating header and trailer pages, but mark forms is active
Non-impact Printing Subsystem Section for PSF This section contains information about the number of copies and the types of fonts used. Note: This data is non-cumulative across interrupts.
(Offset from beginning of record: 64 + SMF6LN1)
00SMF6LN22binary
Length of non-impact printing subsystem section, including this field.
22SMF6CPS8binary
Number of copies specified in the COPIES parameter of the OUTPUT statement for the user data set. Each byte represents one copy group. These values can be changed by operator commands.
10ASMF6CHR16EBCDIC
Names of the fonts that define the characters used in printing as specified in the JCL. Each name is 4 bytes long, with a maximum of 4 names.
261ASMF6MID4--
Reserved.
301ESMF6FLI4EBCDIC
Name of the forms overlay printed on the copies, taken from the data set JCL.
3422SMF6FLC1binary
Number of copies on which the forms overlay is printed, taken from the data set JCL.
3523SMF6BID1binary
Device indicator
Bit Meaning when set
0 Output was burst into sheets by the Burster-Trimmer-Stacker.
1 DCB subparameter OPTCD=J was specified. Each output data line contained a table reference character that selected the font used when printing that line.
2 Cut-sheet printer. This field is valid only when SMF6SBS equals X'0007', and SMF6INDC is equal to or greater than X'02'.
3-7 Reserved.
Common Section for PSF

This section contains the general output information including the user ID associated with the job or session.

(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2)
00SMF6LN32binary
Length of common section (including this field).
22SMF6ROUT4character
Output route code. This field is defined as follows:
  • X'00010000' indicates local routing.
  • X'nnnnrrrr' (where nnnn is the node number and rrrr is the remote device within that node) indicates remote routine
  • X'0000nnnn' indicates special local routing. This field is always set regardless of the number of remote specified by this system. The node and remote devices are defined in JESPARMS.
66SMF6EFMN8EBCDIC
Output form number. SMF6EFMN is derived from the last setup message, the JES initialization statements, or from the FORMS parameter of the OUTPUT statement.
14E--16binary
Reserved.
301ESMF6JBID8EBCDIC
Job ID, or Transaction ID (for APPC output).
The following fields are only present if SMF6INDC >= 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
Output security token: the identifier JES assigned to those SYSOUT data sets that share common printing attributes and security information. Data sets thus grouped are then printed sequentially. If your installation also produces job header and trailer pages, these data sets appear between those job header and trailer pages as a job.
All-points-addressable printing subsystem section for PSF This section contains meaningful data fields only if the all-points-addressable printing subsystem is running under the control of print services facility (PSF), that is, SMF6SBS equals X'0007'.
(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2 + SMF6LN3)
00SMF6LN42binary
Length of the section (including this field).
22SMF6BNOF2binary
Offset to the Multi-Bins Header Section from start of APA section.
44SMF6FONT4binary
Number of fonts mapped with an MCF.
88SMF6LFNT4binary
Number of fonts loaded.
12CSMF6OVLY4binary
Number of overlays mapped with an MMO.
1610SMF6LOLY4binary
Number of overlays loaded.
2014SMF6PGSG4binary
Number of page segments mapped with an MPS.
2418SMF6LPSG4binary
Number of page segments loaded.
281CSMF6IMPS4binary
Number of sides of sheets of paper printed (number of logical impressions), including duplicates and separators. This field is non-cumulative across interrupts and is valid only when SMF6INDC is equal to or greater than X'02'.
This field is not incremented in the following cases:
  • When blank pages are sent through the printer after a job because of an NPRO request.
  • When a blank page is generated because PSF is not generating header and trailer pages, but mark forms is active.
3220SMF6FEET4binary
Number of feet of paper printed for the document (zero for printers that do not report paper size). This field is non-cumulative across interrupts.
This field is not incremented in the following cases:
  • When blank pages are sent through the printer after a job because of an NPRO request.
  • When a blank page is generated because PSF is not generating header and trailer pages, but mark forms is active.
3624SMF6PGDF4binary
Number of PAGEDEFS used.
4028SMF6FMDF4binary
Number of FORMDEFS used.
442CSMF6BIN1binary
Bin indicators. This field is valid only when SMF6INDC is equal to or greater than X'02' and for printers that support bin selection.
Bit Meaning when set
0 Bin 1 used for any part of the data set
1 Bin 2 used for any part of the data set
2 Bin 3 used for any part of the data set
3 Bin 4 used for any part of the data set
4-7 Reserved.
452DSMF6PGOP1binary
Duplex indicators. This field is valid only when SMF6INDC is equal to or greater than X'02'.
Bit Meaning when set
0 Standard duplex was used for any part of the data set.
1 Tumble duplex was used for any part of the data set.
System security indicators. Valid only when SMF6INDC is equal to or greater than X'04'.
2 Keyword SYSAREA=YES
3 Keyword DPAGELBL=YES
4 Print operation was successful
5 Keyword SPAGELBL=YES
6 Error occurred processing the security overlay
7 Image generator overrun error occurred.
462ESMF6FLG31binary
Flags
Bit Meaning when set
0 Security label integrity is guaranteed. Valid only when SMF6INDC is equal to or greater than X'04'
1 The job header page was printed
2 The job trailer page was printed
3 Data page labelling was suppressed
4 User printable area was suppressed.
472F--1binary
Reserved.
4830SMF6NSOL4binary
Number of security overlays used while printing the data set. Valid only when SMF6INDC is equal to or greater than X'04'.
5234SMF6NSFO4binary
Number of security fonts used while printing the data set. Valid only when SMF6INDC is equal to or greater than X'04'.
5638SMF6NPS4binary
Number of security page segments used while printing the data set. Valid only when SMF6INDC is equal to or greater than X'04'.
603CSMF6FDNM8EBCDIC
FORMDEF name used to print the data set.
6844SMF6PDNM8EBCDIC
PAGEDEF name used to print the data set.
764CSMF6PTDV8EBCDIC
PRINTDEV name used to print the data set.
8454SMF6SETU8EBCDIC
COMSETUP name used to print the data set.
925C--24binary
Reserved.
11674SMF6LPGE4binary
Number of logical pages processed. (The accumulative number of logical pages per side.) This field is non-accumulative across interrupts.
This field is not incremented in the following case:
  • When blank pages are sent through the printer after a job because of an NPRO request.
  • When a blank page is generated because PSF is not generating header and trailer pages, but forms marking is active.
Multi-Bins Header Section for PSF
(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2 + SMF6LN3 + SMF6LN4 + SMF6BNOF)
00SMF6BNLN2binary
Length bins section including FLD.
22SMF6BNUM2binary
Number of counters entries.
Multi-Bins Counter Section for PSF
(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2 + SMF6LN3 + SMF6LN4 + SMF6BNOF +4)
00SMF6BNNO1binary
Bin number.
11SMF6BNCT3binary
Bin counter. This field is not incremented in the following cases:
  • When blank pages are sent through the printer after a job because of an NPRO request.
  • When a blank page is generated because PSF is not generating header and trailer pages, but mark forms is active.
44SMF6BNLE2binary
Paper length in millimeters.
66SMF6BNWI2binary
Paper width in millimeters.
Enhanced SYSOUT Support (ESS) Section for PSF

This section contains the output descriptor (if any) for first offloaded data set in this record.

(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2 + SMF6LN3 + SMF6LN4)
0000SMF6LN52binary
Length of ESS section (including this field).
0202SMF6SGID4binary
Segment identifier. Contains 0 when the file is not segmented.
0606SMF6IND1binary
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.
0707SMF6RSV1Reserved.
0808SMF6JDVT8EBCDIC
JCL definition table (JDT) name in JCL definition vector table (JDTV).
1610SMF6TUL2binary
Text unit (SWBTU) data area length.
1812SMF6TUVARbinary
Text unit (SWBTU) data area. The data area can be processed using the SWBTUREQ macro and is mapped by MVS macro IEFSJPFX.
File Trasnfer Section for PSF
(Offset from beginning of record: 64 + SMF6LN1 + SMF6LN2 + SMF6LN3 + SMF6LN4 + SMF6LN5)
00SMF6LN62binary
Length of File Transfer section (including this field).
22SMF6BYTE4binary
Total bytes sent.
66SMF6IPV44binary
Target IPv4 address.
10ASMF6FTL1binary
Level indicator for file transfer section. 11 B 11 char Reserved.
2216SMF6PQLN2binary
Length of print queue name.2
2418SMF6PRTQvariableEBCDIC
Print queue name.
4830SMF6BYTD8binary
Total bytes sent when > 4 gigabytes.
5638SMF6IPV616binary
Target IPv6 IP address.

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