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


Please Help Members By Posting Answers For Below Questions

What is the difference between goback, stop run and exit program in cobol?

929


Write a program to enter and display the names of students in a class using the occurs clause.

652


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


What is the LINKAGE SECTION used in COBOL?

889


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644






Name the sections present in data division.

701


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?

2098


What guidelines should be followed to write a structured cobol prgm?

673


How you can characterize tables in cobol?

718


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


How arrays can be defined in COBOL?

663


) How do u handle errors in BMS macro?

1427


What is the difference between comp and comp-3 usage?

681


what is amode(24), amode(31), rmode(24) and rmode(any)?

701