× 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.



We have an RPG program wrapped by a UDF. This function works from
STRSQL, but not in Python via ODBC. The error I'm getting is

SQL0204 - MY_FUNCTION_NAME in *LIBL type *N not found.


I checked the library of the function using the SYSFUNCS view and
added that library to my ODBC connection's library list (using the
ADDLIBLE command via itoolkit on the same connection, if that matters)
and I still get the same error message.

We steer all of our 'external' data access via job descriptions, which
in turn are set by user profile. None of the external code or
configurations changes just because we want to switch between DEV and
PROD. So, connect with DEVUSER to get the DEV *LIBL, and connect the
exact same code/config with PRODUSER to get the PROD *LIBL.

That said, very often, a 'NOT FOUND' in SQL means 'SIGNATURE DOES NOT
MATCH'. I'd carefully check the data types being used in the Python
code. In particular, CHAR vs VARCHAR. Another possibility is authority
- is the same user profile being used in STRSQL as ODBC?

I can't remember the last time I used STRSQL. Ten years, maybe? So, no
advice on that except to say that ACS SQL Script tool also uses ODBC,
so it seems a better way to test database work to me.

--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.