Without unloading or reloading

You can add segment types to a database record without unloading the database under the following circumstances.

  • In a HISAM database, the segment type to be added must be the last segment in the hierarchy. In addition, the segment type to be added must fit in the existing logical record.
  • In an HD database, the segment type to be added must also be the last segment in the hierarchy. The parent of the new segment type must use hierarchical pointers. Also, the segment type cannot be the largest segment type in the data set group.

To add a segment type to the database without unloading and reloading:

Procedure

  1. Determine whether the change you are making affects the code in any application programs. If the code is affected, make sure it gets changed.
  2. Code a new DBD. You need to add a SEGM= statement to the DBD for the new segment type.
  3. If the change you are making affected the code in application programs, make any necessary changes to the PSBs for those 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.
  4. Rebuild the ACB if you have ACBs prebuilt rather than built dynamically.
  5. Code and execute an application program to insert the new segment type.