what is the use of comp2 ? where can we use it with example ?
Answer Posted / 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 |
Post New Answer View All Answers
What is static and dynamic call in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
how to move the records from file to array table. give with code example
Explain the configuration section of a cobol program with examples of syntax.
What is the difference between Call and a Link?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Whats the difference between search & search ALL?
What is amode(31)
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Explain how you can characterize tables in cobol?
Difference between cobol and cobol-ii?
HOw can I get the negative sign while deduct high value from low value
What are different data types in cobol?