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 > Returning SP OUT parameter from UDF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-03, 03:42
alenf alenf is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Returning SP OUT parameter from UDF

I am using DB2 7.1

I need to execute some calculation which is too complex for implement in UDF, so I plan to do that calculation in stored procedure and return result thru OUT parameter.

Problem is that I don't know how to read OUT parameter in UDF and return it as UDF result.

Thanks to anyone who has idea how to do it.
Reply With Quote
  #2 (permalink)  
Old 12-12-03, 09:06
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If your UDF is SQL, you cannot even call the SP, so getting the OUT parameter is moot. Your UDF will have to be C or Java to be able to call a SP. Then you use the normal way for that language to get the OUT parameter.

HTH

Andy
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