Creating and running an IMS Database Recovery Facility job

Perform the following steps to create and run an IMS Database Recovery Facility job that runs IMS Index Builder against HALDBs to rebuild the indexes.

Before you begin

  • To rebuild the indexes, you must have IMS Database Recovery Facility and IMS Index Builder installed.
  • Complete the tasks in sample member FRXITKB.

Procedure

  1. Install and configure the required IMS Database Recovery Facility load libraries and utilities.
  2. Customize the procedures found in the your.hlq.SFRXSAMP sample library.

    For more information, refer to:

  3. Customize the execution JCL found in the your.hlq.SFRXSAMP sample library.

    For more information, see DRFMAS procedure.

    The following example shows modified IMS Database Recovery Facility JCL to run a recovery and use IMS Index Builder to rebuild the indexes:
    //IMS Database Recovery Facility      EXEC FRXMAS,DRFMBR=ZZ                                  
    //SYSIN DD *                                                      
     aDRFIAX(FRXJCLIP)
     REPORT(RPTTYPE=SEP,DRFUNIT=SYSDA,DRFHLQ=MYDRF1)   
     SORTPARM(ASPREF(AS))   
     DBDSL101(DISP(NEW))                                          
      OUTPUT(PRO)                                              
     bADD DB(DBOHIDK5) IB(HALDB=BOTH,BLD_SECONDARY(ALL)) -
      DBATRB(DBDSL(101))                   
    START ERROR(CONT)
    //  
    Explanation:
    1. DRFIAX specifies the name of the procedure that is used to initiate the utility address space for IB.
    2. IMS Database Recovery Facility recovers the DBOHIDK5 (PHIDAM/OSAM) database and rebuilds the primary index and ILE, including rebuilding all of the secondary indexes by using the IB() keyword.

      You can customize the IB keywords to your specifications.

  4. Submit the IMS Database Recovery Facility job.