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

In COBOL, what is the different between index and subscript?

1185


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

1169


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1041


What is the difference between next sentence and continue in cobol programing language?

1161


Can you please let me know the centre name of INS certification in Kolkata.

2181


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1093


Which mode is used to operate the sequential file?

1150


Explain about different table spaces.

1047


How to print 10 to 1 if the input have only 10 digit number?

1216


Explain what you understand by passing by value.

1099


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

1466


explain sorting techniques in cobol program?

1145


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

1054


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

1169


What is perform what is varying?

1111