I need to make a SQL call to a User Defined Table Function...aka UDTF.
I have never done one and can't seem to find anything in help contents that shows how.
I tried it this way...
get styleSearchDetail with #sql{SELECT SYSTYP, SYSTYL, SYDESC2, SYACTV, SYCOLOR, SYMFGL, SYMFGS
FROM TABLE(FINDPMSTYD(:SYSTYP, :STYLECODE, :SYMFGN, :SYMFGS, :SYMFGL,
:FINDDESC, :FLDNBR1, :FLDNBR2, :FLDNBR3, :FLDNBR4,
:VALUE1, :VALUE2, :VALUE3, :VALUE4, 'Y', '1'
)) AS X
ORDER BY SYSTYP, SYSTYL };
I get an Error:
IWN.VAL.4513.e 0/0 Validation for EGL GET statement failed because the database manager returned this error: SQLException: [SQL0418] Use of parameter marker not valid. ErrorCode: -418.
Gadberry