Cobol Question: Download Cobol PDF

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

Tweet Share WhatsApp

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 PDF Read All 110 Cobol Questions
Previous QuestionNext Question
How you can read the file from bottom?What are the different forms of EVALUATE statement?