Replacing missing fields
A missing field that is not replaced does not affect the physical variable-length segment.
The following figure is an example of a missing field on a replace call based on the DBD and PSB in Retrieving missing fields.

The length field, maintained by IMS, does not include room for the address field, because the field was missing and not replaced.
On a replace call, if a field returned to the application program with a fill value is changed to a non-fill value, the segment length is increased to the minimum size needed to hold the modified field.
- The 'LL' field is updated to include the full length of the added field and all fields up to the added field.
- The TYPE= parameter in the DBD determines the fill value for non-sensitive DBD fields up to the added field.
- Binary zero is the fill value for space up to the added field that is not defined by a FIELD statement in the DBD.
The following figure is an example of a missing field on a replace call based on the DBD and PSB in Retrieving missing fields.

The 'LL' field is maintained by IMS to include the full length of the ADDRESS field and all fields up to the ADDRESS field. BIRTHD is filled with blanks, because TYPE=C is specified on the FIELD statement in the DBD. Positions 34 to 42 are set to binary zeros, because the space was not defined by a FIELD statement in the DBD.