Arrays in Stored Procedure

This is a discussion on Arrays in Stored Procedure within the db2-udb forums in Other Databases category; Hi, I have stored procedures in DB2 UDB for AIX Unix environment. I need to accept arrays as input parameter. What is the syntax to declare them?I am unable to located the syntax anywhere in IBM site. Is it possible to have arrays at all? Nag_G...

Go Back   Database Forum > Other Databases > db2-udb

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-20-2007, 01:06 PM
Default Arrays in Stored Procedure

Hi,
I have stored procedures in DB2 UDB for AIX Unix environment. I need to accept arrays as input parameter. What is the syntax to declare them?I am unable to located the syntax anywhere in IBM site. Is it possible to have arrays at all?

Nag_G
Reply With Quote
  #2  
Old 09-20-2007, 10:49 PM
Default Re: Arrays in Stored Procedure

See if you can use table functions in your processing.
Reply With Quote
  #3  
Old 09-20-2007, 11:58 PM
Default Re: Arrays in Stored Procedure

nag_gopalakrishnan-at-glic.com wrote:
> Hi, I have stored procedures in DB2 UDB for AIX Unix environment. I
> need to accept arrays as input parameter. What is the syntax to
> declare them?I am unable to located the syntax anywhere in IBM site.
> Is it possible to have arrays at all?


Not in any released version of DB2.

The next release of DB2 ("Viper 2") is slated to provide this support,
but we'll see when it's officially announced.
Reply With Quote
  #4  
Old 09-24-2007, 06:12 PM
Default Re: Arrays in Stored Procedure

What do you mean by table processing functions?
Reply With Quote
  #5  
Old 09-25-2007, 06:00 AM
Default Re: Arrays in Stored Procedure

nag_gopalakrishnan-at-glic.com wrote:

> What do you mean by table processing functions?


In true relational fashion (not very nice sometimes for the developer), you
would store the data in a table (or temp table), then call the procedure,
and the procedure queries the table to get the data.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:31 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.