Converting a database from HIDAM to HDAM
Converting a database from HIDAM to HDAM can be performed in a few steps; however, you need to perform a number of preliminary steps also.
You need to do the following before changing your DL/I access method from HIDAM to HDAM:
- Reassess your choice of direct-address pointers. Although both
HIDAM and HDAM use direct-address pointers, you might need to change
the type of direct-address pointer used:
- Because of the changing needs of your applications.
- Because pointers are partly chosen based on the type of database you are using. For example, if you used physical twin backward pointers on root segments in your HIDAM database to get fast sequential processing of roots, they will not have any use in an HDAM database.
- Determine which randomizing module you are going to use. Unlike HIDAM, HDAM uses a randomizing module. The randomizing module generates information that determines where a database record is to be stored.
- Determine which HDAM options you are going to use. Unlike HIDAM,
an HDAM database does not have a separate index database. Instead
the database is divided into two parts: a root addressable area and
an overflow area. The root addressable area contains all root segments
and is the primary storage area for dependent segments in a database
record. The overflow area is for storage of dependent segments that
do not fit in the root addressable area. The HDAM options here are
the ones that pertain to choices you make about the root addressable
area. These are:
- The maximum number of bytes of a database record to be put in the root addressable area when segments in the database record are inserted consecutively (without intervening processing operations).
- The number of blocks or CIs in the root addressable area.
- The number of RAPs in a block or CI in the root addressable area.
- Reassess your choice of logical record size.
- Reassess your choice of CI or block size.
- Reassess your choice of database buffer sizes and the number of buffers you have allocated. If you have changed your CI or block size, you need to allocate buffers for the new size.
- Recalculate database space. You need to do this because the changes you are making will result in different requirements for database space.
After you have determined what changes you need to make, you are ready to change your DL/I access method from HIDAM to HDAM. To do this: