The SMFEXIT macro allows the user to branch directly to any installation-written SMF exit residing in the SYS1.LPALIB. You must define the SMF exit name to SMF with the EXIT parameter before issuing the macro.
When you invoke the SMFEXIT macro, you must include the IEESMCA mapping macro, which maps the SMCA.
[label] SMFEXIT exitname [,SUBSYS={name }]
[ {(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. If the defaulted subsystem name is not found, then the macro uses the options specified for the entire system on the SYS option to determine which exit (if any) to call.