Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Multi-row UPDATE - DB2 10 for Z/OS (Mainframes)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
jdeeponline

New User


Joined: 08 Sep 2009
Posts: 27
Location: Charlotte

PostPosted: Tue Mar 26, 2013 3:54 pm    Post subject: Multi-row UPDATE - DB2 10 for Z/OS (Mainframes)
Reply with quote

While exploring oppurtunities to quicken a load process in our application's database, the multi-row insert feauture on DB2 10 helped improve the time and efficieny in loading bulk data.

Is there a similar option on the UPDATE, that could update multiple rows using Host Variables? Despite multiple efforts, I couldn't come across this in any of the materials available on the net.
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1017
Location: India

PostPosted: Tue Apr 02, 2013 4:00 pm    Post subject:
Reply with quote

Hi jdeeponline,

Try MERGE statement, it can update multiple rows using host variables, but be careful, if the row you are trying to update is not found, the statement will go for insert.

Thanks,
Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Position BSAM file on multi volume lbjerges PL/I & Assembler 3 Thu May 07, 2020 8:13 pm
No new posts Schedulers on Mainframes Manu SK JCL & VSAM 7 Fri Mar 20, 2020 10:55 pm
No new posts Mainframes Job opportunity-Full time Rohit Umarjikar Mainframe Jobs 0 Tue Nov 19, 2019 7:48 am
No new posts IBM z15 mainframes Robert Sample All Other Mainframe Topics 1 Fri Sep 13, 2019 2:05 am
No new posts refresh data from production - update... jzhardy DB2 1 Mon May 06, 2019 5:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us