Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

2138


Difference between cobol and cobol-ii?

1268


) how do u code after getting data?

2148


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1318


What is the difference between PIC 9.99 and 9v99 in COBOL?

1327


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?

2580


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1226


What is an in line perform? When would you use it? Anything else you wish to say about it.

1069


A table has two indexes defined. Which one will be used by the SEARCH?

1281


What is the difference between comp and comp-3?

1183


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1114


What is link edit in cobol?

1192


What rules are followed by the search verb.

1109


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.

2427


How many sections are there in data division in COBOL?

1128