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 use of comp2 ? where can we use it with example ?

Answers were Sorted based on User's Feedback



what is the use of comp2 ? where can we use it with example ?..

Answer / smartboy

COMP-2 has double precision. Generally used in scientific
data calculations.

USAGE COMP-2 EXAMPLE.
A very simple practical example can be
If DB2 decleration of column is DOUBLE then we have to use
corresponding COBOL host variable as COMP-2
For float data type use COMP-1

Is This Answer Correct ?    13 Yes 0 No

what is the use of comp2 ? where can we use it with example ?..

Answer / kumar

Internal representation of COMP 2 data type is Hexadecimal
requires double word for the data item to store. Used for
accurate calculations ( more precessions )

Is This Answer Correct ?    3 Yes 0 No

what is the use of comp2 ? where can we use it with example ?..

Answer / srinivas yadav

It is used to reduce the Momery space.
comp2:
1)The data stored in the form of Hexa-decimal format.
2)The no. of bytes stored as s9(1)to s9(18)is 8 bytes of
memory.
3)It takes more precession values.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

0 Answers  


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

0 Answers  


How do u know what version of cobol u are using?

3 Answers  


How do you compile cobol program..?

1 Answers  


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

1 Answers   Syntel,


01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?

6 Answers   Patni,


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?

3 Answers  


What is the figurative constant in cobol?

1 Answers  


Categories