Sample job illustrating the use of DFHMNDUP
The following sample job shows how you can use the DFHMNDUP program in conjunction with the DFH$MOLS program to print monitoring performance data.
//SMFMNDUP JOB (accounting information),CLASS=A,
// MSGCLASS=A,USER=userid,PASSWORD=password,NOTIFY=userid
//****************************************************************
//* Step 1 - Create new dictionary record and output to SYSUT4 *
//****************************************************************
//MNDUP EXEC PGM=DFHMNDUP
//STEPLIB DD DSN=CICSTS54.CICS.SDFHLOAD,DISP=SHR 1
// DD DSN=mct.table.loadlib,DISP=SHR
//SYSUT4 DD DSN=CICSTS54.CICS.applid.MNDUPREC,DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(1,1)) 2
//SYSPRINT DD SYSOUT=A
//SYSUDUMP DD SYSOUT=A
//SYSIN DD *
MCT=NO
SYSID=MVSA
GAPPLID=DBDCCICS
SAPPLID=DBDCCIC1
DATE=2003205
TIME=000100
/*
//****************************************************************
//* Step 2 - Unload the SMF data set containing CICS data *
//****************************************************************
//SMFDUMP EXEC PGM=IFASMFDP
//INDD1 DD DSN=SYS1.MANx,DISP=SHR,AMP=('BUFSP=65536') 3
//OUTDD1 DD DSN=SYS1.SMFDMPnn,DISP=(NEW,CATLG), 4
// SPACE=(CYL,(10,2)),UNIT=SYSDA
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
INDD(INDD1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(110(1)))
/*
//****************************************************************
//* Step 3 - Run DFH$MOLS to print the CICS monitoring data, *
//* using the new dictionary record from step 1 *
//****************************************************************
//PRNTMND EXEC PGM=DFH$MOLS
//STEPLIB DD DSN=CICSTS54.CICS.SDFHLOAD,DISP=SHR
//INPUT DD DSN=CICSTS54.CICS.applid.MNDUPREC,DISP=OLD 5
// DD DSN=SYS1.SMFDMPnn,DISP=OLD
//SYSPRINT DD SYSOUT=A
//SYSABEND DD SYSOUT=A
//SYSUDUMP DD SYSOUT=A
//SYSOUT DD SYSOUT=A
//SORTDIAG DD SYSOUT=A
//SYSIN DD *
/*
- In addition to the CICS® library containing the DFHMNDUP program, the STEPLIB library concatenation must also include the library that contains any monitoring control table (MCT) that you specify on the MCT parameter.
- You could decide to keep a permanent data set, one for each CICS region, to hold the dictionary record. Specify the DISP parameter according to whether the data set already exists, or a new one is to be created and cataloged.
- Specify the name of the SMF data set that you want to dump, where
x
is the installation-defined suffix in the range A to Z, or 1 to 9. You can reduce the time to unload the SMF data set by including an AMP parameter with a suitable buffer size. For further information about unloading SMF data sets, see z/OS MVS System Management Facilities (SMF). - If you decide to dump to a permanent SMF dump data set, specify
the DISP parameter according to whether the data set already exists,
or a new one is to be created and cataloged. The naming convention
shown here suggests the use of a suffixed name (SMFDMPxx) for the
low-level qualifier, where
xxis a two-character suffix. - You must put the dictionary data set in front of the dumped SMF data set. If the first monitoring performance record in the SMF data set is not a dictionary record, the dictionary record created by DFHMNDUP is used. However, if the first monitoring performance record in the SMF data set is a dictionary record, it is used instead of the dictionary record created by the DFHMNDUP program. The DFH$MOLS sample uses the last dictionary record read and disregards any previous record.