COBOL Interview Questions and Answers


Give some advantages of REDEFINES clause?

1. You can REDEFINE a Variable from one PICTURE class to another PICTURE class by
using the same memory location.

2. By REDEFINES we can INITIALISE the variable in WORKING-STORAGE Section itself.

3. We can REDEFINE a Single Variable into so many sub variables. (This facility
is very useful in solving Y2000 Problem.)

Posted by:Richards