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 / elite group

Comp -- binary form
Comp-3 Packed Decimal

Usages are:
Display: Default it occupies the number of bytes is equal
to the size of the data-item
Comp -- Binary Number of bytes is equal to the size of the
data-item
Comp-1 -- 4-Bytes no pic clause is required
Comp-2 -- 8-byted no pic caluse is required, Double
precision
Comp-3 -- Packed Decimal Number of bytes is
(n+1)/2 -- if n is odd
(n/2)+1 -- if n is even
Comp-4 --- Same as Comp

Is This Answer Correct ?    57 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you get the ksds file records into your cobol program?

1040


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1118


Write down the divisions of cobol program?

1165


How to remove 2 duplicate records and copy only one using job control language?

1180


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

2172


Name some of the examples of COBOl 11?

3090


what is search and searchall?what is the diffrence between them?give an best example?

6688


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

1184


What is the difference between binary search and sequential search?

1052


What are declaratives and what are their uses in cobol?

1144


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

1373


How to know whether the module is dynamical or statistical?

1090


Explain how to differentiate call by context by comparing it to other calls?

1135


What is static and dynamic call in cobol?

1016


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

1106