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 > Writing Stored Procedures in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-09, 09:38
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Writing Stored Procedures in db2

Hi all,

Can anyone please guide/help me on writing a store procedure. This is the first time I am writing a store procedure in db2.

They have provided me with a CSV file that has all the values and I have to use this values for using in each iterations listed below.

The application team has provided me with a logic that iterates through each loop and the result set of the first loop should be used in the second loop and so on 5 loops.

And for each Iteration I have to remove the duplicate values or do not add the duplicate values while iteration for each resul set.

They are asking me to use the vectors.

Any help is highly appreciated.

Thanks a lot......

DB2 Version: 8.1.1

OSLEVEL : AIX 5.3
Reply With Quote
  #2 (permalink)  
Old 07-06-09, 10:12
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Did you have a look at the DB2 manuals already? It contains a lot of examples on stored procedures and how to write them.

p.s: 8.1.1 is out of service.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-06-09, 13:52
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Thanks Stolze for ur reply..

No, I did not check the DB2 Manuals. can you please guide me for the manuals where I can find them?

Thanks Again..
Reply With Quote
  #4 (permalink)  
Old 07-06-09, 14:19
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 07-06-09, 14:22
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
Thanks Satya..
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