Enscribe Programmer's Guide

The relative-block-number field in an index record points to the start of the block
associated with this key. A null key value is used when KEYLEN = 0; this occurs for the first
record in an index block.
Figure 32 Index Block Header for Key-Sequenced and Queue Format 2 Files
common-block-header
number-of-records-allocated
(reserved)
(record 0)
Offset
(Decimal)
0
28
32
40
28
4
8
Length
in
Bytes
The fields in Figure 32 are defined as:
common-block-header
is the 28-byte common block header shown in Figure 31.
number-of-records-allocated
indicates how many records have been allocated in the block.
Figure 33 Data Block Header for Key-Sequenced and Queue Format 2 Files
40
4
common-block-header
number-of-records-allocated
Offset
(Decimal)
0
28
32
28
4
4
Length
in
Bytes
(record 0)
36
relative-block-number
of next data block
relative-block-number
of previous data block
The fields in Figure 33 are defined as:
common-block-header
is the 28-byte common block header shown in Figure 31.
number-of-records-allocated
indicates how many records have been allocated in the block.
relative-block-number of next data block
provides a link to the next logical block. The current block's relative-block-number is
given in the common block header.
177