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

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

1289


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1302


What are all the divisions of a COBOL program?

1268


What rules are to be followed while using the corresponding options?

1125


What is report-item in COBOL?

1198


Whats the difference between search & search ALL?

6661


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2605


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

1208


What are the access modes of START statement?

1326


Discuss about changing dataset name in proc.

1292


For rewrite, why is it mandatory that file needs to be opened?

1151


i need a small 3d program using inline and outline.

2260


Can a Search can be done on a table with or without Index?

1330


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1265


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1165