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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you call Oracle (SQL*Plus) from COBOL

Status
Not open for further replies.

welchdor

Programmer
Jun 11, 2001
2
US
Hi,
I was wondering if anyone knows if it's possible to do a call to an Oracle database, like to execute a SQL command, from a COBOL program. If so, how do you do it? And what do you need to have to be able do it...some API, etc.?

We're talking about COBOL on DB2 calling Oracle on NT...we have the Oracle/DB2 gateway in place for communication between the two databases, and that much does work.

Any info on the subject is greatly appreciated.
 
You use the ordinary SQL interface. You embed EXEC SQL statements, terminated with END-EXEC. And you need the Oracle SQL Pre-processor. Talk to your vendor.

Don't know what you mean by "COBOL on DB2 calling Oracle on NT" You can run COBOL and DB2 on NT, you can run Oracle on a mainframe.

Can you be more specific?

Stephen J Spiro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top