SUMMARIZE
Operand | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TYPE=statisticsTableType (BMC.AMIOPS.SPE2304) | Specifies the type of the receiving table Possible values are as follows:
This required field has no default. | ||||||||||||||||||||||||||||||||||||||||||||
TYPE1=accountingTableType (BMC.AMIOPS.SPE2304) | Specifies the type of the receiving table Possible values are as follows:
| ||||||||||||||||||||||||||||||||||||||||||||
TYPE4=acceleratorSimBPTableType | Specifies the type of accelerator table or simulated bufferpool table Possible values are as follows:
This required field has no default. | ||||||||||||||||||||||||||||||||||||||||||||
TABLE=tableName | (Optional) Name of the receiving table This table is read to define the columns defined within the table. You can load it by making a LOAD request. If it is not specified, no source of default summarization columns exists, and SUMMKEY is the only other possible source. | ||||||||||||||||||||||||||||||||||||||||||||
FROMTBL=tableName | Name of the table from which records are to be read and summarized This operand is mutually exclusive with FROMDD. | ||||||||||||||||||||||||||||||||||||||||||||
FROMDD=ddName | ddname assigned to the file that is to be loaded. This operand is mutually exclusive with FROMTBL | ||||||||||||||||||||||||||||||||||||||||||||
TODD=ddName | ddname receiving the file of summarized records This operand is used as a work file for the specified LOAD request. This required field has no default. | ||||||||||||||||||||||||||||||||||||||||||||
COMBINE=(fld1,fld2,fld3,...) | Defines a list of column names from the input table that are to be combined in the output table The values from all fields are added together and passed on in the first field. There is no default. The default is to ignore combine processing. It is possible to type multiple COMBINE statements in a single summarization process. Only columns with like attributes can be combined. It is possible to combine integer and short integer columns. Character columns cannot be combined, nor can datetime columns. If overflow occurs while combining fields, the largest possible positive value is placed in the field. | ||||||||||||||||||||||||||||||||||||||||||||
SUMMSTART=date-time | Defines the first record which participates in summarization
If this operand is omitted, the default is to start with the oldest record from the specified input source.
| ||||||||||||||||||||||||||||||||||||||||||||
SUMMEND=date-time | Defines the last record which participates in summarization Format for date:
Format for time is hh:mm:ss to specify up to (but not including) the specified time. If omitted, the default is to process all records after the first one selected. | ||||||||||||||||||||||||||||||||||||||||||||
SUMMINT=nnnX | Indicates the number of minutes (M), hours (H), days (D), weeks (W), or months (N or MON) to be included in each summary interval (row) The X can be entered as M, H, D, W, N, or MON. The default value is 30M. Each interval generated starts at microsecond 0 and ends at microsecond 999999; for example, if SUMMINT=15M, a generated interval will be 14:45:00.000000 to 14:59:59.999999; then the next interval will be 15:00:00.000000 to 15:14:59.999999. The end interval time is reflected in the DATETIME, TIME and HOUR columns of the Performance Reporter tables. | ||||||||||||||||||||||||||||||||||||||||||||
SUMMKEY=(key,key,...) | Defines which columns are to be used as keys, so that their values remain unique in the summarized records
1 Valid for Db2 Version 11 and later. | ||||||||||||||||||||||||||||||||||||||||||||
SUMMKEY=(key,key,...) (continued) | Any combination of these values can be entered separated by commas. All values entered must be defined in the receiving table, if the receiving table is named. The SUMMKEY or TABLE keyword (or both) must be defined in a SUMMARIZE statement. The limitations are described in the SUMMKEY and TABLE keyword values table. SUMMKEY columns that are not specified will be set to blanks in the summarized record to avoid storing erroneous or misleading information in the record. The blanks indicate that the column's value in the record is immaterial, because the summarized record might be produced from multiple records that have different values in that field. |
The following table describes the valid key values for the SUMMKEY and the TABLE keywords for each type of receiving table.
Table | Keyword |
---|---|
SUMACCT |
|
SUMDDFACCT |
|
SUMPKGACCT |
|
SUMBUFACCT |
|
SUMSTAT |
|
SUMSTATA (BMC.AMIOPS.SPE2304) |
|
SUMSTATB (BMC.AMIOPS.SPE2304) |
|
SUMDDFSTAT |
|
SUMBUFSTAT |
|
SUMACCA |
|
SUMACCS |
|
SUMSYMB |
|
The default is to use all key columns that are defined and valid in the receiving table.