× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Maybe the answer is in Birgitta's suggestion to:
Also execute the SET PATH *LIBL statement to make sure the for SQL
naming the SQL PATH (i.e. Library list) is searched correctly.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Ryan
Sent: Friday, June 07, 2013 6:33 AM
To: Midrange Systems Technical Discussion
Subject: Re: SQL Procedure - External Program Not Found

I did hard code the library in the external name.

The programmer recreated the service program. Now the procedure is found in Navigator and PHP. I'm not sure what changed. Being able to see the procedure export when I displayed the service program, and then getting a not found condition seems odd to me. It must have been in the service program creation (I assume), but I don't know what would cause that


On Fri, Jun 7, 2013 at 8:29 AM, Birgitta Hauser <Hauser@xxxxxxxxxxxxxxx>wrote:

When creating your procedure did you hard code the library of the
Service Program in the External Name?
If not what naming conventions (SQL or System) did you use when
registering your stored procedure?

When using System Naming the service program/procedure is searched at
run time within the library list. You may need to set the library list
correctly.
Also execute the SET PATH *LIBL statement to make sure the for SQL
naming the SQL PATH (i.e. Library list) is searched correctly.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars."
(Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training
them and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Michael Ryan
Gesendet: Friday, 07.6 2013 14:16
An: Midrange Systems Technical Discussion
Betreff: SQL Procedure - External Program Not Found

I'm getting the following error. I first noticed it when a developer
changed service program PSESRVPGM and I couldn't access the procedure
via PHP. So I tried using Navigator and got this error. Recreated the
stored procedure - same error. I can see the service program in the
library. I can see the procedure being exported.

Any ideas? Thanks!


SQL State: 42724
Vendor Code: -444
Message: [SQL0444] External program PSESRVPGM in NEWSYS not found. Cause .
. . . . : An attempt was made to CALL procedure or invoke function
PSE_RTV_SUSPEND_ORDERSPR in NEWSYS. External program or service program
PSESRVPGM in schema NEWSYS was not found. Recovery . . . : The external
program or service program associated with the procedure or function
cannot be found. Ensure that an object exists with the name specified
on the DECLARE PROCEDURE, CREATE PROCEDURE, CREATE FUNCTION, ALTER
PROCEDURE, or ALTER FUNCTION statement. If no name was specified,
ensure that an object with a name which matches the procedure or function name specified exists.
If a program name was specified, a program object must exist. If an
entry point name was specified, then a service program object must
exist. Try the request again.

Processing ended because the highlighted statement did not complete
successfully
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.