Home > Ask the AS/400 Experts > iSeries PC/Windows Connectivity Questions & Answers > Calling a CL program from a VB program
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Calling a CL program from a VB program

Shahar Mor EXPERT RESPONSE FROM: Shahar Mor

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 March 2003
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?

>
EXPERT RESPONSE

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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
FTP
How to FTP without knowing the file name
IFS folder error
Creating the correct member type in a source physical file via FTP
File transfer DTF "hooks"
SAVF FTP on AS400 LAN: 504 Binary image transfer required for save files
Listing contents of multiple FTP directories on AS/400
Transferring data via FTP on AS/400 systems
More tips for securing FTP on your System i
System i security: Watch for hackers using FTP
System i FTP: Fast guide to Redbooks and articles

Physical connections to iSeries
"Time" saving programming tips for iSeries
PC/Windows connectivity: Top 10 expert Q&As
Run command on a PC
Working with ODBC and dates
Why is my job taking twice as long?
Problems with new server and PC
Take control of your iSeries network security -- Part 2
The iSeries and MS Office make good partners
Microsoft computing: Integrating the iSeries and Microsoft Office
i5/OS and Microsoft Office Integration Handbook, Third Edition -- Chapter 3
Physical connections to iSeries Research

iSeries Access (Client Access)
Copying the spool file stream to IFS
How to: Transfer unlimited data to Excel from AS/400
The iSeries and MS Office make good partners
Microsoft computing: Integrating the iSeries and Microsoft Office
i5/OS and Microsoft Office Integration Handbook, Third Edition -- Chapter 3
How to diagnose iSeries Access connection problems -- Part 2
Screen Print gives us a blank page
Proper IFS security setting
Lock within NetServer
Accessing iSeries data

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts