IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to Rebulid an index?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Jun 26, 2008 6:57 pm
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
plkanth_526

New User


Joined: 01 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Fri Jun 27, 2008 11:32 am
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
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

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Fri Jun 27, 2008 11:47 am
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
Reply with quote

yes...Load resume will append the rows to the existing rows.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top