Executing an AS/400 program within a MS Windows application
15 pts.
0
Q:
Executing an AS/400 program within a MS Windows application
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?
ASKED: Sep 3 2008  1:05 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24530 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Create a stored procedure on the 400
this can run RPGLE or other language programs
and return data / result sets
Last Answered: Sep 3 2008  6:55 PM GMT by Philpl1jb   24530 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Koohiisan   1005 pts.  |   Sep 4 2008  2:26PM GMT

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.

 

Gja   15 pts.  |   Sep 5 2008  3:36PM GMT

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.

 
0