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 comp and comp-3 usage?
Explain other COBOL usage?s.

Answer Posted / cauvitha

comp - used for binary representation. To make the calculations faster. it can have S and 9.
Memory usage is
s9(1)-s9(4) - 2bytes
s9(5)-s9(9) - 4bytes
s9(10)-s9(18) - 8bytes

===

comp-3 - used to store packed decimal values. Stores comparitively more values than comp. It can have S, 9, V.

Memory usage is
n/2 + 1 (Even)
n+1/2 (odd)

Is This Answer Correct ?    24 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about different table spaces.

1110


how do you reference the esds vsam file formats from cobol programs

1218


What are the different rules for performing sort operation?

1227


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6594


What is link edit in cobol?

1200


What are the cobol coding sheets?

1279


State the various causes of s0c1, s0c5 and s0c7.

1091


HOw can I get the negative sign while deduct high value from low value

2259


What is perform what is varying?

1179


What is the utilization of copybook in cobol?

1197


Write the code to count the sum of n natural numbers.

1210


What is the LINKAGE SECTION used in COBOL?

1530


Name the divisions, which are available in a cobol program?

1238


How arrays can be defined in COBOL?

1223


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

1129