Previous Topic: EXTRACT One Day's Data

Next Topic: EXTRACT One Month's Data

EXTRACT One Week's Data

The following example illustrates how to extract SMF data on a weekly basis for a specific SMF ID (SID).

//jobname  JOB  accounting information
//STEP001  EXEC CASFXSMF,A='*'
//SMFOUT   DD  DISP=(,CATLG),UNIT=(CART,,DEFER),DSN=CAI.PMA.WEEKLY(+1)    (1)
//         DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=32748)
//SYSIN    DD  *
   EXTRACT  SID(XAT1)  LWEEK  TODD(SMFOUT)   (2)
/*
//

Note:

  1. SMF records for system XAT1 will be extracted and sent to the output file SMFOUT.
  2. The LWEEK operand indicates the date and time range for the SMF records that will go to the SMFOUT file. The SMF records written to the SMFOUT DD will be for seven days starting from the first day of the previous week. This product assumes that a week starts on a Sunday and ends on a Saturday.

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