Enscribe Programmer's Guide

The relative-sector-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 in any index
record pointing to an index block or to the first data record.
Figure 25 Index Block Header for Key-Sequenced and Queue Files
common-block-header
number-of-records-allocated
(reserved)
(record 0)
Offset
(Decimal)
0
14
16
24
14
2
8
Length
in
Bytes
The fields in Figure 25 are defined as:
common-block-header
is the 14-byte common block header shown in Figure 24.
number-of-records-allocated
indicates how many records have been allocated in the block.
Figure 26 Data Block Header for Key-Sequenced and Queue Files
27
30
3
3
common-block-header
number-of-records-allocated
(reserved)
Offset
(Decimal)
0
14
16
14
2
8
Length
in
Bytes
(record 0)
24
relative-sector-number
of next data block
relative-sector-number
of previous data block
The fields in Figure 26 are defined as:
common-block-header
is the 14-byte common block header shown in Figure 24.
number-of-records-allocated
indicates how many records have been allocated in the block.
relative-sector-number of next data block
provides a link to the next logical block. The current block's relative-sector-number is
given in the common block header.
relative-sector-number of previous data block
provides a link to the previous logical block.
172 Block Formats of Structured Files