This document contains a sample program for using as a front-end to MAINTAIN INDEX for rebuilding a user-owned indexed set.
The MAINTAIN INDEX utility as supplied can only rebuild system-owned indexes.
To rebuild user-owned indexes, you must use a user-written front-end program and then invoke the utility.
This KD contains a sample of such a program.
Download the attached zip file.
It contains cobol source and some sample JCL.
* Does not contain normal DML statements. You specify the names of the subschema/areas/records/sets involved and the DML calls are coded with native CALL statements.
* Can be instructed to read the records via the index (down) or to sweep the member records and obtain their owners (up).
* Can also be instructed to limit the processing to only one instance of the user-owned indexed set.
* Supports multiple page groups for when the owner and member are in different segments with different page groups.
See the comments in the attached files for more detailed instructions.
*Note: Other versions of this program have previously been provided under the names RBLDINDX and IDMSRUOX.
**Note: This source of the program provided in this Knowledge Document was last updated on July 19, 2017.