Example 2. DBX and DBY exist, DBZ is to be added
In this example, the counter exists in the segment C prefix. DBX and DBY must be reorganized to calculate the new value for the counter in the segment C prefix.
Example 2 is shown in the following figure.

DBIL must be specified in the control statement for DBX and DBY. In the following steps, the segment A counter field is updated to show the number of C segments because segment C is loaded with a user load program.
Example 2 procedure
Procedure
- Determine whether the change you are making affects the code in any application programs. If the code is affected, make sure it gets changed.
- Unload DBX and DBY, using the existing DBDs and HD Unload utility.
- Code a new DBD for DBY and DBZ.
- If the change you are making affected the code in application programs, make any necessary changes to the PSBs for these application programs. If you have the DB/DC Data Dictionary, it can help you determine which application programs and PCBs are affected by the DBD changes you have made.
- Rebuild the ACB if you have ACBs prebuilt rather than built dynamically.
- Recalculate database space for DBX and DBY, and calculate space for DBZ.
- For non-VSAM data sets, delete the old database space and define new database space. For VSAM data sets, delete the space allocated for the old clusters and define space for the new clusters.
- Run the Prereorganization utility, specifying DBIL in the control statements for DBX, DBY and DBZ.
- Reload DBX and DBY, using the new DBDs and the HD Reload utility.
- Load DBZ, using an initial load program.
- Run the Prefix Resolution utility, using the DFSURWF1 work files that are output from Steps 9 and 10 as input.
- Run the Prefix Update utility, using the DFSURWF3 work file that is output from Step 11 as input.
- Remember to make an image copy of all three databases as soon as they are loaded.