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 difference between Normal vaiable and comp
variable.

Answer Posted / naveen kumar.s

The value assigned to comp variable is stored in binary
format.The memeory allocation is also different.
For example,
77 A pic 9(8).
77 B Pic 9(8) comp.

Here,'A' occupies 8 bytes.whereas,'B' occupies 4 bytes only.

No.of Digits Bytes occupied

1-5 2
5-11 4
12-18 8

Is This Answer Correct ?    9 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1309


What is the usage of comp fields in cobol?

1166


Which is not true about evaluate statement

2431


What is a report item?

1129


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.

5721


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1413


What are the different types of condition in cobol and write their forms.

1097


What are the different rules of SORT operation?

1121


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1485


) what is the difference between AID and HANDLE AID?

2136


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2089


What is a SSRANGE and NOSSRANGE?

1445


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1118


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1151


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

1319