what is the use of comp2 ? where can we use it with example ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the difference between comp and comp-3 usage?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Write a program to explain size error.
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
Name the divisions in a COBOL program ?
consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error
i want to enter the name 'pandu' into ur table how?
How can you submit a job from COBOL programs?
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
What are the differences between COBOL and COBOL II?
i want a program using by if, evaluate , string, unstring, perform, occurs?
TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr