The SMFRTEST macro allows you to determine if a particular type, or subtype, of a record is being recorded. Issue this macro before collecting data for a particular record or subtype to avoid the overhead of data collection if it is not written.
When you invoke the SMFRTEST macro, you must include the IEESMCA mapping macro, which maps the SMCA.
[label] SMFRTEST RECTYPE={record}[,SUBTYPE={subtype}][,SUBSYS={name }]
{(reg) }[ {(reg) }][ {(reg)}]
If you do not specify a SUBSYS, the macro uses the subsystem name for the current address space. For example, TSO for TSO/E users, ASCH for APPC/MVS transactions programs, STC for started tasks, or the name of the job entry subsystem (JES2 or JES3) for batch jobs. The macro uses the options specified in the corresponding SUBSYS parameter for that subsystem in SMFPRMxx to determine if the record is written. If there is no corresponding SUBSYS parameter or if the SUBSYS parameter contains no information about whether the record would or would not be written for that subsystem, then the macro uses the options specified in the SYS parameter to determine if the record is written.