SMF real-time interface

SMF provides an application programming interface (API) that offers real-time access to SMF in-memory resources.

The following steps describe the expected calling sequence:
  1. Optional: Call the IFAMQRY service to determine which SMF in-memory resources are available to the application.
  2. Call the IFAMCON service to connect to an in-memory resource.
  3. Call the IFAMGET service in a loop to collect SMF records that are already in the in-memory resource or that are being recorded in real time.
  4. Call the IFAMDSC service to disconnect from the in-memory resource and clean up resources.

For more information, see the topic on using the SMF real-time interface in z/OS MVS System Management Facilities (SMF).