+RUNSTATS
NO | (Default) BMC AMI Reorg does not update the statistics. |
---|---|
YES | BMC AMI Reorg updates the statistics according to the STTPARMS. The STTPARMS DD is the location in which the parameters for BMC AMI Stats for Db2 are specified. For more information, see Overview of BMC AMI Stats. |
ALL | Same as YES BMC AMI Reorg updates all statistics, including the history tables. |
HST | Same as YES BMC AMI Reorg updates all statistics, including the history tables. |
Restrictions
The +RUNSTATS parameter is subject to the following restrictions:
- This parameter computes aggregate statistics using catalog values for partitions that are not processed. To ensure that meaningful values are computed when processing a subset of a partitioned table space, you must run BMC AMI Stats on the entire table space when, or immediately after, the table space has loaded to collect statistics for all partitions.
- BMC AMI Reorg does not collect statistics for non-indexed tables.
- The statistics that BMC AMI Reorg gathers update SYSCOLUMNS for the first column only of each index. Run BMC AMI Stats to obtain statistics for all columns of all indexes.
Additional considerations
Column grouping (COLGROUP) statistics are updated for every column combination of every index. Frequency distributed statistics can also be collected. Frequency statistics collection is controlled by the BMC AMI Stats parameters in the STTPARMS DD. If the STTPARMS DD is not supplying these parameters in the reorganization job, BMC AMI Reorg obtains them from the BMC AMI Utilities configuration.
For a list of the Db2 catalog statistics that are updated, see BMC AMI Stats for Db2 documentation.