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

Calling a CL program from a VB program

I'm trying to call a CL program from my Visual Basic program, and I'm not sure about the syntax passing values to the CL from VB. Could you please help me with some syntax to pass values to CL from VB? I have Client Access Express installed. Also, is there any way to call a CL program from Active Server Pages?

The CL program is not different from any other program (i.e. COBOL OR RPG). That means you can call it from VB using the program call object or the QCMDEXC stored procedure. Some good examples can be found here.

Since OLE database is thread safe you can run it on the server. That means that you can use the OLE database provider to call the CL program from your asp pages. Some old, yet good, examples can be found here. 

================================== 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.

Dig Deeper on FTP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.