Updating the space management fields when a root segment is inserted

When a root segment is inserted into an HD database, the space management fields need to be updated.

The following figure illustrates this process. The figure makes several assumptions so real values could be put in the space management fields. These assumptions are:

The before picture shows the CI containing the bitmap (in VSAM, the bitmap is always in the second CI in the database). The second bit in the bitmap is set to 1, which says there is free space in the next CI. In the next CI (CI #3):

The SKILL1 root segment to be inserted is only 32 bytes long; therefore CI #3 has plenty of space to store SKILL1.

The after picture shows how the space management fields in CI #3 are updated when SKILL1 is inserted.

Figure 1. Updating the space management fields in an HDAM or PHDAM database
Begin figure description: This figure is described in the text that precedes it.