external procedures

5 pts.
Tags:
.NET
AS/400
iSeries Navigator
VB.NET
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: February 1, 2008  7:44 AM
UPDATED: October 30, 2009  4:15 PM

Answer Wiki

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

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,

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    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
    125,585 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