This figure illustrates valid and invalid RENAMES clause specifications.
The following examples are shown in the 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.In this figure, RECORD-I includes DN-1, DN-2, DN-3, and DN-4. DN-6 includes DN-1, DN-2, and DN-3.
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.In this figure, RECORD-II includes DN-2, DN-2A, and DN-5. DN-1 includes DN-2 and DN-2A. DN-1A, which redefines DN-1, includes DN-3A, DN-3, and DN-3B. DN-6 includes DN-3A and DN-3.
01 RECORD-III 05 DN-2. 10 DN-3... . 10 DN-4... . 05 DN-5... . 66 DN-6 RENAMES DN-2 THROUGH DN-3.In this figure, RECORD-III includes DN-3, DN-4, and DN-5. DN-2 includes DN-3 and DN-4. DN-6 is indeterminate because DN-2 includes DN-3.
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.In this figure, RECORD-IV includes DN-2A, DN-2B, and DN-3. DN-1 includes DN-2A and DN-2B. Both DN-2B and DN-2C include DN-2CA and DN-2D. DN-4 is indeterminate because DN-1 includes DN-2CA.
End of figure description.