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 > Calling a DB2 z/OS UDF from a DB2 LUW db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-11, 13:55
Alex JP Alex JP is offline
Registered User
 
Join Date: Oct 2010
Posts: 6
Calling a DB2 z/OS UDF from a DB2 LUW db

Greetings,

Is it possible to call a DB2 z/OS TABLE UDF from a DB2 LUW database?
Something like how how nicknames work, but for functions?

The manual states that
"A create function mapping to remote functions that returns a table or a row is not supported in a federated database."
Does anybody know of a work around for this? I can't create a view of the z/OS udf as it requires three input parameters

Thanks
Alex
Reply With Quote
  #2 (permalink)  
Old 08-02-11, 18:09
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You could create a view that uses the table function in the FROM clause and then create a nickname for the view.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 08-03-11, 08:33
Alex JP Alex JP is offline
Registered User
 
Join Date: Oct 2010
Posts: 6
Knut,
Thanks for the suggestion, but the table udf works off multiple input parameters, which would require that I have multiple views, one each for every parameter combination.
I do have a few views that are defined off table functions that are currently implemented, but all of them do not have any input parameters or have input parameters that are relatively fixed. I was hoping that v9.7 had something new

Oh well, back to the drawing board

thanks again,
Alex

Quote:
Originally Posted by stolze View Post
You could create a view that uses the table function in the FROM clause and then create a nickname for the view.
Reply With Quote
Reply

Tags
remote udf call

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