Try to put a comma between the 2 parameters and pass the parameter values
with a decimal separator and at least one decimal position, i.e. 730.0 .
It could be that ACS interprets a numeric value without decimal positions as
integer values, and because an UDTF can be overloaded and integer and dec
are different datatypes, the UDTF is not found
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!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim
Franz
Sent: Donnerstag, 25. Januar 2018 15:43
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: creating table function - UDTF and then calling
one of our java developers (on a non-I system) wants to create a table
function to call - it creates but does not execute and the messaging is
confusing (to me)
Create statement (partial - it's big
CREATE OR REPLACE FUNCTION KRMDATA.LOCATIONS_BY_FUND_MEMBER(EMFND#
DECIMAL(3,0), EMMEMB DECIMAL(5,0))
RETURNS TABLE (EMPSPL CHAR(30), EMFDYR DECIMAL(4,0), EMFND# DECIMAL(3,0),
EMMEMB DECIMAL(5,0), EMMSUB DECIMAL(2,0), EMNAME CHAR(30), EMFDID
DECIMAL(9,0), LOCATION_# CHAR(30)
LANGUAGE SQL
READS SQL DATA
NO EXTERNAL ACTION
DETERMINISTIC
RETURN
SELECT EM.EMPSPL ,EM.EMFDYR ,EM.EMFND# .... much more
calling from V7R1 i Navigator
calling - select * from TABLE(KRMDATA.LOCATIONS_BY_FUND_MEMBER(730,87)) ASC
(the ASC - syntax checker was requiring "something " there
when calling , get 4 message in log
SQL0204 LOCATIONS_BY_FUND_MEMBER in QSYS type *lib not found Diagnostic
CPF503E user defined function error on member
QSQPTABL Notify
CPF503E user defined function error on member
QSQPTABL Senders Copy
SQL0204 LOCATIONS_BY_FUND_MEMBER in QSYS type *lib not found Diagnostic
even though it says it's not found, it found it and returned an empty table
(with column headings)
Is there an issue with SQL only table function?
Is this a 10 character limit on function name?
Something else?
Jim Franz
--
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:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.