Example of RENAME CLAUSE
PROGRAM
IDENTIFICATION DIVISION.                        Â
PROGRAM-ID. PGM003.                             Â
AUTHOR. MAINFRAMEWIZARD.                         DATA DIVISION.                                   WORKING-STORAGE SECTION.                        Â01 GROUP1.                                      Â
  05 REC1.                                     Â
     10 ELEMENT1 PIC X(3) VALUE ‘WWW’.         Â
     10 ELEMENT2 PIC X(9) VALUE ‘MAINFRAME’.   Â
  05 REC2.                                     Â
     10 ELEMENT3 PIC X(6) VALUE ‘WIZARD’.      Â
     10 ELEMENT4 PIC X(1) VALUE ‘.’.           Â
     10 ELEMENT5 PIC X(3) VALUE ‘COM’.         Â
  66 GROUP2 RENAMES ELEMENT2 THRU ELEMENT5.    PROCEDURE DIVISION.                             Â10000-MAIN-PARA.                                Â
     DISPLAY ‘RENAME CLAUSE DEPICTED BY ‘ GROUP2.
     STOP RUN.                                              Â