what is the advantage of using redefines instead of
delaring the variables ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / joshin
redifine will used to change the pic clause of already
declared variable.
Is This Answer Correct ? | 2 Yes | 6 No |
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.
Differentiate COBOL and COBOL-II?
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
if you give cylinder(1,1)how many cylinders it will be allocate?
what is the difference between PA & PF keys?
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
i WANT ALL ERROR codes IN CICS and DB2
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)
what is record label is empty or standard in file description of data division?
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.
How do get the result of your program directly on your pc?