bdfd1m22Database Administration

ADD/DEL-Type Files with Variable-Length Items

ADD/DEL-type files with variable-length items have 2 NAB pointers. One NAB value identifies the start of the active items, the other identifies the end.

Figure 73 shows an example of the DBDEF statements to describe this type of file.

Figure 73. ADD/DEL-Type File with Variable-Length Items (CBV=4)


Notes:

  1. This figure shows a file ('YA'), which contains 2 fields (yyyyADP, and yyyyDEP).

  2. yyyyADP contains an ADD pointer, which defines where the next item should be added.

  3. yyyyDEP contains a DEL pointer, which defines where next item to be deleted.

  4. The items are variable-length, and contain a reference to another file ('YR').