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 |
Write a program to concert an Indexed file into Sequential file?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
perform I from 0 by 1 until I=5?How maney times it will executes
what are the utilities for load and unload the DB2 tables
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)?
How do u know what version of cobol u are using?
How do you compile cobol program..?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?
can we display comp-3 variables. if we want to display what we have to do . give me one example
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?
What is the figurative constant in cobol?