Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?

Submitted by: Administrator
Yes, we can have different PIC clauses.

E.g.:

05 REGULAR-EMPLOYEES

10 LOCATION PICTURE A(8)

10 GRADE PICTURE X(4)

10 SEMI-MONTHLY-PAY PICTURE 9999V99

10 WEEKLY-PAY REDEFINES SEMI-MONTHLY-PAY

PICTURE 999V999

05 TEMPORARY-EMPLOYEE REDEFINES REGULAR-EMPLOYEE

10 LOCATION PICTURE A(8)

10 FILLER PICTURE X(6)

10 HOURLY-PAY PICTURE 99V99
Submitted by: Administrator

Read Online Cobol Job Interview Questions And Answers