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
 
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

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