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 do you reference the variable unblock file formats from cobol programs

1278


Have you used comp and comp-3 in your project? And how?

2424


What is the difference between goback, stop run and exit program in cobol?

1519


Describe the cobol database components?

1125


What is the local-storage section?

1100


how to refer the data field?

2204


State the various causes of s0c1, s0c5 and s0c7.

1025


Which Search verb is equivalent to PERFORM…VARYING?

999


What kind of error is trapped by on size error option?

1174


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

812


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5664


What is rmode(24)

1099


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

1017


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1219


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2401