|
Frequent pitfall is the assumption of same library list in different environments, so that's the first place to check. Compare location of your external program library as well as UDFT service program library (auto-created) versus the library list of your interactive SQL job and the servlet job library list. If that's all fine, post back and we'll take it further. Elvis -----Original Message----- Subject: UDTF with SQL and JDBC call Hi all, I have a working sqlrpgle UDTF that returns a table and works very well from another SQLRPGLE within a declare cursor-fetch logic. I have couple of problems though. I cannot get this to work interactively with "select * from table(a())x" command. I think, for the same reason, I cannot get this to work from servlet as well. I get java.sql.SQLexception error at CallableStatement stmt = con.prepareCall(SQLcall); I am using "com.ibm.as400.access.AS400JDBCDriver" with "jdbc:as400://" connection. My udtf declaration looks something like: Create Function fn ( Iparm char(1),..) Returns Table ( rfield char(10),..) Language RPGLE No SQL scratchpad final call not deterministic Parameter Style DB2SQL External Name fn Can you please tell me where I am going wrong? Thanks for all the help, Sudha
As an Amazon Associate we earn from qualifying purchases.
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.