There is a great deal of detailed documentation on the REORG utility. To fully understand what the utility does and how to use it, clients should take the time to carefully read sections CREATE DSMODEL and REORG of the IDMS Utilities manual.
This document contains a very brief description of the utility and provides sample JCL that was used to expand a dictionary DDLDML area from 5000 to 7000 pages.
Release: All supported releases.
The REORG utility unloads and reloads an IDMS database using parallel processing to reduce the amount of time it takes to reorganize data. In order to enable parallel operations, the utility divides the source and target databases into slices and groups of system-owned indexes. Each slice or index group can be processed (unloaded and reloaded) in parallel by concurrently executing jobs.
In this example, the utility is told to divide the DDLDML area into four slices.
This example also makes use of the CREATE DSMODEL utility statement that provides characteristics for dynamic allocation of the intermediate work files that are passed from one step to the next during the REORG.
For this example, the DMCL contains all database file DSN definitions so the only database DD/DSN in this example is the override for the new, larger database in the RELOAD step of the JCL. In addition to the JCL that is submitted, the utility will dynamically submit jobs as needed using JCL that it will read from a dataset specified in the submitted JCL.
Please note that in this case, the UNLOAD and RELOAD steps are run separately, and the override for the new database file must be present in the RELOAD phase only. This avoids the problem described at Unexpected database errors in REORG.
The REORG job can run with the CV down or if CV is up, all affected areas must first be varied to Retrieval or Offline. Keep in mind that the procedure described here is one way to do this. It is the method that was used by IDMS Level 1 tech support to expand one of their dictionary areas.
Sample JCL is provided in the .zip file attached below. Download it and consult the readme.txt file in conjunction with the following steps.
Steps taken to expand APPLDICT.DDLDML from 5000 to 7000 pages using REORG:
NOTE: Determining sizes for intermediate work files is difficult for a number of reasons and will not be discussed in this document. For more information on this subject, go to the REORG documentation page and scroll down to Sizing work files.