UDF Returning DATE Questions and Answers

Recent IT Questions

1 - 2 of 2
<<PREVIOUS 1 NEXT>>

iSeries SQL UDF gets CPF426A

I created a SQL UDF using the iNav wizard.  It created the service program for me yet when I try to use the function I get CPF426A "User-defined function &5 cannot be invoked." with a reason 2 (Either the service program is not found or the program entry point &6 does not exist.)  It says the...

Answer Question   |  Nov 6 2009  3:02 PM GMT
iSeries, SQL, UDF Returning DATE
asked by RJonesPartrick

  15 pts.

UDF returning DATE always fails

We have legacy tables storing dates as integer fields... ie 2012001. I have built a UDF that parses, joins, and casts the segments to a DATE type. This works fine until I hit about 800 rows and I get a non-specific SQL error. If I return a CHAR(10) with the formatted date, I get no error. Only when...

View Answer   |  Apr 15 2009  3:51 PM GMT
UDF, UDF Returning DATE
asked by Mpalmer78

  25 pts.

1 - 2 of 2
<<PREVIOUS 1 NEXT>>