Switching the SMF Data Sets

When the SMF data set that is currently being recording on becomes full, SMF does the following:
  • Automatically closes the full data set, making it available for dumping.
  • Locates the new data set to open by starting at the top of the list of data sets specified on the DSNAME parameter of the SMFPRMxx member and looking for the first completely empty data set.

For example, suppose an installation defined three data sets, DS1, DS2, and DS3, in that order on the DSNAME parameter of SMFPRMxx. Now, lets say that SMF is writing to DS2, while DS1 and DS3 are empty. When DS2 fills, the installation issues I SMF to switch to an empty data set, SMF will use data set DS1 because it is at the top of the list in SMFPRMxx.

If the first available data set is not completely empty, SMF will begin to store the records in its buffers, even though there might be enough room in that data set for the records it is trying to write, and even though others of the SMF data sets might be completely empty.

Full means that the record which SMF is currently preparing to write out will not fit into the space left on the current SMF data set. It is possible that a data set might become “full” when it is less than 100% filled.

To prepare an SMF data set for dumping before it becomes full, the operator uses the SWITCH SMF command. When switching the SMF data sets, an inactive data set cannot become active unless it is empty. Therefore, before issuing the SWITCH command, the operator should use the DISPLAY SMF command to verify that there is at least one alternate data set. If the operator does not make this check, data might be lost.

The HALT EOD command causes a switch of SMF data sets but should be used only if the operator intends to quiesce the system in preparation to shut down. The HALT command should never be used if you intend to keep running, because it closes the system log.

When the operator issues either the HALT EOD or the SWITCH SMF command, the following actions occur:
  • A type 19 record is created for each online direct access device (if a type 19 record was specified)
  • For a SWITCH SMF command, a type 90 record is created to show the old and new data set names
  • The SMF buffer is written to the active SMF data set
  • The SMF data sets are switched so that the operator can dump the previously active data set.