Mainframe Path Start learning free
Applied10 min readLesson 2 of 3

Collecting, dumping and archiving SMF

The SMFPRMxx parmlib member controls what SMF records and where it writes them. Records go to SYS1.MANx datasets or, more commonly today, to log streams, and a daily job dumps them to archive datasets that are kept for years.

SMFPRMxx: the control member

SMF is configured by an SMFPRMxx member in parmlib, chosen at IPL and changeable while the system runs. It says whether recording is on, which record types and subtypes to keep, whether to write to datasets or log streams, how often interval records are produced, and which exits run. Systems programmers own it; changes go through change control because a wrong value can silently stop audit or billing data.

Parts of an SMFPRMxx member (illustrative, values vary by site)What it means
ACTIVE
SMF recording is on
RECORDING(LOGSTREAM)
Write to system logger log streams rather than SYS1.MANx datasets
DEFAULTLSNAME(IFASMF.DEFAULT)
Log stream for any type not sent elsewhere
LSNAME(IFASMF.PERF,TYPE(70:79))
Send RMF records to their own log stream
SYS(TYPE(0:255),EXITS(...))
Record types to collect for the system, and exits to call
INTVAL(15)
Interval length in minutes for interval records
SYNCVAL(00)
Line intervals up with the hour, so data from different sources matches

Useful operator commands: D SMF shows the current recording status, SET SMF=xx activates a different SMFPRMxx member, and SETSMF changes individual parameters. Your site may restrict who can issue these.

Datasets or log streams

Two ways to record SMF
SYS1.MANx datasets
A small set of VSAM datasets used in rotationWhen one fills, SMF switches to the nextThe full one must be dumped and cleared before it can be reusedIf all fill, records are lostOlder method, still found at some sites
Log streams
Written through the system loggerCan be held in a coupling facility or on DASD onlyDifferent record types can go to different log streamsMuch larger buffering, fewer lost recordsIBM's recommended method for current systems

With datasets, the I SMF (SWITCH SMF) command forces a switch to the next MANx dataset, which is a common step before dumping. With log streams there is no switching: the dump program reads the log stream by date and time range.

Dumping and archiving

Two IBM programs move SMF data into ordinary sequential datasets: IFASMFDP for SYS1.MANx datasets and IFASMFDL for log streams. Both can select record types and write different types to different output files, so a site can keep RMF data in one archive and security data in another.

Daily dump of yesterday's log stream data (illustrative)
//SMFDUMP  EXEC PGM=IFASMFDL
//SYSPRINT DD SYSOUT=*
//OUTALL   DD DSN=SMF.DAILY.ALL(+1),DISP=(NEW,CATLG),...
//OUTSEC   DD DSN=SMF.DAILY.SEC(+1),DISP=(NEW,CATLG),...
//SYSIN    DD *
  LSNAME(IFASMF.DEFAULT,OPTIONS(DUMP))
  OUTDD(OUTALL,TYPE(0:255))
  OUTDD(OUTSEC,TYPE(80))
  RELATIVEDATE(BYDAY,1,1)

Outputs are usually GDG generations, later consolidated into weekly and monthly archives on tape or virtual tape. Retention is a business decision: audit and regulation may require years of security records, while detailed interval data might be summarised after a few months. Many sites also feed SMF to analytics tools such as IBM Z Performance and Capacity Analytics, MXG (SAS-based), IntelliMagic Vision, or a SIEM through forwarders such as Precisely Ironstream.

Modern relevance

Common mistakes

Ignoring a failed SMF dump job

It is not 'just housekeeping'. With dataset recording, a failed dump can lead to lost records. Treat it as production-critical and restart it promptly.

Suppressing record types to save space

Removing types 70, 80 or 89 can break audit, chargeback and software licence reporting. Agree changes with every data owner first.

Assuming the archive is complete

Check dump job outputs and record counts. Gaps are found by auditors months later, when they cannot be fixed.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← What SMF recordsRMF and putting SMF to work →