Define REDEFINE clause and Is it possible to have the
redefine clause anywhere in the working storage section for
a data name?

Answers were Sorted based on User's Feedback



Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working stora..

Answer / selvam a

REDEFINE clause allows the said area to be referred by more
than one data name with different sizes and pictures.
Usage:
level-number data-name1 REDEFINES data-name2
Answer to the question 2:
The REDEFINES clause must immediately follow data-name1
Other Rules:
1. The level number of data-name1 and 2 must be identical.
2. date-name1 and 2 must be of same size.
3. Multiple redefinitions are allowed.

Is This Answer Correct ?    10 Yes 3 No

Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working stora..

Answer / adarsha

thats right !

Is This Answer Correct ?    1 Yes 0 No

Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working stora..

Answer / anju

I think redefine cannot be done for a level01 item.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More COBOL Interview Questions

what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


How can you get the ksds file records into your cobol program?

0 Answers  


what is scope terminator

2 Answers   IBM,


how do you reference the variable unblock file formats from cobol programs

0 Answers  


i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me

4 Answers  






I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..

3 Answers   iGate,


How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?

6 Answers  


01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


What are the pertinent COBOL

0 Answers   IBM,


What is difference between static and dynamic call in cobol?

0 Answers  


Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


Categories