5 pts.
 external procedures
I have an RPGLE program which I define to be external procedure so that I can call it from a .NET program. When I execute it from iseries it works fine ans returns the parameter requested filled properly. When I call it out AS400 it runs succesfully but with no results. The problem seems to be the library list. When I call it from iseries navigator (Run an SQL script ) has the results I mentioned. Thank you in advance for your help.

Software/Hardware used:
ASKED: February 1, 2008  7:44 AM
UPDATED: October 30, 2009  4:15 PM

Answer Wiki:
Hi, You might be right - I had a similar problem with a stored procedure that was in fact an RPGLE procedure. This might work: pass an additional parameter into your program indicating which library list to use (Test / Production / Whatever else you use). Then, in your program, set the libl accordingly using QCMDEXC or some other method BEFORE opening the files. Open the files and run the rest of your code. Regards,
Last Wiki Answer Submitted:  October 30, 2009  4:15 pm  by  RVP400   270 pts.
All Answer Wiki Contributors:  RVP400   270 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

When I call it out AS400 it runs succesfully but with no results.

When you ‘call it out’ how? What OS version/release? Can you show the CREATE PROCEDURE specs?

Tom

 108,330 pts.