Sample code to format execution data

To collect and view the System Management Facility (SMF) type 120 subtype 100 records, you must edit and submit ++HBRWORKDS++.SHBRJCL(HBRSMFP).

Before you submit ++HBRWORKDS++.SHBRJCL(HBRSMFP), ensure that the values for ++PSMFDS++ and ++SSMFDS++ are updated to reflect the SMF primary and secondary datasets for your system. Your values can be obtained by issuing /D SMF in SDSF.

When the execution completes, you see that the SMF type 120 subtype 100 records are in a readable format, as in the following example output:

*******************
* SMFRecordHeader *
*******************
SMF120RTY = 120
SMF120SID = MVGB
SMF120STY = 100
SMF120HDV = 5
SMF120HDO = 32
SMF120HDL = 152
SMF120HDN = 1
******************************
* HBRSMF120ST100RecordHeader *
******************************
SMF120VER = 8.9.0.0
SMF120XUL = OD04
SMF120XUT = zRule Execution Server
SMF120SDT = 1/12/17
SMF120STM = 8:08:19 AM
SMF120EDT = 1/12/17
SMF120ETM = 8:20:00 AM
SMF120EXO = 188
SMF120EXL = 360
SMF120EXN = 1
****************************
* HBRSMF120ST100RecordExec *
****************************
RULEXNUM = 18
RULEXBAD = 0
RULEXFSUM = 15
RULEXCALLS = 18
RULEXTIME = 1654137
RULEXTMAX = 1603665
RULEXTMIN = 831
RULEXCPU = 725520
RULEXCMAX = 683663
RULEXCMIN = 814
RULEXETYP = de
RULEXEVER = 1.40.1
RULEXFBOM = T
RULEXFDEB = F
RULEXFMON = F
RULEXFTRC = F
RULEXSIZE = 7
RULEXPNUM = 2
RULEXPATH = /MiniLoanDemoRuleApp/1.0/MiniLoanDemo/1.0

The code for the sample HBRSMFP program is in ++HBRHLQ++.SHBRXLCS and the required header files are in ++HBRHLQ++.SHBRXLCH.