Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?
Submitted by: AdministratorYes, 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
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
Top Cobol Questions
☺ | What divisions, sections and paragraphs are mandatory for a COBOL program? |
☺ | How is sign stored in Packed Decimal fields and Zoned Decimal fields? |
☺ | What the difference is between CONTINUE and NEXT SENTENCE ? |
☺ | Give some advantages of REDEFINES clause? |
☺ | How do you code COBOL to access a parameter that has been defined in JCL? And do you code the PARM parameter on the EXEC line in JCL? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |