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

Runstat require after recall database dataset


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

Moderator


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

PostPosted: Sat Sep 01, 2007 12:57 pm
Reply with quote

Hi All,

Why we used to do runstats after recalling database dataset?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Sep 01, 2007 2:10 pm
Reply with quote

Hi Ekta,

RUNSTATS updates catalog statistics used by the optimizer to determine the fastest path to your data. This provides the best information possible to the optimizer.

When there is any data modification to the user tables, the catalog statistics tables are not automatically modified. A RUNSTATS command has to be performed on tables and indexes so that columns in the catalog tables are updated with the latest information.

It is necessary to provide the optimizer with accurate statistics describing the tablespaces and indexes so that it can choose an efficient access path for processing the data.
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Sun Sep 02, 2007 11:53 am
Reply with quote

Hi Dick,

Thanks for the information but i just want to now after recalling database PDS there should not be any need to do runstat again but why we do it?


I agree that runstat is require to update stats so that optimizer can choose the correct access path.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Sep 02, 2007 10:38 pm
Reply with quote

Hi Ekta,

I believe that is just insurance that the stats will always match the data after a recall is done.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts What database does Jobtrac use CA Products 4
Search our Forums:

Back to Top