RUNSTATS
RUNSTATS syntax diagram
For a description of the statistics produced by RUNSTATS, see the IBM website.
Statistics are not collected for the following items:
- Indexes.
- DSNUM integer copy of a nonpartitioned space.
- DSNUM integer copies of partitioned spaces cannot report or update aggregate statistics, SYSTABLESPACE and SYSTABLES, unless statistics for the other partitions are found in the catalog tables.
- DSNDB06.SYSCOPY or any spaces in DSNDB01.
- RUNSTATS is not valid for spaces in REORP status.
- RUNSTATS and all of its suboptions are ignored for Instant Snapshots.
Option | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RUNSTATS | The following are the values of RUNSTATS:
| ||||||||||||||||||||||||||||||
REPORT | The REPORT option under RUNSTATS determines if a set of messages is generated to report the collected statistics. Values of REPORT
| ||||||||||||||||||||||||||||||
BMCSTATS | The BMCSTATS option under RUNSTATS specifies if the collected table space or table level statistics for RUNSTATS are reflected in the BMCSTATS tables. Values of BMCSTATS
| ||||||||||||||||||||||||||||||
UPDATE | The UPDATE option under RUNSTATS specifies whether should update the Db2 statistics. Use the option to indicate if should update the Db2 catalog with the collected statistics, and if so, which category of statistics should update. UPDATE also allows you to select statistics used for access path selection or statistics used by database administrators. The tables updated with RUNSTATS UPDATE option shows the Db2 catalog tables that are updated when you use the UPDATE option. For a description of the Db2 catalog tables, see the DB2 for z/OS SQL Reference documentation. Columns updated with RUNSTATS UPDATE option shows the columns that are updated when you specify RUNSTATS UPDATE. Tables updated with RUNSTATS UPDATE option
Columns updated with RUNSTATS UPDATE option
1 This DSNUM value applies to index copies only—not to table spaces copies. If BMCSTATS YES is specified, all BMCSTATS tables are updated. For information about the BMCSTATS tables and how inserts a row with all columns filled except REORG SPACE, see the DASD MANAGER PLUS for DB2 documentation.
|