This option allows for multiple column-level statistics per table.
Procedure
On the Object-Specific Utility Options panel, enter Y in the Include Options and Update Options fields for Runstats Table Column Statistics or Reorg Table Column Statistics and press Enter.
The Table Column Statistics panel is displayed.
Refer to the help panel for information about the fields on this panel.
Select the table for which you want to define column statistics by entering U in the Cmd field next to the table. Press Enter.
The Runstats Table Column Statistics panel is displayed.
A C is displayed in the Cmd field; press Enter to create statistics.
The Runstats Table Create window is displayed.
In the Column Statistic Type field, enter C to specify a column list or enter G to specify a column group. Press Enter.
For the column list, the Runstats Table Column Statistics panel is displayed, as shown in the following figure:
Select the columns that you want to collect statistics on by entering S in the Cmd field next to the column name. Press PF3 when finished.
For the column group, the Runstats Column Group Options panel is displayed.
Specify the column group for which statistics are collected by entering a numeric value in the Seq column. To clear a column, remove the numeric from the columns.
Refer to the help panel for information about the fields on this panel.
Press PF3 when you are finished defining statistics.
The Runstats Table Column Statistics panel is displayed. The statistics definitions are listed on this panel, as shown in the following figure:
Press PF3.
The Table Column Statistics panel is displayed.
Enter Y in the Include Sample field and press Enter.
The Update Runstats Sample Specification window is displayed.
Enter the sampling options for the table space.
Refer to the help panel for information about the fields on this window.
When finished, press Enter.
What to do next
To create more statistic definitions, enter C in the Cmd field. You can also update, delete, or view statistics definitions by using the appropriate line commands.