Using secondary indexes with variable-length segments
If a variable-length segment is a source segment, when an occurrence of it is inserted that does not have fields specified for use in the search, subsequence, or duplicate data fields of the pointer segment, the following events can occur.
- If the missing source segment data is used in the search field of the pointer segment, no pointer segment is put in the index.
- If the missing source segment data is used in the subsequence
or duplicate data fields of the pointer segment, the pointer segment
is put in the index. However, the subsequence or duplicate data field
will contain one of the three following representations of zero:
- P = X'0F'
- X = X'00'
- C = C'0'
Which of these is used is determined by what is specified on the FIELD statements in the DBD that defined the source segment field.