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.

The following figure shows an example of the DBDEF statements to describe this type of file.

Figure 1. ADD/DEL-Type File with Variable-Length Items (CBV=4)
Alternative text description not available.
Note:
  • This figure shows a file ("YA"), which contains 2 fields (yyyyADP, and yyyyDEP).
  • yyyyADP contains an ADD pointer, which defines where the next item should be added.
  • yyyyDEP contains a DEL pointer, which defines where next item to be deleted.
  • The items are variable-length, and contain a reference to another file ("YR").