Using the traditional method to recover indexes
Considerations
- The index must be empty. Use the IDCAMS keyword to delete and define the VSAM data sets.
- Indexes that are explicitly specified in a REC or AREC control statement are recovered using the traditional method unless they are defined as non-recoverable.
Example control statements
The following control statement examples use the example database described in Example-database-information-for-rebuilding-indexes.
Use the following REC statements to recover the following related databases:
GLBL DBRC(Y) DBALLOC(Y) DSALLOC(Y)
GROUP DUMP(*) ACCUM(*) LOG(*) IDCAMS(*)
REC DBD(DBPBB) DDN(DDPBB1)
REC DBD(DBPBB) DDN(DDPBB2)
REC DBD(DBSBB1) DDN(DDSBB1)
REC DBD(DBSBB2) DDN(DDSBB2)
REC DBD(DBSBB2) DDN(DDSBB3)Use the following statements to achieve the same results by recovering database data set group APPLGRP, instead of specifying REC statements:
GLBL DBRC(Y) DBALLOC(Y) DSALLOC(Y)
GROUP DBDSGRP(APPLGRP) FUNC(REC) -
DUMP(*) ACCUM(*) LOG(*) IDCAMS(*)
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*