Figure 35 shows a sample job with the SMF unload step as well as the monitoring report step.
//MONPRNT JOB (accounting information),CLASS=A,
// MSGCLASS=A,MSGLEVEL=(1,1)
//SMFUNLD EXEC PGM=IFASMFDP
//INDD1 DD DSN=SYS1.MANx,DISP=SHR,AMP=('BUFSP=65536') 1
//OUTDD1 DD DSN=&&TEMP,DISP=(NEW,PASS),SPACE=(CYL,(2,1)), 2
// UNIT=SYSDA
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
INDD(INDD1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(110(1))) 3
/*
//*
//PRNT EXEC PGM=DFH$MOLS
//STEPLIB DD DSN=CICSTS31.CICS.SDFHLOAD,DISP=SHR 4
//INPUT DD DSN=&&TEMP,DISP=(OLD,DELETE),UNIT=SYSDA
//SORTWK01 DD SPACE=(CYL,(5,1)),UNIT=SYSDA 5
//SORTWK02 DD SPACE=(CYL,(5,1)),UNIT=SYSDA
//SORTWK03 DD SPACE=(CYL,(5,1)),UNIT=SYSDA
//SORTWK04 DD SPACE=(CYL,(5,1)),UNIT=SYSDA
//SORTWK05 DD SPACE=(CYL,(5,1)),UNIT=SYSDA
//SORTDIAG DD SYSOUT=A
//SYSOUT DD SYSOUT=A
//SYSPRINT DD SYSOUT=A
//SYSABEND DD SYSOUT=A
//SYSUDUMP DD SYSOUT=A
//SYSIN DD *
·
·
·
Control statements for data selection 6
·
·
·
OPTION LOCAL
SORT
/*
Notes
1 Specify the last character of the data set name (in place of ‘x’) for the SMF data set you are unloading. For information about unloading multiple SMF data sets, see the notes to the sample DFHSTUP statistics job in Job to run the DFHSTUP program.
2 If you want to keep the unloaded data set, change the DSN and DISP parameters appropriately.
3 The SMF data set may contain any type of SMF record, but in this example we are unloading CICS® type 110 records only. Although this may include CICS statistics records, and any CICS user journal records written to SMF, the DFH$MOLS program ignores them and process monitoring data only; they are identified by a record sub-type ‘01’. Specify TYPE(0:255) to unload SMF record types.
4 If you have generated your own version of the DFH$MOLS program and stored it in a different library from the CICS-supplied version, change the STEPLIB statement accordingly. On the STEPLIB statement, you should specify the library that contains the version of the DFH$MOLS program for the CICS release of SMF records to be formatted.
5 These sort work files are required for sorting
SMF 110 monitoring data records.
6 Specify the control statements for data selection and other options in SYSIN. SORT is recommended to ensure that data is processed in the correct sequence. OPTION LOCAL is recommended so that the monitoring record start and stop timestamp fields are converted into local time in the reports produced. For details of the control statements for the DFH$MOLS program, see Control statements of DFH$MOLS -- overview.