Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
how to Rebulid an index?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
Nagendran

Active User


Joined: 24 Jan 2007
Posts: 83
Location: Trivandrum

PostPosted: Thu Jun 26, 2008 6:57 pm    Post subject: how to Rebulid an index?
Reply with quote

Hi,

I have loaded a DB2 table by using load utility.

The job got abended and when i tried to submit the job it's saying a message like rebuild is pending for index.

could any body tell me how to rebuild the index? In the net, i found info like if we use LOAD with REPLACE option it will rebuild the index.

My doubt is...

Consider i am having 10 records in a table.... If i try to load some 20 records by using LOAD with REPLACE option, will it affect the previous
20 records.

thanks,
Nagendran.R
Back to top
View user's profile Send private message
References
plkanth_526

New User


Joined: 01 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Fri Jun 27, 2008 11:32 am    Post subject: Reply to: how to Rebulid an index?
Reply with quote

Using load replace index will be built but the data already present in the table will be deleted(10 rows will be deleted) and 20 rows will be loaded.

If you want to retain all the rows and index to be built use load resume.With load resume default is index build.
Back to top
View user's profile Send private message
plkanth_526

New User


Joined: 01 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Fri Jun 27, 2008 11:43 am    Post subject: Reply to: how to Rebulid an index?
Reply with quote

please read the above as 20 records will be present and 10 records already present will be deleted.

sorry for typo
Back to top
View user's profile Send private message
Nagendran

Active User


Joined: 24 Jan 2007
Posts: 83
Location: Trivandrum

PostPosted: Fri Jun 27, 2008 11:47 am    Post subject: Reply to: how to Rebulid an index?
Reply with quote

hi,

thank you...

If we use LOAD with RESUME YES will it retain all the original rows without deleting.


thanks,
Nagu
Back to top
View user's profile Send private message
plkanth_526

New User


Joined: 01 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Jun 30, 2008 3:33 pm    Post subject: Reply to: how to Rebulid an index?
Reply with quote

yes...Load resume will append the rows to the existing rows.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1