Microsoft KB Archive/21136

Multiple REDEFINES Generate “Improper Redefines” Error

PSS ID Number: Q21136 Article last modified on 11-16-1992

2.00 2.10 2.20 MS-DOS

Summary: Multiple REDEFINES of the same data area with different object names generate the following compilation error: Improper Redefines To work around this problem, use the original field name as the object field name in all REDEFINES as in the following example: 01 CARD-RECORD PIC X(80). 01 EMP-DESCR REDEFINES CARD-RECORD. 05 EMP-NO PIC 9999. 05 EMP-SEX PIC 9. 05 EMP-ADDRESS PIC X(20). 01 CHECK-DIGIT-INPUT REDEFINES CARD-RECORD PIC 9(10). (not EMP-DESCR)

Copyright Microsoft Corporation 1992.