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 the difference between goback, stop run and exit program in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the LINKAGE SECTION used in COBOL?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Name the sections present in data division.
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What guidelines should be followed to write a structured cobol prgm?
How you can characterize tables in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How arrays can be defined in COBOL?
) How do u handle errors in BMS macro?
What is the difference between comp and comp-3 usage?
what is amode(24), amode(31), rmode(24) and rmode(any)?