Note that level-number and data-name-1
or FILLER
are shown in the above format to improve clarity. Level-number, and data-name-1
and FILLER
are not part of the REDEFINES clause.
or FILLER,
or it can follow the PICTURE or USAGE clause
.
78
or 88.
This clause can be used on level 01 entries in the File Section.
data-name-2 can be subordinate to an entry which contains a REDEFINES clause. Its data description cannot contain an OCCURS clause. However, data-name-2 can be subordinate to an item whose data description entry contains an OCCURS clause. In this case, the reference to data-name-2 in the REDEFINES clause cannot be subscripted or indexed. Neither the original definition nor the redefinition can include an item whose size is variable as defined in the OCCURS clause. (See the topic The OCCURS Clause.)
The data description for data-name-2 can contain an OCCURS clause.
If the level number is 01, either or both of the original definition and the redefinition can include an item whose size is variable as defined in the OCCURS clause.
Data-name-2 may be qualified but any qualification specified is ignored.
The REDEFINES clause may be specified for a data item of class object.
Data-name-2 may be of class object.
except that the data-name-1 area can be either smaller than the data-name-2 area
or be larger than the data-name-2 area. In this case, extra storage is reserved to provide sufficient storage for the number of character positions in the largest of the redefining or redefined items.
It is important to observe that the REDEFINES clause specifies the redefinition of a storage area, not of the data items occupying the area.
or the data-name of any other preceding redefinition of that entry
.