Inserting missing fields

When a variable-length segment is inserted into the database, the length field is set to the value of the minimum size needed to hold all sensitive fields.

The following figure is an example of a missing field on an insert call using the DBD and PSB in the example of a DBD for field-level sensitivity with variable-length segments.

Figure 1. Example of a missing field on an insert call
The I/O area has fields EMPNAME, EMPNO, and ADDRESS. The physical segment on disk after insert has the fields LL, EMPNO, EMPNAME, BIRTHD (blank), and ADDRESS.

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