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

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7893


Which is not true about evaluate statement

2457


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

1537


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

1590


What are the rules of the move verb?

1269


What is perform what is varying?

1173


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

1148


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

2108


In which area will you utilize 88 level items in cobol?

1162


What is a report item?

1141


Write a cobol program making use of the redefine clause.

1181


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1355


What are all the divisions of a COBOL program?

1217


Explain the configuration section of a cobol program with examples of syntax.

1198


Can we redefine the field of x(200) to less than 200?

1375