Cobol Question:
Download Questions PDF

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

Cobol Interview Question
Cobol Interview Question

Answer:

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

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
How you can read the file from bottom?What are the different forms of EVALUATE statement?