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 |
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.
wht is structured cobol pgm and non structred cobol pgm ?
What divisions, sections and paragraphs are mandatory for a COBOL program?
What is the purpose of Identification Division?
what is qualification on occurs clause?
What is the difference between NEXT SENTENCE and CONTINUE?
Can we use goto statement in inline_perform ?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
The maximum number of dimensions that an array can have in COBOL-85 is ?
Why there is no questions in this column?
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
What is the compute verb? How is it used?