Effects of change in ODO object value
If a data item that is described by an OCCURS
clause
with the DEPENDING ON
phrase is followed in the same
group by one
or more nonsubordinate data items (a form of complex ODO), any
change in value of the ODO object affects subsequent references to
complex ODO items in the record.
For example:
- The size of any group that contains the relevant ODO clause reflects the new value of the ODO object.
- A
MOVE
to a group that contains the ODO subject is made based on the new value of the ODO object. - The location of any nonsubordinate items that follow the item described with the ODO clause is affected by the new value of the ODO object. (To preserve the contents of the nonsubordinate items, move them to a work area before the value of the ODO object changes, then move them back.)
The value of an ODO object can change when you move data to the
ODO object or to the group in which it is contained. The value can
also change if the ODO object is contained in a record that is the
target of a READ
statement.