If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Some UDF items

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-06, 10:20
java7man java7man is offline
Registered User
 
Join Date: Oct 2006
Posts: 2
Some UDF items

All -
in writing some User Defined Functions, I am getting this error




SQL0101N The statement is too long or too complex.



What I am doing is not that complex. Basically, performing 5 0r 6
queries insude the UDF and setting them to a variable.
Then parsing those variables using while loops and if statement to find a
valid pay day within a pay month.

It compiles file and loads into the database as well.

When I invoke , I get this error message:

db2 " select nextdraftday(34,' 214158052') from sysibm.sysdummy1"
SQL0101N The statement is too long or too complex. SQLSTATE=54001


The stmtheap parm is set to 8192 more than enough !


Any assistance would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 10-17-06, 10:42
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by java7man

The stmtheap parm is set to 8192 more than enough !
Obviously not.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On