Whether identifier-1 references an elementary or group item, all
operations are performed as if a series of MOVE statements had been written,
each of which had an elementary item as a receiving field.
If the REPLACING phrase is specified:
- If identifier-1 references a group item, any elementary item within the
data item referenced by identifier-1 is initialized only if it belongs to the
category specified in the REPLACING phrase.
- If identifier-1 references an elementary item, that item is initialized
only if it belongs to the category specified in the REPLACING phrase.
This initialization takes place as if the data item referenced by
identifier-2 or literal-1 acts as the sending operand in an implicit MOVE
statement to the identified item.
All such elementary receiving fields, including all occurrences of table
items within the group, are affected, with the following exceptions:
- Index, pointer, and procedure-pointer data items
- Elementary FILLER data items
- Items that are subordinate to identifier-1 and contain a REDEFINES clause,
or any items subordinate to such an item. (However, identifier-1 may
contain a REDEFINES clause or be subordinate to a redefining item.)
- BOOLEAN data items.