It is quite easy to dynamically switch between SMF data set recording
and SMF logging:
- First, set up your SMF configuration in SMFPRMxx for both SMF
data set recording and SMF logging by defining both SMF data sets
(DSNAME parameter) and SMF log streams (LSNAME and DEFAULTLSNAME parameters).
- Now you can toggle between the two methods using the RECORDING(DATASET |
LOGSTREAM) SMFPRMxx parameter. There are two ways to do this:
- Change the RECORDING parameter in a new SMFPRMxx parameter, and
then use the SET SMF=xx command to switch the system
to using that SMFPRMxx parmlib member.
- Issue the SETSMF RECORDING(DATASET | LOGSTREAM) command
to switch to the method you wish. Note that this method requires that
PROMPT(LIST) or PROMPT(ALL) be specified in the active SMFPRMxx parmlib
member to allow use of the SETSMF command.