DBSTATIDB2 SAP (DB2/390 Statistics for Indexes) Table details
Dictionary Type: Table
Description: DB2/390 Statistics for Indexes
Description: DB2/390 Statistics for Indexes
Table field list including key, data, relationships and ABAP select examples
DBSTATIDB2 is a standard SAP Table which is used to store DB2/390 Statistics for Indexes data and is available within R/3 SAP systems depending on the version and release level.
The DBSTATIDB2 table consists of various fields, each holding specific information or linking keys about DB2/390 Statistics for Indexes data available in SAP. These include CREATOR (DB2 creator name), TIMESTAMP (Date and time of last RUNSTATS), TBNAME (DB2 table name), VWTYP (Type of Usage of Table Entry).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: L - Table for storing temporary data, is delivered emptyDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP DBSTATIDB2 table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
NAME | Name of a DB2 for OS/390 index | DB2IDXNAME | CHAR | 18 | CHAR18 | ||||
CREATOR | DB2 creator name | DB2CREATOR | CHAR | 8 | CHAR8 | ||||
TIMESTAMP | Date and time of last RUNSTATS | DB2STATSTM | CHAR | 26 | DB2TMSTMP | ||||
TBNAME | DB2 table name | DB2TABNAME | CHAR | 18 | CHAR18 | ||||
VWTYP | Type of Usage of Table Entry | AM_VWTYP | CHAR | 2 | AM_VWTYPE | ||||
CLURATIO | DB2 for OS/390 cluster ratio | DB2CLURAT | INT1 | 3 | INT1 | ||||
FIRSTKCARD | Number of distinct values in key (first column or full key) | DB2KEYCARD | FLTP | 16(16) | FLOATING | ||||
FULLKCARD | Number of distinct values in key (first column or full key) | DB2KEYCARD | FLTP | 16(16) | FLOATING | ||||
NLEAF | Number of active leaf pages in the index | DB2NLEAF | INT4 | 10 | |||||
NLEVELS | DB2 for OS/390 number of levels in the index tree | DB2NLEVELS | INT2 | 5 | DB2SINT | ||||
NEAROFFPOS | Number of referred to rows near/far from optimal position | DB2OFFPOSF | FLTP | 16(16) | FLOATING | ||||
FAROFFPOS | Number of referred to rows near/far from optimal position | DB2OFFPOSF | FLTP | 16(16) | FLOATING | ||||
LEAFDIST | 100 * avg number of leaf pages between successive leaf pages | DB2LEAFDIS | INT4 | 10 | |||||
DSSIZE | DB2 for OS/390 size of a dataset in KBytes | DB2SIZEK | DEC | 15 | DB2SIZEK |
Key field | Non-key field |
How do I retrieve data from SAP table DBSTATIDB2 using ABAP code
The following ABAP code Example will allow you to do a basic selection on DBSTATIDB2 to SELECT all data from the tableDATA: WA_DBSTATIDB2 TYPE DBSTATIDB2.
SELECT SINGLE *
FROM DBSTATIDB2
INTO CORRESPONDING FIELDS OF WA_DBSTATIDB2
WHERE...
How to access SAP table DBSTATIDB2
Within an ECC or HANA version of SAP you can also view further information about DBSTATIDB2 and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects