I created a script that runs a reorgchk of tables.
It then decides if the table needs to be reorged.
Checks the Indexes and decides if any need to be recreated.
It then drops / creates the selected indexes (adds the associated table to the select tables).
REORGS the selected tables by it primary index.
Runs RUNSTATS on the selected tables.
I have not been able to figure or find out if it is better to reorg the indexes then the tables or the tables then the indexes.
Any advantage to one way or the other?
It then decides if the table needs to be reorged.
Checks the Indexes and decides if any need to be recreated.
It then drops / creates the selected indexes (adds the associated table to the select tables).
REORGS the selected tables by it primary index.
Runs RUNSTATS on the selected tables.
I have not been able to figure or find out if it is better to reorg the indexes then the tables or the tables then the indexes.
Any advantage to one way or the other?