I'm trying to call a CL program from my Visual Basic program, and I'm not sure about the syntax passing values...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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
Related Q&A from Shahar Mor
Use work station customize object or printer type in iSeries Access to print the output of an RPG file from the AS/400 to an HP printer.continue reading
Use the the iSeries QSYSOPR message to look for any errors in passwords when running a program on the iSeries that transfers data to a spreadsheet on...continue reading
Connecting the iSeries in AS/400, issue STRHOSTSVR *ALL. Make sure the as-signon port is in listen state and check the firewall settings.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.