Example 12: Reloading and analyzing an area and storing the sensor data in the IMS Tools KB repository

The following figure shows example JCL for reloading an area that is registered with DBRC, analyzing that area, and storing the sensor data in the Sensor Data repository of IMS Tools KB.

In this example:

  • RECON data sets are allocated dynamically by using the DFSMDA members in the IMSDALIB DD data set.
  • The input unloaded segment records data set for the area is HPFP.USRFILE.DB22AR0, which is specified by the IDSNMASK='HPFP.USRFILE.&AREA' parameter. This data set is allocated dynamically.
  • The output ADSs to be unloaded are dynamically allocated. The allocation information (DD statement name and DS name of the ADS) is obtained from DBRC. The output ADSs must be defined before running this example.
  • After the reloading process is complete, the RECOV NEEDED status of area DB22AR0 is changed to OFF, and all three ADSs of the area are made AVAILABLE with DBRC.
  • After the reloading process is complete, the reloaded area DB22AR0 is analyzed with the quick check option, and sensor data is collected and stored in the Sensor Data repository of IMS Tools KB.
Figure 1. Reloading and analyzing an area and storing the sensor data in the IMS Tools KB repository
//HFP      EXEC PGM=HFPMAIN0
//STEPLIB  DD DISP=SHR,DSN=HPFP.SHFPLMD0
//         DD DISP=SHR,DSN=IMSVS.SDFSRESL
//         DD DISP=SHR,DSN=IMSVS.PGMLIB
//         DD DISP=SHR,DSN=ITB.SHKTLOAD
//IMSACB   DD DISP=SHR,DSN=IMSVS.ACBLIB
//IMSDALIB DD DISP=SHR,DSN=IMSVS.MDALIB
//HFPRPTS  DD SYSOUT=*
//HFPPRINT DD SYSOUT=*
//HFPSRPT  DD SYSOUT=*
//HFPSYSIN DD *
  GLOBAL
    DBRC=YES,
    ITKBSRVR=FPQSRV01,
    ADXCFGRP=ADSRV01
  RELOAD
    DBD=DEDBJN22,
    IAREA=(DB22AR0),
    IDSNMASK='HPFP.USRFILE.&AREA',
    OAREA=(DB22AR0),
    PTRCHKLVL=QUICK,
    SENSOR=YES
/*