what is the advantage of using redefines instead of
delaring the variables ?
Answer Posted / 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 |
Post New Answer View All Answers
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Write the code implementing the perform … varying.
Which division and paragraphs are mandatory for a COBOL program?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How many bytes S(8) comp field occupy and its maximum value?
What are the different rules to perform a Search?
Why would you use find and get rather than to obtain?
how to convert the recors form vsam file to db2 table tru file aid
What the difference is between continue and next sentence?
What is comp-1 and comp-2?
Name some of the examples of COBOl 11?
How do u write test cases?
What is the difference between next sentence and continue in cobol programing language?
What is amode(24)?
Have you used comp and comp-3 in your project? And how?