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 happens if parmparameter passes zero bytes to the program

2125


what is difference between cobol and cobol/400

22898


Difference between array and sub-script ?

1652


how do you reference the rrds file formats from cobol programs

1569


What is the difference between external and global variables in COBOL?

1451


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3225


What are the different rules to perform a Search?

1090


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

1103


What is difference between static and dynamic call in cobol?

1379


what are decleratives in cobol?

2252


Name the sections present in data division.

1234


What do you understand by psb and acb?

1115


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?

1324


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

1189


A table has two indexes defined. Which one will be used by the SEARCH?

1281