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

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


What is a scope terminator give example?

659


What do you understand by psb and acb?

668


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

702


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054






If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2661


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


Define cobol?

866


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


Mention the guidelines to write a structured cobol program?

620


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

678


) How do u handle errors in BMS macro

1512


What is the utilization of copybook in cobol?

657