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

Answers were Sorted based on User's Feedback



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

Answer / kavithachandrashekar

Redefines is basically used to occupy same same storage space for different data items.In this case if we declare new variable then there is wastage of memory

Is This Answer Correct ?    4 Yes 0 No

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

Answer / m r reddy

--Redefines is used to re-use the storage space irrespective of the data type.
--Using redefines more than one field can re-use the same memory.

Ex: 01 a pic x(5) value 'xyz12'.
01 b redefines a pic x(3).

Here a=xyz12 value is stored and
b=xyz value is stored. B is reuse the A's Memory

Is This Answer Correct ?    1 Yes 0 No

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

Answer / deepak kumar

redefines saves the memory by referring the same memory location by other data items.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / sriram

redefines is a clause which is used for predefined storage space for other variables without wastage of space.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / joshin

redifine will used to change the pic clause of already
declared variable.

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More COBOL Interview Questions

How do you define a sort file in JCL that runs the COBOL program?

6 Answers   Syntel,


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

5 Answers   IBM,


1) can we display the index?

3 Answers   ADP, IBM,


What are the rules of the move verb?

0 Answers  






Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


What is Alternate Index ? How is it different from regular index ?

2 Answers  


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


Discuss about changing dataset name in proc.

0 Answers  


What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?

1 Answers   Fidelity,


Syntax for JCLLIB & JOBLIB???

1 Answers  


Categories