Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Load Job to load only Few Partitions for Partition table

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

New User


Joined: 15 Aug 2006
Posts: 44
Location: Virginia, USA

PostPosted: Thu Dec 10, 2009 3:10 am    Post subject: Load Job to load only Few Partitions for Partition table
Reply with quote

Hi,
I have a table = owner.Table1 with 16 partitions.

I want to load the Partition table with Load replace and i want to load only few partitions. I do not want to touch the data in other partitions.
I tried the syntax

Code:
LOAD REPLACE                                         
   LOG NO                                           
   ORDER YES                                         
   COPY YES INLINE REGISTER NONE                     
   UPDATEDB2STATS YES                               
   BMCSTATS YES                                     
   REDEFINE NO                                       
   INTO TABLE owner.table1 PART 1:11


It loaded successfully but the remaining partions data also deleted.
Could anybody please provide the syntax to load only 11 partitions and should not touch the other 12:16 partitions data.
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Dec 10, 2009 1:49 pm    Post subject:
Reply with quote

Hello Alluri,

Since you have specified REPLACE option before the PART OPTION, replace will indicate entire tablespace to be replaced .

Please use below code for each partition :

Code:
LOAD
  INTO TABLE owner1.table1 PART 1 REPLACE
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Thu Dec 10, 2009 2:08 pm    Post subject:
Reply with quote

Alluri,

Quote:
It loaded successfully but the remaining partions data also deleted.

Well that is what your below syntax also meant, i guess. If you had worked in BMC, you could have said "TESTED SUCCESSFULLY" for BMC LOAD test documents.

Code:
LOAD REPLACE                                         
   LOG NO                                           
   ORDER YES                                         
   COPY YES INLINE REGISTER NONE                     
   UPDATEDB2STATS YES                               
   BMCSTATS YES                                     
   REDEFINE NO                                       
   INTO TABLE owner.table1 PART 1:11


Open-Up the BMC Load manual, Look for the "REPLACE" keyword and where to place it, while loading partitions. Since, i have never used BMC, i cannot tell you that position. But, my guess is somewhere near the PART keyword like
Code:
LOAD                                           
   LOG NO                                           
   ORDER YES                                         
   COPY YES INLINE REGISTER NONE                     
   UPDATEDB2STATS YES                               
   BMCSTATS YES                                     
   REDEFINE NO                                       
   INTO TABLE owner.table1 PART 1:11 REPLACE


Above is not tested, similar method is followed for IBM load utility & FASTLOAD utility for loading specific partitions.


Sushanth
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Thu Dec 10, 2009 2:19 pm    Post subject:
Reply with quote

Sorry guptae, i guess i didn't refresh my page.

Sushanth
Back to top
View user's profile Send private message
alluri12

New User


Joined: 15 Aug 2006
Posts: 44
Location: Virginia, USA

PostPosted: Fri Dec 11, 2009 9:52 am    Post subject:
Reply with quote

Thanks guys.... it worked, Here is the code i used

Code:
LOAD
   RESUME YES                                           
   LOG NO                                           
   ORDER YES                                         
   COPY YES INLINE REGISTER NONE                     
   UPDATEDB2STATS YES                               
   BMCSTATS YES                                     
   REDEFINE NO                                       
   INTO TABLE owner.table1 PART 1:11 REPLACE
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Fri Dec 11, 2009 11:32 am    Post subject:
Reply with quote

Thanks Alluri for the update.
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us