Problem solve Get help with specific problems with your technologies, process and projects.

Call a COBOL program from Java

I am trying to call a COBOL program from Java. I'm able to call the program and pass parameters, but I'm unable...

to receive any back even though the program return a result.

The easiest way to connect a Java bean to an RPG program is using DB2 stored procedures. The article I wrote in this link gives all the details.

You can call the RPG program passing parms and receiving results from Java directly by declaring the procedure before calling OR register it first in the database and then call it.


Ask your Web development questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: tips, tutorials and more.

Check out this live Q&A with Dave Slater and Jim Mason, How to best get started with WebSphere Development Tools.

(Free registration to this link is required.)

Dig Deeper on Web Development