UNLOADKEYS and BUILDINDEX strategy
Specify the RECOVER UNLOADKEYS command statement for the nonpartitioned index and specify the PART option to indicate which table space partition is to be used for this key extraction. Include a DD statement in the JCL to specify the work data set to hold the keys. The extracted key files are sorted and are then input to the RECOVER BUILDINDEX job where the keys are merged to build the index.
The improved concurrency can drastically reduce the elapsed time that is required to rebuild a nonpartitioned index. Because RECOVER UNLOADKEYS performs the sorting, particularly for a large, partitioned space, you might see performance improvements because a number of smaller sorts are done.
You can extract the keys for RECOVER UNLOADKEYS indexes during the table space recovery process, further reducing the total elapsed time for combined table space and index recovery. For an example of a combined LOGSORT/MERGE strategy and UNLOADKEYS/BUILDINDEX strategy, see Example-6-Extracting-nonpartitioned-index-keys.