Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Types of COMP's in Realia Cobol

Status
Not open for further replies.

query5

Programmer
Apr 25, 2003
4
IN
Hi,
If any one there to help me out for following Queries:

How many types of COMP's are Available there in Realia Cobol.

To embeded the DB2 into Realia Cobol, i need the code for it

Thanks in advance,
Jagan
 
Hi,

that question was asked a long time ago. I hope this answer helps you.

It would be better to ask it in the 'COBOL general discussion' forum.

In CA-REALIA COBOL you have the following comp source definitions:

COMP.
COMP-3.
COMP-4.
COMP-5.

I have never seen the implementation of floating point with COMP-1 and COMP-2. But my knowledge of CA-REALIA COBOL is until version 5. (I asked CA for an update-offer, but never got one)

In DB2 you will use COMP-3: the packed-decimal format. In mainframe environment COMP, COMP-4 and COMP-5 are the same. In PC environment, COMP and COMP-4 are the same - binary - but COMP-5 is the native format. On the PC as implemented in CA-REALIA COBOL it is the INTEL format. It is a little bit faster than the binary format. I use it all the time.

Regards,

Crox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top