Figure description: RENAMES clause specifications
This figure illustrates valid and invalid RENAMES clause specifications.
The following examples are shown in the figure:
- Example 1 shows a valid RENAMES clause specification. The figure on the right illustrates
the storage layout for the following RENAMES clause.
In this figure,01 RECORD-I 05 DN-1... . 05 DN-2... . 05 DN-3... . 05 DN-4... . 66 DN-6 RENAMES DN-1 THROUGH DN-3.
RECORD-I
includesDN-1
,DN-2
,DN-3
, andDN-4
.DN-6
includesDN-1
,DN-2
, andDN-3
. - Example 2 shows a valid RENAMES clause specification. The figure on the right illustrates
the storage layout for the following RENAMES clause.
In this figure,01 RECORD-II 05 DN-1. 10 DN-2... . 10 DN-2A... . 05 DN-1A REDEFINES DN-1. 10 DN-3A... . 10 DN-3... . 10 DN-3B... . 05 DN-5... . 66 DN-6 RENAMES DN-2 THROUGH DN-3.
RECORD-II
includesDN-2
,DN-2A
, andDN-5
.DN-1
includesDN-2
andDN-2A
.DN-1A
, which redefinesDN-1
, includesDN-3A
,DN-3
, andDN-3B
.DN-6
includesDN-3A
andDN-3
. - Example 3 shows an invalid RENAMES clause specification. The figure on the right illustrates
the storage layout for the following RENAMES clause.
In this figure,01 RECORD-III 05 DN-2. 10 DN-3... . 10 DN-4... . 05 DN-5... . 66 DN-6 RENAMES DN-2 THROUGH DN-3.
RECORD-III
includesDN-3
,DN-4
, andDN-5
.DN-2
includesDN-3
andDN-4
.DN-6
is indeterminate becauseDN-2
includesDN-3
. - Example 4 shows an invalid RENAMES clause specification. The figure on the right illustrates
the storage layout for the following RENAMES clause.
In this figure,01 RECORD-IV 05 DN-1. 10 DN-2A... . 10 DN-2B... . 10 DN-2C REDEFINES DN-2B. 15 DN-2CA... . 15 DN-2D... . 05 DN-3... . 66 DN-4 RENAMES DN-1 THROUGH DN-2CA.
RECORD-IV
includesDN-2A
,DN-2B
, andDN-3
.DN-1
includesDN-2A
andDN-2B
. BothDN-2B
andDN-2C
includeDN-2CA
andDN-2D
.DN-4
is indeterminate becauseDN-1
includesDN-2CA
.
End of figure description.