Calling IMS Index Builder or DFSPREC0

Use the IMS Database Recovery Facility ADD control statement IB keyword to indicate that the Build Index function is required.

For primary and secondary indexes, index build processing is run after the database has been recovered because the entire database is required in order to build the indexes. Index build (IB) processing cannot occur while each individual data set in the database is being recovered.

For HALDB databases, IB processing consists of first calling DFSPREC0 to rebuild the prime index and/or the ILDS. For Full Function databases, IB is called to rebuild both the prime and the secondary indexes. For Fast Path DEDB databases, the Build Index function of FPA is called to build secondary indexes.

You need only rebuild indexes if the media containing the index fails or if a database is recovered to a particular time stamp (either PITR or non-PITR). This means that index data sets do not need to be rebuilt for all recoveries.

Index data sets are available to be image copied only if the index data sets are marked recoverable in the RECON. Image copies are not taken of index data sets that are marked non-recoverable.