Previous Topic: EXTRACT One Week's Data

Next Topic: EXTRACT Using a User Exit

EXTRACT One Month's Data

The following example performs two extractions of designated SMF data over a period of one month.

//jobname  JOB  job accounting parameters
//STEP0001 EXEC CASFXSMF,A='A',           /* SYSOUT CLASS
//         STEPLIB='CASFLOAD',
//         SCDDSN='CAI.MSMF.SCDS'
//JOBRECS  DD   DISP=(NEW,CATLG,DELETE),
//         DSN=CAI.MSMF.JOBRECS,
//         UNIT=SYSDA,
//         SPACE=(CYL,(50,20),RLSE),
//         DCB=(RECFM=VB,BLKSIZE=13030,LRECL=13022)
//TSORECS  DD   DISP=(NEW,CATLG,DELETE),
//         DSN=CAI.MSMF.TSORECS,
//         UNIT=SYSDA,
//         SPACE=(CYL,(50,20),RLSE),
//         DCB=(RECFM=VB,BLKSIZE=13030,LRECL=13022)
//SYSIN    DD   *
EXTRACT MONTH(0208) SID(SYS1) SELECT(4:6 20 26) TODD(JOBRECS).  (1)
EXTRACT MONTH(0208) SID(SYS1) SELECT(34 35) TODD(TSORECS).      (2,3)
/*

Note:

  1. For system SYS1, extract all February 2008 occurrences of SMF record types 4, 5, 6, 20, and 26. Write them to the data set defined by the JOBRECS DD statement, where they are available for further analysis and processing.
  2. Extract SMF record types 34 and 35 for system SYS1 during February 2008. Write these records to ddname TSORECS.
  3. If this job ran on any day in March 2008, the EXTRACT command: EXTRACT LMONTH SID(SYS1) SELECT (34 35) TODD (TSORECS) would perform the same function.

See Chapter 4 of this guide for a complete description of the EXTRACT command and its operands.