Take-up JCL
Take-up JCL can be generated from the dialog. It is recommended that the take-up JCL is incorporated into your SMF Dump process. Sample job CPAHDB in library SCPASAMP provides an example of how to do this. Refer also to Example: Working with Shared Systems.
Figure 1. Sample JCL CPAHDB - SMF Dump, Take-up, HDB Load, then reports
//CPAHDB JOB ,CLASS=A,NOTIFY=&SYSUID
//* SMF Dump
//SMFDUMP EXEC PGM=IFASMFDP
//INDD DD DSN=SYS1.MAN1,DISP=SHR
//OUTDD1 DD DISP=(NEW,CATLG),DSN=CICSPROD.SMFDAILY(+1)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
INDD(INDD,OPTIONS(ALL))
OUTDD(OUTDD1,TYPE(110))
/*
//*
//* CICS PA Take-up, HDB Load, and selected reports
//CICSPA EXEC PGM=CPAMAIN,REGION=4M,PARM=NOSTAE
//STEPLIB DD DSN=CPA.V5R3M0.SCPALINK,DISP=SHR
//SYSPRINT DD SYSOUT=*
//* SMF Input Files
//SMFIN001 DD DISP=(SHR,KEEP),DSN=CICSPROD.SMFDAILY(+1)
//* Repository
//CPAHDBRG DD DISP=SHR,DSN=<CPA.HDB.REPOSTRY>
//*
//* CICS PA command requests
//SYSIN DD *
CICSPA IN(SMFIN001),
APPLID(*),
* Take-up from SMF into Shared System Definitions
TAKEUP(SHARED,SYSTEMS,FILESYSTEM,OUTPUT(SDTU0001))
* HDB Load requests
HDB(LOAD(WEEKLY),OUTPUT(WEEKLY)),
HDB(LOAD(DAILY),OUTPUT(DAILY)),
HDB(LOAD(STATS),OUTPUT(STATS)),
* CMF Performance report requests
SUMMARY(FIELDS(TRAN),OUTPUT(SUMM0001)),
WAITANAL(BY(TRAN),OUTPUT(WAIT0001))
/*
Step 1 is the SMF Dump process that reads online SMF MANx data sets (or other SMF data) and creates an extract data set of SMF records to be used for reporting purposes.
Step 2 is the CICS PA batch
process that can perform the following tasks in parallel:
- Take-up to define the systems and SMF file to shared System Definitions.
- HDB Load requests to load performance data into Historical Databases.
- CICS PA Performance reporting to produce one of more reports for performance analysis.