Using a macro to write records

SMF supplies two macros that you can use to write records to the SMF data set: SMFWTM and SMFEWTM. These macros differ in the entry method that they use to the record-writing routine.

If a branch entry is required, use the SMFEWTM macro with BRANCH=YES. Use the SMFEWTM macro with BRANCH=NO (or the SMFWTM macro) if all of the following are true:

The SMFWTM macro generates a supervisor call (SVC) instruction. For SMFEWTM BRANCH=NO, the SVC is generated by the code invoked by the SMFEWTM macro.