A sample NTS user exit named NTSXSMF is provided in source form and can be modified as required. The exit is a member of the ?dsnpref.NMC0.CC2ASAMP library distributed on the installation tape.
The sample exit is extensively documented and provides an example of an exit that writes, to the System Management Facility (SMF) database, all NTS session data queued for output processing.
This exit takes the record as passed from NTS and inserts the SMF record type of 39. Since SMF fills out the SMF header area for system type records this is all that the exit need do before issuing the SMFWTM macro to write the record to SMF.
The Assembler macro $NMSMF, distributed in the macro library provides mapping for the format of the SMF record generated.