We need real-time access to Network Accounting Facility (NAF) data like user log-ons and –offs, as well as session-start data.

Data available from the Network Accounting Facility (NAF) and written to SMF is comprehensive and considered authoritative. The NAF record formats are described in the CL/SuperSession Customization Guide .

Real time access to this data is available via the SSPL dialog exit KLSOPTNF which can be edited to examine the records and, for instance, write a message or WTO each time a user logs on. The dialog is driven when runtime opt KLSOPTNF = 1.

NAF data collected (and written to the NAF dataset or SMF) is saved for the current address space and may be examined using the Unload NAF data for current runtime and NAF userexit option.

Note: The sample dialog controls how many records for the address space are saved. By default this is 32767. Users may customize the exit to save more, less, or restrict collection to a particular NAF record type.

By default, the sample dialog exit writes a message to the TLVLOG whenever a user logs-on or logs-off to the address space similar to:

KLSOPTNF CL/SuperSession logon for (USER001)

KLSOPTNF CL/SuperSession logoff for (USER001)