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

Z/os DB2 Version 7 Index Problem


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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jan 20, 2010 2:16 pm
Reply with quote

according to posts in the other site (url from my earlier post),
you should runstat first then reorg.
Back to top
View user's profile Send private message
Manshadi

New User


Joined: 31 Aug 2005
Posts: 82

PostPosted: Wed Jan 20, 2010 2:30 pm
Reply with quote

Hi,
Dick Brenholtz

Thanks for your suggestion, but it is opposite of IBM recommendation.

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

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Jan 20, 2010 2:44 pm
Reply with quote

Manshadi,

You can take STATISTICS while doing REORG itself, by doing this you can eliminate your step (3) process.

What version of DB2 you are using ?

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

New User


Joined: 31 Aug 2005
Posts: 82

PostPosted: Wed Jan 20, 2010 3:46 pm
Reply with quote

Hi,
Sushanth

We are using DB2 Version 7.

Yes I can take statistics in Reorg jobs but I am not sure it will solve our problem.



Thanks
Manshadi
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed Jan 20, 2010 10:22 pm
Reply with quote

If a unique index exists, select count(*) probably uses that index rather than the tablespace/parts

a way to force a TS-Scan is adding a where clause on a non-index column where all rows qualify for example datelupd < '3000-01-01'

But all this doesn't answer the question.
DB2 z/OS V7 is OOS more than a year go.

Do you ever check the table or always force it ?
Back to top
View user's profile Send private message
Manshadi

New User


Joined: 31 Aug 2005
Posts: 82

PostPosted: Thu Jan 21, 2010 1:45 am
Reply with quote

Hi,
Guyc

Thanks for your suggestion.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Cobol file using index COBOL Programming 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts z/vm installation problem All Other Mainframe Topics 0
Search our Forums:

Back to Top