Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-81
66 RENAMES
66
is the level number of the RENAMES clause.
renames-name
is a unique name.
field-name
is the name of a previously defined field in the dictionary. If field-name is not
unique, qualify it with group-name and def-name.
group-name
is the name of a previously defined group in the dictionary. If group-name is not
unique, qualify it with group-name and def-name.
A RENAMES clause does not redefine the characteristics of the field or group it
renames; thus, no other clauses can be used with RENAMES.
If field and group names need to be qualified to make them unique, use the DDL (not
COBOL) rules for qualifying names. For instance, to refer to the field STREET in the
group ADDRESS in the definition EMPLOYEE, use:
employee.address.street ! DDL qualification
Do not use:
street of address of employee ! COBOL qualification
If the THROUGH option is used, the definition of the first named field or group must
precede that of the second named field or group.
In Example 6-67 on page 6-81, ORDER-DETAIL renames the definition ODETAIL.
Example 6-67. RENAMES Clause
DEF odetail.
02 primkey.
03 ordernum TYPE *.
03 partnum TYPE *.
02 quantity PIC 9(3).
66 order-detail RENAMES primkey THRU quantity.
END