Ask the Expert

Calling an RPG program from VB application

I need to call an RPG program (with IN parameters) from VB application using Client Access Express and ODBC. What is the best way to do this and where can I find examples of such VB code?


This is doable in many ways, I do assume then if you have Client Access Express you may use ODBC OR OLE DB provider. These are the alternatives:

 
1. Activate stored procedure using call mechanism  
2. Activate the program via DPC
3. Issue the call command via the command object (only
if parm's are only input) 

Examples can be found here (also to other OLE DB issues).

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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

The Best Web Links: tips, tutorials and more.


This was first published in October 2001