× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It's almost impossible NOT to have CA (iSeries) Express on your PC these days, what with Ops Nav in the mix. So you probably have OLE/DB and ODBC already installed. You can also use any ODBC or OLE/DB provider, such as Hit Software. The trouble with CAE ODBC is, you have to install the whole blame thing, even on machines where all you want is ODBC. At least, it used to be. If you use something else, such as Hit, that's all you install. And direct calls are part of ODBC or OLE/DB.

Otherwise, CAE does have a lot of ActiveX stuff that's usable from any development tool that can use them, such as MS VB, VC++, Delphi, etc. You need to install the Toolkit option of CAE to get the libraries and headers, etc. The stuff mentioned below is part of this.

If you dare open up the iSeries, you can start the rexec server on the iSeries and then use rexec from the PC - STRTCPSVR *REXEC starts the server, then use

rexec hostname -l username command-string

to run the command. You'll be prompted for your password. I don't remember if there's a way to get the password filled in - I think Unix version have a file for this. If there is interactive output, it'll be displayed in your command prompt (you have to be in a command prompt to put in the password). C++ might end up starting the command prompt, don't know.

Finally, the "quote rcmd" subcommand of ftp can be used. You can build a script for this that can contain user id and password (bad security) or it can be built by the C++ program on the fly. C++ could run FTP using this script. Drawback is lack of control and feedback. There is an FTP type lib you can reference, that you might be able to run individual subcommands with, getting response codes or errors, but it's not really friendly. Delphi has a better one. There are other socket things that could be used effectively to the rexecd port, too.

HTH
Vern

At 09:19 AM 5/20/2004, you wrote:
Hi Seth,

You need to use client access express.  The documentation is part of the
client access install on your pc. Some of the API calls are:
  cwbRc_CallPgm
  cwbRc_AddParm
  cwbRc_CreatePgm
  cwbCo_CreateSystem
  cwbRc_StartSysEx

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/rzaik/rzaikrcdpcapili
st.htm

get ready for a lot of reading ...

-Steve

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of
Seth.D.Shields@xxxxxxxx
Sent: Thursday, May 20, 2004 8:51 AM
To: midrange-l@xxxxxxxxxxxx
Subject: C++ Program on PC execute an ILE program on the iSeries






Hi everyone,


Is there a way for a C++ program on a Windows 2000 box to call an ILE RPG
program on the iSeries?

Thanks,
Seth Shields

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


_______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.