content_image/992863.jpg
## BVIR jobs to obtain historical data 

The following JCL can be used to request BVIR data: 

<img src='content_image/992863.jpg'>

These jobs are also available as members in userid .IBMTOOLS.JCL  after you have installed the IBMTOOLS.exe  on your host. See 11.8, “Alerts and exception and message handling” on page 694. 

After you run one of these jobs, you can create various reports by using VEHSTATS . For more information, see “VEHSTATS reports” on page 868. 

## BVIRHSTS 

Example E-1 shows the JCL in userid .IBMTOOLS.JCL  member BVIRHSTS . 

//ITSO1 JOB CONSOLE, // MSGCLASS=H,MSGLEVEL=(1,1),CLASS=B, // TIME=1440,REGION=2M //* /*JOBPARM SYSAFF=* //* //* THIS IS A TWO JOB MEMBER TO ACCOMODATE EITHER JES2 OR JES3. //* BVIR DATA WILL ONLY BE WRITTEN TO A TAPE AFTER THE INITIAL //* DISMOUNT AND RE-MOUNT FOR READ. //* //* IF YOU HAVE MULTIPLE TS7740 GRIDS, YOU MUST HAVE A SEPARATE //* STORAGE GROUP DEFINED FOR EACH GRID to REQUEST STATISTICS //* FROM EACH ONE. USE AN ACS ROUTINE TO SELECT THE TARGET GRID. //* //* THIS JOB ISSUES THE BULK VOLUME INFORMATION (BVIR) REQUEST FOR //* HISTORICAL STATISTICS FROM THE GRID ASSOCIATED WITH THE VIRTUAL //* DRIVE ADDRESS USED. THE BVIR FEATURE MUST BE ACTIVATED ON THE //* VTS RECEIVING THE REQUEST. THE FINAL OUTPUT IS DIRECTED TO SMF. //* HISTORICAL STATISTICS FOR ALL CLUSTERS IN A GRID ARE RETURNED //* FROM A SINGLE BVIR REQUEST TO ANY OF THE CLUSTERS. //* NEXT, RUN VEHSTATS TO GET REPORTS. //* //PUTBVIR PROC USERHLQ=USERID, HI-LEVEL FOR USER DATA FILES // TOOLHLQ=TOOLID, HLQ FOR LOAD AND CNTL // SITE=SITENAME, 2ND LEVEL QUALIFIER // GRIDID=GRID#, GRID SERIAL NUMBER TO BE PART OF DSN // UNIT=VTAPE UNITNAME ON THIS VTS //* //STEP1 EXEC PGM=IEFBR14 //DEL1 DD UNIT=(&UNIT,,DEFER),DISP=(MOD,DELETE), 

