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 find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


Differentiate COBOL and COBOL-II?

0 Answers  


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,






what is the difference between PA & PF keys?

1 Answers   IBM,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  


what is record label is empty or standard in file description of data division?

2 Answers   HCL,


How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.

7 Answers   Financial Services,


How do get the result of your program directly on your pc?

0 Answers   UST,


Categories