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 |
IF I mention stop run in CICS what happens?
can we write paragraph in area B .....
what is sysncpoint?
How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.
I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
For rewrite, why is it mandatory that file needs to be opened?
What is file status 92?
how to code in cobol while using variable block file?
can we display comp-3 variables. if we want to display what we have to do . give me one example
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
When is a scope terminator mandatory?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?