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



I doubt that USRPRF plays into this problem in any way.  I still think it's
the search path.

Perhaps in SQLRPGLE you perform EXEC SQL SET PATH kind of statement?

For sake of simplicity, let's just focus on the interactive SQL for now.  
Obviously, the message "fn in *LIBL type *N not found" means that system
cannot find the "fn".
Perform SELECT * FROM SYSFUNCS in the interactive sql and check if your "fn"
is entered fully qualified or not.

You can also perform "SET PATH QGPL" (change QGPL to where your UDTF is
located), and then try the original statement.  PATH is used to find UDFs
and stored procedures.

If you are using SQL naming convention then you should be able to set
default library DFTRDBCOL (default relational database collection - i.e.
library) using SET OPTION syntax (check SQL Reference book for details).
This will be used as search path for tables as well.

Or you can make sure you are using system naming and then the *LIBL list
search will work for tables, but not stored procedures and UDTFs.

Elvis

-----Original Message-----
 Subject: RE: UDTF with SQL and JDBC call

I am using the same user profile that has the same library list. I even
tried to declare my input parms as 'varying' in my program.  I still get
the errors in both interactive sql and java servlet.  

Sql gets - Select * from table(fn(parm1,parm2,parm3)) x
                fn in *LIBL type *N not found.


Java - SQLCall = "{select * from table(" +  funcname + "(?,?,?))}";
         CallableStatement stmt = con.prepareCall(SQLcall);
        
        I know I get my error here since I have println all over the
place.

        java.sql.SQLException: A character, token, or clause is not
valid or        is missing.

Thanks for your help,
Sudha




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.