Deleting a partition from a HALDB database that uses a partition selection exit routine

When you use a partition selection exit routine, IMS cannot know which partitions are affected by the deletion of a partition.

Consequently, IMS does not set the PINIT flag for the partitions affected by the redistribution of records from the deleted partition. You must set the PINIT flag for these partitions manually.

You might also need to modify the exit routine to recognize the new partition, as well as change partition strings in some partitions.

To delete a partition from a HALDB database that uses a partition selection exit routine:

Procedure

  1. Take offline both the partition you are going to delete and any partition into which the records from the deleted partition will be moved by issuing the /DBRECOVERY DB partition_name command or the UPDATE DB NAME(partition_name) STOP(ACCESS) command.
  2. Unload both the partition you are going to delete and any partition into which the records from the deleted partition will be moved by running the HD Reorganization Unload utility (DFSURGU0).
  3. Delete the definition of the partition you are deleting from the RECON data set.
  4. If necessary, change the partition selection exit routine.
  5. Change the partition strings for partitions, as necessary.
  6. Set the PINIT flag in the partitions that will receive records from the deleted partition.
  7. Initialize the partitions that have the PINIT flag set.
  8. Load the partitions by running the HD Reorganization Reload utility (DFSURGL0).
  9. Take an image copy of the reloaded data sets. The image copy needed flag is set for the data sets in the partitions that are initialized or loaded by the DFSURGL0 utility.
  10. Make the affected partitions available again by issuing the /START DB partition_name command or the UPDATE DB NAME(partition_name) START(ACCESS) command.