Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting Specific Set of Rows and Replacing with New Rows

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

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Fri Sep 26, 2008 4:38 pm    Post subject: Deleting Specific Set of Rows and Replacing with New Rows
Reply with quote

Hi,

I have a table containing records for all Departments.
I want to override the rows of only a specific department (Say Dept-A) with new rows.
For ex if Dept-A has 5 Rows, and the New set has only 3 Rows, and I want only the 3 Rows to be inserted under Dept-A , rest of the 2 Rows should be deleted.
The Size of the Table is about a Million. Approximate size of the Dept rows will be 3000.And the table should be available all the times. Is it possible to use LOAD (with NO COPYPEND) or any other functionality is available? Please advise.

Thank you
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Fri Sep 26, 2008 6:01 pm    Post subject:
Reply with quote

Hi,

I have an idea.
Unload the table without the rows having DEPT-A.
Prepare a LOAD job wiht SHRLEVEL CHANGE on a LOAD RESUME with LOG YES. With this kind of setting LOAD will be just a INSERT processing.

LOAD the UNLOADED FILE + DATA that is to be inserted.


Take care of the REFERENTIAL CONSTRAINTS.
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 Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Can we combine the rows with same key... V S Amarendra Reddy DB2 12 Fri Dec 01, 2017 10:29 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am

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