external procedures
5 pts.
0
Q:
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.
ASKED: Feb 1 2008  7:44 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
250 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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 Answered: Oct 30 2009  4:15 PM GMT by RVP400   250 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



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

TomLiotta   7590 pts.  |   Oct 30 2009  1:06AM GMT

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

 
0