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 21 Record

This table shows the record layout for type 21 SMF records
(Error Statistics by Volume).

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

Purpose: Record type 21 is written when a data set on magnetic tape is demounted. This record contains statistics for the entire volume during the period of time that the volume is mounted, regardless of the number of data sets on the volume being accessed (and regardless of the number of CLOSE macro instructions issued).

This record contains the volume serial number, device number, unit type, and tape format. It contains the number of temporary and permanent read and write errors, START Subchannel (SSCH) instruction, noise blocks, erase gaps, and cleaner actions.

Notes:
1. The IFHSTATR utility program formats and prints the error-statistics-by-volume (ESV) information in this record.
2. The current record does not describe who requested the amount or who performed the I/O.
3. Record type 21 does not indicate which records are written because of environmental record editing and printing (EREP).
4. If a maximum count is reached, it is no longer increased. A count at its maximum value indicates at least that number because no record is written when the counter is full.
5. A record type 21 is written, in addition to demount time, any time the environmental record editing and printing (EREP) program is run or when EOD is issued. Therefore, more than one type 21 record may be written for each tape that was mounted.

It's easy to report on SMF 21 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 21 Record -- Error Statistics by Volume
Offset
(Dec.)
Offset
(Hex)
NameLengthFormatDescription
00SMF21LEN2binary
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.
22SMF21SEG2binary
Segment descriptor (see record length field).
44SMF21FLG1binary
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.
55SMF21RTY1binary
Record type 21 (X'15').
66SMF21TME4binary
Time since midnight, in hundredths of a second, when the record was moved into the SMF buffer.
10ASMF21DTE4packed
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.
14ESMF21SID4EBCDIC
System identification (from the SID parameter).
1812SMF21LGH2binary
Length of rest of record.
2014SMF21VOL6EBCDIC
Volume serial number.
261ASMF21CA2binary
Device number or device address.
281CSMF21UCB4binary
UCBTYP value.
311FSMF21DEV1binary
Low order byte of UCB device type. Values less than X’80’ represent reel tapes. Values of X’80’ or greater represent cartridge tapes.
3220SMF21TR1binary
Number of temporary read errors (non-buffered log).
3321SMF21TW1binary
Number of temporary write errors (non-buffered log).
3422SMF21SIO2binary
Number of start sub-channel (SSCH) instructions.
3624SMF21PR1binary
Number of permanent read errors.
3725SMF21PW1binary
Number of permanent write errors.
3826SMF21NB1binary
Number of noise blocks (non-buffered log).
3927SMF21ERG2binary
Number of erase gaps.
4129SMF21CLN2binary
Number of cleaner actions.
432BSMF21DEN1binary
Tape format — 2400 and 3400 series magnetic tape units Dens Devtype Code Hex SMF21625 SMF21F62 SMF21160 SMF21F16 SMF21800 SMF21780 SMF21556 SMF21200 6250 9-track 4 D3 3424 4 C2 1600 9-track 3 C3 3424 3 42 800 9-track 2 CB 7-track 2 83 556 7-track 1 43 200 7-track 0 03
442CSMF21BLS2binary
Block size of the last data set closed on the tape if the tape was demounted during CLOSE processing, not at a different time. Some programs that use EXCP do not provide a block size. This field is valid only (but still might contain zero) when bit SMF21LB is off.
462ESMF21OFL1binary
DCBOFLGS. Bit SMF21OFL SMF21OUT SMF21RDB Meaning 1... .... Output tape .1.. .... Input tape (READ BACKWARD)
472FSMF21TUS3packed
Tape unit serial.
5032SMF21TRF2binary
Temporary read forward errors.
5234SMF21TRB2binary
Temporary read backward errors.
5436SMF21TWF2binary
Temporary write errors.
5638SMF21BR3binary
Number of bytes read, in units of 4096. The length of each block is rounded up to a multiple of 4096 before being counted. This count includes volume mount and verify, in addition to task I/O. Provided only for cartridge tape devices. Maximum value is X’FFFFFF’.
593BSMF21BW3binary
Number of bytes written, in units of 4096. The length of each block is rounded up to a multiple of 4096 before being counted. Provided only for cartridge tape devices. Maximum value is X’FFFFFF’.
623ESMF21FL11binary
SMF21FL1 SMF21NCT SMF21LS SMF21LB General flag bytes. Bit Meaning 1... .... SMF21BRN and SMF21BWN at 64 and 68 contain valid values. Currently this bit is on only for 3590. .1.. .... SMF21LST has a valid value. ..1. .... SMF21LBS has a valid value. ...x xxxx Reserved.
633FSMF21FL21bit
string
Reserved.
6440SMF21BRN4unsigned
binary
Number of bytes read, in units of 4096. The length of each block is rounded up to a multiple of 4096 before being counted. Valid only if SMF21NCT is on. If the value is less than X’FFFFFF’, it is also in SMF21BR.
6844SMF21BWN4unsigned
binary
Number of bytes written, in units of 4096. The length of each block is rounded up to a multiple of 4096 before being counted. Valid only if SMF21NCT is on. If the value is less than X’FFFFFF’, it is also in SMF`21BW.
7248SMF21LST4unsigned
binary
Number of I/Os initiated on current volume. Valid only if SMF21LS is on.
764CSMF21LBS4unsigned
binary
Block size. Valid only if SMF21LB is on.
8050SMF21DBR4unsigned
binary
Number of bytes read by the device, in units of 4096. Valid only if SMF21DBV is on.
8454SMF21DBW4unsigned
binary
Number of bytes written by the device, in units of 4096. Valid only if SMF21DBV is on.

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

Copyright 2017.
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