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 will happen if a variable is declared as below..
Explain with an example?

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Answer Posted / lalith

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

REDEFINES: It is used to save the memory space....

ur declearing like that ws-varn will take the same memory
of ws-varx...

when u used display statement
DISPLAY WS-VARN
it shows the spaces... WS-VARN will take same memory of WS-
VARX irrespective of data type....

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules of SORT operation?

1099


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.

4130


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2093


What guidelines should be followed to write a structured cobol prgm?

1114


What is the difference between binary search and sequential search?

1056


How to print 10 to 1 if the input have only 10 digit number?

1234


Whats the difference between search & search ALL?

6432


What is inspect in cobol ?

1265


Write a program to explain size error.

1159


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1127


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1493


What is the local-storage section?

1120


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1266


Name the sections present in data division.

1192


what is amode(24), amode(31), rmode(24) and rmode(any)?

1114