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
-
Install and configure the required IMS Database Recovery
Facility load
libraries and utilities.
-
Customize the procedures found in the your.hlq.SFRXSAMP sample library.
For more information, refer to:
-
Customize the execution JCL found in the your.hlq.SFRXSAMP sample library.
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:
- DRFIAX specifies the name of the procedure that is used to initiate the utility
address space for IB.
- 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.
-
Submit the IMS Database Recovery
Facility job.