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

hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.

2 Answers  


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


What is the purpose of Identification Division?

1 Answers  


what is qualification on occurs clause?

2 Answers  






What is the difference between NEXT SENTENCE and CONTINUE?

2 Answers   Mphasis,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


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

0 Answers  


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


Why there is no questions in this column?

6 Answers  


COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

1 Answers   TCS,


What is the compute verb? How is it used?

0 Answers  


Categories