Index Definition Record

The image definition record has a variable length. The total record length depends on the number of CIFF item index record fields that are defined.

Table 1. Index Definition Record Layout
Field Number Format Bytes Constant Value Description
1 binary 4   Length of this index definition record
2 binary 1 X'15' Record type (index definition record)
3 binary 1 X'00' Reserved
4 binary 1 X'01' or X'02' Indicates the version number for this record.
5 binary 1 X'00' Reserved
6 character 27 C' ‘s Reserved
7 character 5   Total length of the image index data, in bytes. It is the sum of the lengths of the individual item index record fields defined in field 8.
8       Field 8 contains sub-fields that are used to define a single CIFF item index record field. For version 1, a maximum of 14 CIFF item index record fields may be defined. For version 2, the maximum number is 64.
8.1 character 11   The name of this index field
8.2 character 1   The data type of this index field. It is one of the following:
C
character
D
date as YYYYMMDD
N
numeric
P
packed
U
unsigned packed
X
binary
Y
a binary field that is 1, 2, or 4 bytes only
8.3 character 4   Reserved
8.4 character 4   Length, in bytes, of this index field
8.5 character 2   Number of positions after the decimal point used for this index field
8.6 character 10 C' ‘s Reserved
9 character 1 C' ' Reserved
10 character 27 C' ‘s Reserved