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.)



Explore posts in the same categories: Cobol Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • 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....
  • What is Redefines clause ?
  • Redefines clause is used to allow the same storage allocation to be referenced by different data names ....
  • Is it possible that the REDEFINES clause has different picture clauses compared to the one it redefined?
  • Yes, we can have different PIC clauses. Eg: 05 REGULAR-EMPLOYEE. 10 LOCATION PICTURE A(8). 10 GRADE PICTURE X(4). 10 SEMI-MONTHLY-PAY PICTURE 9999V99. 10 WEEKLY-PAY REDEFINES SEMI-MONTHLY-PAY PICTURE...
  • What is the difference between shadow and override?
  • Overriding is used to redefines only the methods, but shadowing redefines the entire element....
  • Can I redefine an X(100) field with a field of X(200) ?
  • Yes. Redefines just causes both fields to start at the same location. For example 01 WS-TOP PIC X(1) 01 WS-TOP-RED REDEFINES WS-TOP...
  • Can I redefine an X(100) field with a field of X(200) ?
  • Yes. Redefines just causes both fields to start at the same location. For example: 01 WS-TOP PIC X(1) 01 WS-TOP-RED...
  • What is read-only cursor ?
  • A read-only cursor is one in which the result table was created by a query containing one of the following...
  • When you use WHERE clause and when you use HAVING clause ?
  • HAVING clause is used when you want to specify a condition for a group function and it is written after...
  • What is the difference between a HAVING CLAUSE and a WHERE CLAUSE ?
  • Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each...
  • Are there advantages or disadvantages to using BEA WebLogic over IBM WebSphere or vice versa ?
  • No. Both products are certified with PIA as of version 8.4 and work equally well. By offering both BEA WebLogic...

    Comments are closed.