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
How many bytes S(8) comp field occupy and its maximum value?
Difference between cobol and cobol-ii?
) how do u code after getting data?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is an in line perform? When would you use it? Anything else you wish to say about it.
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between comp and comp-3?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is link edit in cobol?
What rules are followed by the search verb.
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
How many sections are there in data division in COBOL?