Sample job stream for DFH$MOLS

Figure 1 shows a sample job with the SMF unload step as well as the monitoring report step.
Figure 1. Sample job to unload and process CICS data from SMF data sets
//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=CICSTS55.CICS.SDFHLOAD,DISP=SHR                       4 
//INPUT    DD DSN=&&TEMP,DISP=(OLD,DELETE),UNIT=SYSDA
//SYSUT2   DD DSN=&&XPND,DISP=(NEW,PASS),UNIT=SYSDA,                    5  
//            SPACE=(CYL,(25,10))
//SYSUT4   DD DSN=&&UNLD,DISP=(NEW,PASS),UNIT=SYSDA,                  6  
//            SPACE=(CYL,(25,10))
//SORTWK01 DD SPACE=(CYL,(5,1)),UNIT=SYSDA                              7 
//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                                   8 
⋮
OPTION LOCAL                                                            9 
*
PRINT ALL                                                              10 
RESOURCE ALL                                                           11 
*
EXPAND                                                                 12 
*
UNLOAD LOCAL                                                           13 
/*
//
Note:
  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 can contain any type of SMF record, but in this example, only CICS® type 110 records are unloaded. Although these records might include CICS statistics records, and any CICS user journal records written to SMF, the DFH$MOLS program ignores those and processes monitoring data only; these monitoring records are identified by a record subtype of 01.
  4. If you 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, specify the library that contains an appropriate version of the DFH$MOLS program for the CICS release of SMF records to be formatted.Sample monitoring data print program (DFH$MOLS) lists the earlier CICS Transaction Server versions and releases supported by the CICS TS for z/OS®, Version 5.5 release of DFH$MOLS. Always use the DFH$MOLS from the highest version or release available to you.
  5. Defines the output data set for the EXPAND control statement.
  6. Defines the output data set for the UNLOAD control statement.
  7. These sort work files are required for sorting SMF 110 monitoring data records.
  8. Specify the control statements for data selection and other options in SYSIN. For details of the control statements for the DFH$MOLS program, see DFH$MOLS control statements summary.
  9. OPTION LOCAL is recommended so that the monitoring record start and stop timestamp fields are converted into local time in the reports produced.
  10. PRINT ALL specifies that you want to print all types of monitoring SMF type 110 records that are selected by other control statement options.
  11. RESOURCE ALL specifies that you want to print all types of resource data within each resource record.
  12. EXPAND specifies that you want the monitoring data to be written to an output data set, including any compressed SMF 110 monitoring records in their expanded format. The DFH$MOLS program processes only CICS SMF 110 records with record subtype 01. All other SMF 110 records are ignored.
  13. UNLOAD LOCAL specifies that the performance class monitoring data is to be unloaded into a fixed length record format.