SMFEXIT — Branching to the SMF exits

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)}]
exitname
The name of the exit as it is specified in SMFPRMxx, with the format SYS.yyyy or SYSxxxx.yyyy.
SUBSYS=name
SUBSYS=(reg)
specifies the name (or address in register 2-12) of the 4-byte field containing the subsystem name. The macro looks for the subsystem name in SMFPRMxx and uses the options for that subsystem to determine if the record is written. The subsystem name must be left-justified and padded with blanks. If you use a register, it must be enclosed in parentheses. If the subsystem name is not found, then the macro uses the options specified for the entire system on the SYS option in SMFPRMxx to determine which exit (if any) to call.
Note: SMF does not preserve register 0 when processing SMFEWTM.

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.