Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX | both | z/OS V1.12 |
#include <unistd.h>
int __smf_record2 (int smf_record_type,
int smf_record_subtype,
int smf_record_length,
char *smf_record
unsigned int smf_exit );
The __smf_record2() function writes an SMF record pointed to by smf_record of length smf_record_length for SMF record type smf_record_type and subtype smf_record_subtype to the SMF data set.
_SMF_IEFU83 Cause SMF exit IEFU83 to gain control.
_SMF_IEFU84 Cause SMF exit IEFU84 to gain control.
The service can also be used to determine if a particular type or subtype of SMF record is being recorded to avoid the overhead of data collection if the SMF record is not going to be recorded. See z/OS MVS System Management Facilities (SMF) for more information on SMF record types and layout.
The caller of this service must be permitted to the BPX.SMF facility class profile or must be APF authorized. For information on creating and using this profile and the restrictions on its use, See z/OS UNIX System Services Planning.
This function is supported under CICS® Transaction Server for z/OS only when run in an open transaction environment (OTE).
If successful, __smf_record2() returns 0.