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 to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


Can a Search can be done on a table with or without Index?

0 Answers  


What is the default value of DISP parameter?

3 Answers   IBM,






What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


How do define dynamic array in cobol.

0 Answers  


What is ASKTIME, SUSPEND

1 Answers   IBM,


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

0 Answers  


When is a scope terminator mandatory?

3 Answers  


) How do u handle errors in BMS macro?

0 Answers   IBM,


Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


Categories