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

This was last published in March 2003

Dig Deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close