Consider an MVS™ Image MVS1 that runs our production CICS® regions. We will implement Daily and Cyclic SMF File definitions to help us run our report requests against the SMF data collected for this system.
The first (optional) step is to implement Take-up for Daily SMF Files.
Daily SMF files are recommended when your SMFDUMP process creates extract GDG data sets whenever SMF is switched throughout the day. Daily files allow you to run report requests against today's SMF data without having to explicitly specify the data set names.
It is recommended that you append the take-up step to the end of your SMFDUMP job so that daily data sets are defined automatically. See Take-up from SMF File for more information.
//SMFDUMP JOB ,CLASS=A,NOTIFY=&SYSUID
//* SMF Dump for MVS Image MVS1
//SMFDUMP EXEC PGM=IFASMFDP
//INDD DD DSN=SYS1.MAN1,DISP=SHR
//OUTDD1 DD DISP=(NEW,CATLG),DSN=MVS1.SMF(+1)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
INDD(INDD,OPTIONS(ALL))
OUTDD(OUTDD1,TYPE(110))
/*
//* CICS PA Shared System Definitions Take-up
//CICSPA EXEC PGM=CPAMAIN,REGION=4M
//STEPLIB DD DSN=CPA.V3R2M0.SCPALINK,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SMFIN001 DD DISP=(SHR,KEEP),DSN=MVS1.SMF(+1)
. . .
//SYSIN DD *
CICSPA IN(SMFIN001),
HDB(TAKEUP,SYSTEMS,FILEIMAGE,OUTPUT(TAKEUP))
/*
CICS PA Take-up will define Image MVS1 if it is not already defined, and attach the new daily SMF file MVS1.SMF(+1) to the system.
The result when you view the daily SMF files for system MVS1 (System View 3) is the list of daily data sets definitions created by take-up, and the time interval they span.
File Edit Options Help ------------------------------------------------------------------------------ EDIT MVS Image Row 1 of 8 More: > Command ===> ________________________________________________ Scroll ===> CSR_ MVS Image System definition: MVS Image . . . . MVS1____ Description . . . Image MVS1 that runs CICS Production System View: 3 1. Definition 2. Cyclic SMF Files 3. Daily SMF Files SMF Data Set Name ------ Start ------ - Stop - MVS1.SMF.G1493V00 2005-03-17 10.38.02 11.57.03 MVS1.SMF.G1491V00 2005-03-17 08.00.44 10.20.25 MVS1.SMF.G1489V00 2005-03-17 04.01.04 07.56.54 MVS1.SMF.G1487V00 2005-03-17 00.01.33 03.57.04 MVS1.SMF.G1485V00 2005-03-16 20.03.12 00.00.00 MVS1.SMF.G1483V00 2005-03-16 15.52.42 *EXPIRED MVS1.SMF.G1481V00 2005-03-16 14.09.02 *EXPIRED MVS1.SMF.G1479V00 2005-03-16 10.52.18 *EXPIRED ******************************* Bottom of data ********************************
Scroll Left (F10) to view the Cyclic SMF file definitions (System View 2).
File Edit Options Help ------------------------------------------------------------------------------ EDIT MVS Image Row 1 of 2 More: > Command ===> ________________________________________________ Scroll ===> CSR_ MVS Image System definition: MVS Image . . . . MVS1____ Description . . . Image MVS1 that runs CICS Production System View: 2 1. Definition 2. Cyclic SMF Files 3. Daily SMF Files / SMF Data Set Name (or GDG Base) Origin Interval DISP _ 'MVS1.SMF.WEEKLY'___________________________ SUNDAY WEEK MOD _ 'MVS1.SMF.MONTHLY'__________________________ ****-01-01 MONTH MOD ******************************* Bottom of data ********************************
1. Specify Personal System Definitions... 2. Specify Shared System Definitions... 3. Use Personal System Definitions *. Use Shared System Definitions
Shared SMF File selection is controlled by the Report Interval you specify at run time.