Executing an AS/400 program within a MS Windows application

15 pts.
Tags:
AS/400 interoperability
Microsoft Windows
Remote procedure calls
RPC
What is the best method to execute an AS/400 program within a MS Windows application and have the AS/400 program return a result (parameter or result set) to that Windows application?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Create a stored procedure on the 400
this can run RPGLE or other language programs
and return data / result sets

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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
  • Koohiisan
    IIRC, I've also called CL/RPG programs directly from VB6/VBA/.net using ADO's command object. Just provide it with the program name, and add parameters to it and voila! It's been a while, but I can hunt down an example from my source code if needed.
    5,020 pointsBadges:
    report
  • Gja
    An example with parameters would be greatly appreciated. I need to pass a parmeter to the RPG program to indicate what library the files are in. The RPG program will return a parameter - the next transaction #. Let me know if the parameters should be characters or can they also be numeric.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following