Example: Working with Shared Systems
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.
//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.V5R3M0.SCPALINK,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SMFIN001 DD DISP=(SHR,KEEP),DSN=MVS1.SMF(+1)
. . .
//SYSIN DD *
CICSPA IN(SMFIN001),
TAKEUP(SHARED,SYSTEMS,FILESYSTEM,OUTPUT(SDTU0001))
/*
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 2012-07-17 10.38.02 11.57.03
MVS1.SMF.G1491V00 2012-07-17 08.00.44 10.20.25
MVS1.SMF.G1489V00 2012-07-17 04.01.04 07.56.54
MVS1.SMF.G1487V00 2012-07-17 00.01.33 03.57.04
MVS1.SMF.G1485V00 2012-07-16 20.03.12 00.00.00
MVS1.SMF.G1483V00 2012-07-16 15.52.42 *EXPIRED
MVS1.SMF.G1481V00 2012-07-16 14.09.02 *EXPIRED
MVS1.SMF.G1479V00 2012-07-16 10.52.18 *EXPIRED
******************************* Bottom of data ********************************
Scroll Left (F10) to view the Cyclic SMF file definitions (System View 2).
- Weekly SMF file GDG where one generation contains data for one week, is built at end of the day from the daily SMF files (defined previously), and is rolled over every Sunday.
- Monthly SMF file GDG where one generation contains data for one calendar month, and is rolled over on the first day of each month.
To use shared System Definitions in preference to personal System Definitions, you need to change your personal profile. The Systems action bar is available on all run-time panels, for example Run Report Set. Select option 4 Use Shared System Definitions. With this setting you can now use the shared system definitions and their SMF Files.
Shared SMF File selection is controlled by the Report Interval you specify at run time.