Operational considerations for secondary indexes—Reorg function (Fast Reorg Facility/EP)
If any output data sets are not empty, the Reorg function issues an error message and the job step terminates.
If a reorganization fails and you specified SHARE(NO) and used old data set names for the secondary index data sets, your original indexes will be corrupted. The secondary index files will be empty or will not match the database before the start of the reorganization process.
To get indexes identical to the ones you had before beginning the reorganization, you must perform one of the following tasks:
- Recover the secondary index files.
Use the Index Build function to scan the disorganized primary database and build the secondary index files.
You can prevent the loss of the secondary indexes of the disorganized database by taking either of the following actions:
- Specify different data set names in the JCL for the reorganized secondary index data sets.
- Rename the original secondary index files, or make a backup of the original secondary index files.