Example of REDEFINE CLAUSE
PROGRAM
IDENTIFICATION DIVISION.                                       Â
PROGRAM-ID. PGM002.                                            Â
AUTHOR. MAINFRAMEWIZARD.                                        DATA DIVISION.                                                  WORKING-STORAGE SECTION.                                       Â01 DATE1 PIC X(8).                                             Â
01 DATE2 REDEFINES DATE1.                                      Â
  05 DATE2-DD   PIC X(2).                                    Â
  05 DATE2-MM   PIC X(2).                                    Â
  05 DATE2-YYYY PIC X(4).                                     PROCEDURE DIVISION.                                            Â10000-MAIN-PARA.                                               Â
     MOVE 08092010 TO DATE1                                   Â
     DISPLAY ‘DATE =’ DATE1                                   Â
     DISPLAY ‘YEAR OF DATE=’ DATE2-YYYY                       Â
     STOP RUN.                                                   Â