Db2 – BMC Software | Blogs https://s7280.pcdn.co Mon, 08 Nov 2021 14:33:36 +0000 en-US hourly 1 https://s7280.pcdn.co/wp-content/uploads/2016/04/bmc_favicon-300x300-36x36.png Db2 – BMC Software | Blogs https://s7280.pcdn.co 32 32 Db2 12 for z/OS: An Introduction https://s7280.pcdn.co/db2-introduction/ Tue, 25 Jun 2019 00:00:44 +0000 https://www.bmc.com/blogs/?p=14433 One of the most valuable resources for modern businesses is data. Data increases its relevancy as technology continues to make strides in the storage, management, and utilization of immense amounts of information. Data can be used to provide insight into every facet of the business from operations to market trends. Armed with powerful data, business […]]]>

One of the most valuable resources for modern businesses is data. Data increases its relevancy as technology continues to make strides in the storage, management, and utilization of immense amounts of information. Data can be used to provide insight into every facet of the business from operations to market trends. Armed with powerful data, business decisions can be made with confidence knowing that all factors have been considered.

While data can be incredibly valuable for businesses from every sector, your data is only as powerful as your ability to harness it. Storing, analyzing, and managing data in today’s world is a gigantic undertaking as the size and amount of data surges ever upwards. Entire industries have sprung up in response to the advancements made in the world of data analysis and management that have increased their scope and complexity many times over.

Many tools have been developed over time to aid in the management of data. We have come a long way from the days of maintaining handwritten records of all transactions. The primary tool for storing and analyzing information in the modern world is a database system. Various companies compete to act as the primary provider of database technology. International Business Machines Corporation (IBM) is one such company, establishing its presence early and firmly in the world of technology and data services.

IBM has made itself known on the world’s stage of technology since the earliest days of data recording and analysis. In fact, IBM began as the Computing, Tabulating & Recording Company (C-T-R) in the late 1800s. Their first big contract was with the United States government to provide tabulating equipment for the analysis of the 1890 US census. Today, IBM provides enterprise solutions for all things data-related, with its flagship product for database management, Db2.

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

What is Db2?

Db2, originally styled as DB2, is a relational database management system (RDBMS) which was first introduced by IBM in 1983 on their own multiple virtual storage (MVS) mainframe platform. Initially created for the IBM mainframe platform (modern versions of which are known as z/OS), Db2 was later opened up to function on other operating systems (OS) such as Linux, UNIX, and Windows.

Db2 is a full-featured database engine designed to handle massive quantities of data and to provide the ability for multiple concurrent users to interact with the database simultaneously. IBM’s z/OS 64-bit operating system is the go-to infrastructure for database systems and is the default pairing for Db2 systems. IBM’s newest product in a long line of successful database technologies is Db2 12 for z/OS.

What is Db2 12 for z/OS?

Db2 12, released for general use on October 21, 2016, is the twelfth and most recent major installment of the Db2 product family. With the release of Db2 12, IBM has further cemented their place in the technology industry as one of the primary providers of cutting-edge database technology.

Db2 12 for z/OS extends the core capabilities of Db2 and empowers its scalability, security, reliability, and efficiency. Db2 12 was created to empower the next wave of applications in the cloud, mobile, and analytics spaces. Db2 12 provides users with the continuous delivery of new capabilities and enhancements as they are made, marking IBM’s switch of Db2 to the software as a service (SaaS) model.

Db2 12 allows for the management of core business data across your enterprise while supporting key business applications. Db2 version 12 provides database management through the use of structured query language (SQL), the industry standard database manipulation language. Db2 12 allows for up to 11.7 million inserts per second and up to 256 trillion rows per table. Those kinds of big data management capabilities ensure enterprise database systems are prepared for today’s and tomorrow’s database challenges.

Db2 12 is popular with many of the largest banking organizations in the United States. Many US tech companies also take advantage of IBM’s Db2 12 for z/OS capabilities. According to IBM, Db2 12 for z/OS offers up to 23% lower CPU costs thanks to its increased efficiency. But fear not, scalability and speed (with up to 100 times faster queries) have not been sacrificed for the sake of efficiency with the newest version of Db2.

The enhancements and modifications made to Db2 in version 12 are numerous, and they vary by the function levels activated by database administrators. We have put together a collection of resources to make learning more about Db2 12 for z/OS easier for you.

Db2 12 for z/OS Resources

The IBM Knowledge Center is a fount of knowledge for all things Db2 12 related as they are the originators of the technology. IBM offers their general breakdown of what Db2 for z/OS is here. And you can find a detailed breakdown of the enhancements offered by Db2 12 in this section of the IBM Knowledge Center. You can also learn more about Db2 for z/OS and SQL concepts. This Db2 12 for z/OS Command Reference is also provided by IBM for those involved in system administration, database administration, and operation.

Videos are a great source of information that can be easier to digest for some on all subjects. This is no less the case for database systems and this YouTube playlist was put together specifically for those looking to learn more about Db2 12. You can also request free Db2 for z/OS collateral from the experts at BMC.

]]>
Scalar Functions in Db2 12 https://www.bmc.com/blogs/db2-scalar-functions/ Mon, 01 Apr 2019 20:59:54 +0000 http://s27433.p402.sites.pressdns.com/?p=13204 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) ABS >__ABS(numeric-expression)________________________________________________>  ACOS >__ACOS(numeric-expression)_______________________________________________> ADD_MONTHS >__ADD_MONTHS(expression,numeric-expression)______________________________> ARRAY_DELETE >__ARRAY_DELETE(array-expression___________________________________)______> ǀ_,_array-index1_________________ǀ ǀ_,ǀ_array-index2_ǀ ARRAY_FIRST >__ARRAY_FIRST(array-expression___________________________________________> ARRAY_LAST >__ARRAY_LAST(array-expression____________________________________________> ARRAY_NEXT >__ARRAY_FIRST(array-expression, array-index)_____________________________> ARRAY_PRIOR >__ARRAY_PRIOR(array-expression, array-index)_____________________________> ASCII >_ASCII(string-expression)________________________________________________> ASCII_CHR >_ASCII_CHR(expression)___________________________________________________> ASCII_STR >_ASC11_CHR(string-expression)____________________________________________> ASIN >__ASIN(numeric-expression)_______________________________________________> ATAN >__ATAN(numeric-expression)_______________________________________________> ATANH >__ATANH(numeric-expression)_____________________________________________> ATAN2 >__ATAN2(numeric-expression1,numeric-expression2)_________________________> BIGINT Numeric to Big Integer: >_BIGINT(numeric-expression______________________________________________> String […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

ABS

>__ABS(numeric-expression)________________________________________________>

 ACOS

>__ACOS(numeric-expression)_______________________________________________>

ADD_MONTHS

>__ADD_MONTHS(expression,numeric-expression)______________________________>

ARRAY_DELETE

>__ARRAY_DELETE(array-expression___________________________________)______>
ǀ_,_array-index1_________________ǀ
      ǀ_,ǀ_array-index2_ǀ

ARRAY_FIRST

>__ARRAY_FIRST(array-expression___________________________________________>

ARRAY_LAST

>__ARRAY_LAST(array-expression____________________________________________>

ARRAY_NEXT

>__ARRAY_FIRST(array-expression, array-index)_____________________________>

ARRAY_PRIOR

>__ARRAY_PRIOR(array-expression, array-index)_____________________________>

ASCII

>_ASCII(string-expression)________________________________________________>

ASCII_CHR

>_ASCII_CHR(expression)___________________________________________________>

ASCII_STR

>_ASC11_CHR(string-expression)____________________________________________>

ASIN

>__ASIN(numeric-expression)_______________________________________________>

ATAN

>__ATAN(numeric-expression)_______________________________________________>

ATANH

>__ATANH(numeric-expression)_____________________________________________>

ATAN2

>__ATAN2(numeric-expression1,numeric-expression2)_________________________>

BIGINT

Numeric to Big Integer:

>_BIGINT(numeric-expression______________________________________________>

String to Big Integer:

>_BIGINT(string-expression_______________________________________________>

BINARY

>_BINARY(string-expression_________________)_____________________________>
                               ǀ_,_integer_ǀ

BITAND, BITANDNOT, BITOR, BITXOR and BITNOT

>__BITAND_____(_expression1__, expression2__)____________________________>
 ǀ_BITANDNOT_ǀ
 ǀ_BITOR_____ǀ
 ǀ_BITXOR____ǀ

>_BITNOT(_expression_)___________________________________________________>

BLOB

>__BLOB(expression_______________)_______________________________________>
                   ǀ_,__integer_ǀ

CARDINALITY

>__CARDINALITY(array-expression)_________________________________________>

CCSID_ENCODING

>__CCSID_ENCODING(expression)____________________________________________>

CEILING

>__CEILING_______(__expression__)________________________________________>

CHAR

Datetime to Character:

>__CHAR(datetime-expression________________)_____________________________>
                            ǀ_,____ISO____ǀ
                                 ǀ_USA___ǀ
                                 ǀ_EUR___ǀ
                                 ǀ_JIS___ǀ
                                 ǀ_LOCAL_ǀ

Character to character:

>__CHAR(character-expression_______________________________)_____________>
                             ǀ_,_integer__________________ǀ
                                        ǀ_,ǀ_CODEUNITS16_ǀ
                                           ǀ_CODEUNITS32_ǀ
                                           ǀ_OCTETS______ǀ

Graphic to character:

__CHAR(graphic-expression____________________________________)__________>
                               ǀ_,_integer__________________ǀ
                                          ǀ_,ǀ_CODEUNITS16_ǀ
                                             ǀ_CODEUNITS32_ǀ

Integer to character:

>__CHAR(integer-expression)______________________________________________>

Decimal to character:

>__CHAR(decimal-expression)___________________________)__________________>
                              ǀ_,__decimal-character_ǀ

Decimal floating-Point to Character:

>__CHAR(decimal-floating-point-expression)______________________________>

Floating-Point to Character:

>__CHAR(floating-point-expression)______________________________________>

Row ID to Character:

>__CHAR(row-ID-expression)______________________________________________>

CHAR9

>__CHAR9__(decimal-expression______________________________)____________>
                                  ǀ_,_decimal-character__ǀ

CHARACTER_LENGTH

Character sting:

>__CHARACTER_LENGTH(character-expression__,_ CODEUNITS16_____)__________>
                                           ǀ_CODEUNITS32_ǀ
                                           ǀ_OCTETS______ǀ

Graphic string:
>__CHARACTER_LENGTH(graphic-expression__,____CODEUNITS16_____)__________>
                                           ǀ_CODEUNITS32_ǀ

CLOB

Character to CLOB:

>__CLOB(character-expression___________________________________)________>
                               ǀ_,_integer_________________ǀ
                                         ǀ_,ǀ_CODEUNITS16_ǀ
                                            ǀ_CODEUNITS32_ǀ
                                            ǀ_OCTETS______ǀ

GRAPHIC to CLOB:
>__CLOB(graphic-expression_____________________________________)________>
                             ǀ_,_integer_________________ǀ
                                        ǀ_,ǀ_CODEUNITS16_ǀ
                                           ǀ_CODEUNITS32_ǀ

COALESCE

                             <___________
>____COALESCE___(expression__,expressionǀ_)_____________________________>

COLLATION KEY

>__COLLATION_KEY(string-expression, collation-name______________)_______>
                                                   ǀ_,integer_ǀ

COMPARE_DECFLOAT

>__COMPARE_DECFLOAT(decfloat-expression1, decfloat-expression2__________>

CONCAT

>_____CONCAT____(expression1,expression2)_______________________________>
    ǀ_"ǀǀ"____ǀ

CONTAINS

>__CONTAINS____(column-name, search-argument)___________________________>
                                              ǀ_,string-constant_ǀ

Search-argument-options:

          <______________________
>________________________________ǀ______________________________________>
         ǀ_QUERYLANGUAGE = value_ǀ
         ǀ_RESULTLIMIT = value___ǀ
         ǀ            _OFF_      ǀ
         ǀ_SYNONYM = ǀ_ON__ǀ_____ǀ

COS

>__COS(numeric-expression)_______________________________________________>

COSH

>__COSH(numeric-expression)______________________________________________>

DATE

>__DATE(expression)______________________________________________________>

DAY

>__DAY(expression)_______________________________________________________>

DAYOFMONTH

>__DAYOFMONTH(expression)________________________________________________>

DAYOFWEEK

>__DAYOFWEEK(expression)_________________________________________________>

DAYOFWEEK_ISO

>__DAYOFWEEK_ISO(expression)_____________________________________________>

DAYOFYEAR

>__DAYOFYEAR(expression)_________________________________________________>

DAYS

>__DAYS(expression)______________________________________________________>

DBCLOB

Character to DBCLOB:

>__DBCLOB(character-expression__________________________________)________>
                                 ǀ_,_integer__________________ǀ
                                             ǀ_,ǀ_CODEUNITS16_ǀ
                                                ǀ_CODEUNITS32_ǀ

GRAPHIC to DBCLOB:

>__DBCLOB(graphic-expression____________________________________)________>
                               ǀ_,_integer__________________ǀ
                                          ǀ_,ǀ_CODEUNITS16_ǀ
                                          ǀ_,ǀ_CODEUNITS32_ǀ

DECFLOAT

numeric to DECFLOAT:

                                   _,34_
>__DECFLOAT_(_numeric-expression__ǀ_____ǀ_______________________)________>
                                  ǀ_,16_ǀ

string to DECFLOAT:

                                  _,34_
>__DECFLOAT_(_string-expression__ǀ_____ǀ________________________)________>
                                 ǀ_,16_ǀ

DECFLOAT_FORMAT

>_____DECFLOAT_FORMAT___(___string-expression_____________________)______>
                                              ǀ_,_format-string_ǀ

DECFLOAT_SORTKEY

>_DECFLOAT_SORTKEY_ (_decfloat-expression_)______________________________>

DECIMAL or DEC

Numeric to decimal:

>_____DECIMAL___(___numeric-expression_____________________________)_____>
    ǀ_DEC_____ǀ                          ǀ_,precision___________ǀ
                                                      ǀ_scale_ǀ

String to decimal:

>_DECIMAL_(string-expression______________________________________)______>
  ǀ_DEC__ǀ                    ǀ_,precision______________________ǀ
                                          ǀ_,scale_____________ǀ
                                            ǀ_,decimal-char_ǀ

DECODE

                       <__________________________________
>_DECODE_(_expression1__,_expression2_,_result-expression_ǀ______________>

>________________________________________________________________)_______>
    ǀ_,_else-expression_ǀ

DECRYPT

>>___ _DECRYPT_BINARY__________(encrypted-data___________________________>
     ǀ_DECRYPT_BIT___ǀ
     ǀ_DECRYPT_CHAR__ǀ
     ǀ_DECRYPT_DB____ǀ
>_____ __________________________________________________________)_______>
      ǀ_,_ _password-string___________ _ _ ____________________ǀ
          ǀ_DEFAULT___________________ǀ_ǀ_,__ccsid-constant_ǀ

DEGREES

>__DEGREES(expression)___________________________________________________>

DIFFERENCE

>__DIFFERENCE(expression1, expression2)__________________________________>

DIGITS

>__DIGITS(expression)____________________________________________________>

DOUBLE or DOUBLE_PRECISION

>__DOUBLE__________________(___numeric-expression___)____________________>
  ǀ_DOUBLE_PRECISION_ǀ      ǀ_string-expression__ǀ

DSN_XMLVALIDATE

>__DSN_XMLVALIDATE_______________________________________________________>

>_(string-expression_,_schema-name-string________________________________>
   ǀ_xml-expression_ǀ ǀtarget-namespace-uri-sting,schema-location-stringǀ

EBCDIC_CHR

>>__EBCDIC(expression)___________________________________________________>

EBCDIC_STR

>>__EBCDIC_STR(string-expression)________________________________________>

ENCRYPT_TDES

>>__ENCRYPT_TDES(data-string____________________________________)________>
                             ǀ_,password-string,hint-string

EXP

>__EXP(numeric-expression)_______________________________________________>

EXTRACT

Extract date values:

>__EXTRACT(__YEAR____)_FROM__date-expression__________)_________________>
            ǀ_MONTH_ǀ       ǀ_timestamp-expression_ǀ
            ǀ_DAY___ǀ

Extract time values:

>__EXTRACT(___HOUR____)_FROM__time-expression__________)________________>
            ǀ_MINUTE_ǀ       ǀ_timestamp-expression_ǀ
            ǀ_SECOND_ǀ

Extract time zone values:

>__EXTRACT(___HOUR____)________FROM__date-expression___________)________>
            ǀ_MINUTE__________ǀ     ǀ_time-expression_______ǀ
            ǀ_SECOND__________ǀ     ǀ_timestamp-expression__ǀ
            ǀ_TIMEZONE_HOUR___ǀ
            ǀ_TIMEZONE_MINUTE_ǀ

FLOAT

>__FLOAT(numeric-expression)____________________________________________>

LOWER

>__LOWER(string-expression____________________________________)_________>
                             ǀ_,_locale-name_ǀ ǀ_,_integer_ǀ

LPAD

>__LPAD(string-expression,integer______________)________________________>
                                    ǀ_,_pad_ǀ

LTRIM

>__LTRIM(string-expression)______________________________)______________>
                                 ǀ_,_trim-expression_ǀ

MAX

                   <___________
>__MAX(expression, expression1_ǀ_)______________________________________>

MAX CARDINALITY

>__MAX_CARDINALITY(array-expression)____________________________________>

MICROSECOND

>__MICROSECOND(expression)______________________________________________>

MIDNIGHT_SECONDS

>__MIDNIGHT_SECONDS(expression)_________________________________________>

MIN

                   <__________
>__MIN(expression, expression_ǀ_)_______________________________________>

MINUTE

>__MINUTE(expression)___________________________________________________>

MOD

>__MOD(numeric-expression1,numeric-expression2)_________________________>

MONTH

>__MONTH(expression)____________________________________________________>

MONTHS_BETWEEN

>__MONTHS_BETWEEN(expression1, expression2)_____________________________>

MULTIPLY_ALT

>__MULTIPLY_ALT(exact-numeric-expression1,exact-numeric-expression2)____>

NEXT_DAY

>__NEXT_DAY(expression,string-expression)_______________________________>

NORMALIZE_DECFLOAT

>__NORMALIZE_DECFLOAT(decfloat-expression)______________________________>

NORMALIZE_STRING

                                     _NFC__
>__NORMALIZE_STRING(Unicode-string,_ǀ_NFD__ǀ________________)___________>
                                    ǀ_NFKC_ǀ ǀ_,_integer_ǀ
                                    ǀ_NKFD_ǀ

NULLIF

>__NULLIF(expression,expression)________________________________________>

NVL

                   <__________
>__NVL(expression, expression_ǀ_)_______________________________________>

OVERLAY

>_OVERLAY(source-string_,insert-string_,_length_,_CODEUNITS16____)______>
                                                ǀ_CODEUNTIS32_ǀ
                                                ǀ_OCTETS______ǀ

PACK

                            <__________
>__PACK(___CCSID 1208_____,_expression_ǀ_)______________________________>
        ǀ_CCSID DEFAULT_ǀ

POSITION

>_POSTION(search-string,source-string_,_ CODEUNITS16__)_________________>
                                       ǀ_CODEUNITS32_ǀ
                                       ǀ_OCTETS______ǀ

POSSTR

>__POSSTR(source-string, search-string)_________________________________>

POWER

>__POWER(numeric-expression1,numeric-expression2)_______________________>

QUANTIZE

>__QUANTIZE(expression-1,expression-2)__________________________________>

QUARTER

>__QUARTER(expression)__________________________________________________>

RADIANS

>__RADIANS(numeric-expression)__________________________________________>

RAISE_ERROR

>__RAISE_ERROR(sqlstate,diagnostic-string)______________________________>

RAND

>__RAND(_________________________)______________________________________>
          ǀ_numeric-expression_ǀ

REAL

>__REAL(____numeric-expression___)______________________________________>
          ǀ_string-expression__ǀ

FLOOR

>__FLOOR(numeric-expression)____________________________________________>

GENERATE_UNIQUE and GENERATE_UNIQUE_BINARY

>__GENERATE_UNIQUE()____________________________________________________>
  ǀ_GENERATE UNIQUE BINARY()_ǀ

GETHINT

>__GETHINT(encrypted-data)______________________________________________>

GETVARIABLE

>__GETVARIABLE(string-constant_ ________________________________________>
                               ǀ_,__default-value________________ǀ
                               ǀ_,__CAST_(_NULL_AS_VARCHAR(1)_)__ǀ

GRAPHIC

Character to Graphic:

>__GRAPHIC(character-expression____________________________________)_______>
                                ǀ_,_integer______________________ǀ
                                            ǀ_,_CODEUNITS16____ǀ
                                               ǀ_CODEUNITS32_ǀ

Graphic to Graphic:

>__GRAPHIC(graphic-expression___________________________________)_______>
                                ǀ_,_integer__________________ǀ
                                           ǀ_,_CODEUNITS16___ǀ
                                              ǀ_CODEUNITS32_ǀ

HASH_CRC32, HASH_MD5, HASH_SHA1, and HASH_SHA256

>__HASH_CRC32_____(expression)__________________________________________>
 ǀ_HASH_MD5______ǀ
 ǀ_HASH_SHA1_____ǀ
 ǀ_HASH_SHA256___ǀ

HEX

>__HEX(expression)______________________________________________________>

HOUR

>__HOUR(expression)_____________________________________________________>

IDENTITY_VAL_LOCAL()

>__IDENTITY_VAL_LOCAL()_________________________________________________>

IFNULL

>__IFNULL(expression,expression)________________________________________>

INSERT

>_INSERT(source-string),start,length,insert-string____________________)___>
                                                   ǀ_,_CODEUNITS16___ǀ
                                                      ǀ_CODEUNITS32_ǀ
                                                      ǀ_OCTETS______ǀ

INTEGER or INT

>_____INTEGER___(___numeric-expression___)________________________________>
    ǀ_INT_____ǀ   ǀ_string-expression__ǀ

JULIAN_DAY

>__JULIAN_DAY(expression)_________________________________________________>

LAST_DAY

>__LAST_DAY(expression)___________________________________________________>

LCASE

>____LCASE___(string-expression)__________________________________________>
                                  ǀ,_locale-name_ǀ ǀ_,_integer_ǀ

LEFT

Character string:

>_LEFT(character-expression,length____________________)___________________>
                                   ǀ_,_CODEUNITS16__ǀ
                                      ǀ_CODEUNITS32_ǀ
                                      ǀ_OCTETS______ǀ

Graphic string:

>_LEFT(graphic-expression,length_____________________)____________________>
                                 ǀ_,_CODEUNITS16__ǀ
                                    ǀ_CODEUNITS32_ǀ

Binary string:

>_LEFT(binary-expression,length______________________)____________________>

LENGTH

>__LENGTH(expression)_____________________________________________________>

LN

>__LN(numeric-expression)_________________________________________________>

LOCATE

>_LOCATE(search-string,source-string_________________)____________________>
                                        ǀ_,_start_ǀ  ǀ_,_CODEUNITS16___ǀ
                                                       ǀ_CODEUNITS32_ǀ
                                                       ǀ_OCTETS______ǀ

LOCATE_IN_SPRING

>_LOCATE(source-string,search-string______________________________________>
                                     ǀ_,_start________________ǀ
                                                ǀ_,instance_ǀ
>_____________________________________________________)___________________><
            ǀ_,_CODEUNITS16__ǀ
            ǀ_CODEUNITS32_ǀ
            ǀ_OCTETS______ǀ

LOG10

>__LOG10(numeric-expression)______________________________________________>

REPEAT

>__REPEAT(expression,integer)_____________________________________________>

REPLACE

>__REPLACE(source-string, search-string, replace-string)__________________>

RID

>__RID(table-designator)__________________________________________________>

RIGHT

>__RIGHT(string-expression,length)_______________________________________>
                                     ǀ_,_CODEUNITS16___ǀ
                                      ǀ_CODEUNITS32_ǀ
                                      ǀ_OCTETS______ǀ

ROUND

                               _,_0___________________
>__ROUND(numeric-expression1,_ǀ_______________________ǀ_)________________>
                              ǀ_,_numeric-expression2_ǀ

ROUND_TIMESTAMP

                                _,_’DD’_________
>__ROUND_TIMESTAMP(_expression_ǀ________________ǀ_)______________________>
                               ǀ_,format-string

ROWID

>__ROWID(expression)_____________________________________________________>

RPAD

>__RPAD(string-expression,integer____________)___________________________>
                                   ǀ_,_pad_ǀ

RTRIM

>__RTRIM(string-expression_______________________)_______________________>
                           ǀ_,_trim-expression_ǀ

SCORE

>__SCORE(column-name, search-argument, string-constant)__________________>

Search-argument-options:

      <______________________
>____________________________ǀ___________________________________________>
     ǀ_QUERYLANGUAGE = value_ǀ
     ǀ_RESULTLIMIT = value___ǀ
     ǀ            _OFF_      ǀ
     ǀ_SYNONYM = ǀ_ON__ǀ_____ǀ

SECOND

>__SECOND(expression)____________________________________________________>
                       ǀ_,integer-constant_ǀ

SIGN

>__SIGN(numeric-expression)______________________________________________>

SIN

>__SIN(numeric-expression)_______________________________________________>

SINH

>__SINH(numeric-expression)______________________________________________>

SMALLINT

>__SMALLINT(___numeric-expression___)____________________________________>
              ǀ_string-expression__ǀ

SOUNDEX

>__SOUNDEX(expression)___________________________________________________>

SOAPHTTPC and SOAPHTTPV

>__SOAPHTTPC___(endpoint_url, soap_action, soap_body)____________________>
  ǀ_SOAPHTTPV_ǀ

SPACE

>__SPACE(numeric-expression)_____________________________________________>

SQRT

>__SQRT(numeric-expression)______________________________________________>

STRIP

>__STRIP_(_string-expression___________________________________________)_>
                             ǀ___,BOTH_____________________________ǀ
                             ǀ_,B________ǀ  ǀ_,strip-character_ǀ
                             ǀ_,LEADING__ǀ
                             ǀ_,L________ǀ
                             ǀ_,TRAILING_ǀ
                             ǀ_,T________ǀ

SUBSTR

>__SUBSTR(string-expression,start______________)_________________________>
                                   ǀ_,length_ǀ

SUBSTRING

Character:

>_SUBSTRING(character-expression,start,___________,_CODEUNITS16____)_____>
                                       ǀ_,length_ǀ  ǀ_CODEUNITS32_ǀ
                                                    ǀ__OCTETS_____ǀ

Graphic:

>_SUBSTRING(graphic-expression,start,____________,_CODEUNITS16____)______>
                                    ǀ_,length_ǀ  ǀ_CODEUNITS32_ǀ

Binary:

>_SUBSTRING(binary-expression,start,_____________)_______________________>
                                   ǀ_,length_ǀ

TAN

>__TAN(numeric-expression)_______________________________________________>

TANH

>__TANH(numeric-expression)______________________________________________>

TIME

>__TIME(expression)______________________________________________________>

TIMESTAMP

>__TIMESTAMP(expression)_________________)_______________________________>
                         ǀ_,expression_ǀ

TIMESTAMPADD

>__TIMESTAMPADD(interval, number, expression)____________________________>

TIMESTAMP_FORMAT

>__TIMESTAMP_FORMAT(string-expression,format-string______________________>
    _,6________________________
>__ǀ___________________________ǀ______)__________________________________>
   ǀ_,_precision-constant______ǀ

TIMESTAMP_ISO

>_TIMESTAMP_ISO(expression)______________________________________________>

TIMESTAMPDIFF

>__TIMESTAMPDIFF(numeric-expression,string-expression)___________________>

TIMESTAMP_TZ

>_TIMESTAMP_TZ(expression1)______________________________________________>
                             ǀ_,expression2_ǀ

TO_CHAR

>__TO_CHAR(string-expression,format-string)______________________________>

TO_DATE

>__TO_DATE(string-expression,format-string)______________________________>
    _,6_______________________
>__ǀ__________________________ǀ_______)__________________________________>
   ǀ_,_precision-constant_____ǀ

TO_NUMBER

>_TO_NUMBER(string-expression)______________________)____________________>
                               ǀ_,_format string_ǀ

TOTALORDER

>__TOTALORDER(expression1, expression2)__________________________________>

TRANSLATE

>_TRANSLATE(expression_____________________________________________)_____>
             ǀ_,_to-string_______________________________________ǀ
                           ǀ                _,__’ ‘___________  ǀ
                           ǀ_,__from-string_ǀ__________________ǀ_ǀ
                                            ǀ_,__pad-character_ǀ

TRIM

>__TRIM_(_string-expression____________________________________________)_>
                             ǀ___,BOTH__________________________FROM_ǀ
                               ǀ_,B________ǀ  ǀ_,trim-constant_ǀ
                               ǀ_,LEADING__ǀ
                               ǀ_,L________ǀ
                               ǀ_,TRAILING_ǀ
                               ǀ_,T________ǀ

TRIM_ARRAY

>______TRIM_ARRAY___(array-expression, numeric-expression_)_____________>
    ǀ_ARRAY_TRIM__ǀ

TRUNCATE or TRUNC

                                  _,_0___________________
>__TRUNCATE_(numeric-expression1_ǀ_______________________ǀ_)____________>
 ǀ__TRUNC__ǀ                     ǀ_,numeric expression2__ǀ

TRUNC TIMESTAMP

                                 _’DD’___________
>__TRUNC_TIMESTAMP_(expression1_ǀ________________ǀ_)____________________>
                                ǀ_,format-string_ǀ

UCASE

>____UCASE___(string-expression_________________________________)_______>
                                ǀ_,_locale-name_ǀ ǀ_,-integer_ǀ

UNICODE

>____UNICODE___(string-expression)______________________________________>

UNICODE_STR

                                      _,UTF-8_
>____UNICODE_STR_(string-expression)_ǀ________ǀ_)________________________>
                                     ǀ_,UTF16_ǀ

UPPER

>____UPPER___(string-expression_________________________________)________>
                                ǀ_,_locale-name_ǀ ǀ_,_integer_ǀ

VALUE

                       <____________
>____VALUE_(expression_, expression_ǀ_)__________________________________>

VARBINARY

>__VARCHAR(string-expression______________)______________________________>
                            ǀ_,__integer_ǀ

VARCHAR

Varchar to Character:

>__VARCHAR(character-expression_______________________________)__________>
                               ǀ_,_integer_________________ǀ
                                          ǀ_,_CODEUNITS16_ǀ
                                            ǀ_CODEUNITS32_ǀ
                                            ǀ_Octets_ǀ

Graphic to Varchar:

>__VARCHAR(graphic-expression___________________________________)__________>
                               ǀ_,_integer__________________ǀ
                                          ǀ_,_CODEUNITS16_ǀ
                                            ǀ_CODEUNITS32_ǀ

Datetime to Varchar:

>__VARCHAR(datetime-expression)____________________________________________>

Integer to Varchar:

>__VARCHAR(integer-expression)_____________________________________________>

Decimal to Varchar:

>__VARCHAR(decimal-expression)_____________________________)_______________>
                                 ǀ_,__decimal-character_ǀ

Decimal floating-Point to Varchar:

>__VARCHAR(decimal-floating-point-expression)______________________________>

Floating-Point to Varchar:

>__VARCHAR(floating-point-expression)______________________________________>

Row ID to Varchar:

>__VARCHAR(row-ID-expression)______________________________________________>

VARCHAR_BIT_FORMAT

>__VARCHAR_BIT_FORMAT(expression,format-string)____________________________>

VARCHAR9

>__VARCHAR9(decimal-expression__________________________________)__________>
                               ǀ_,_decimal-character_____ǀ

VARCHAR_FORMAT

Character to VARCHAR:

>__VARCHAR_FORMAT(character-expression)____________________________________>

Timestamp to VARCHAR:

>__VARCHAR_FORMAT(timestamp-expression,format-string)______________________>

Decimal floating-point to VARCHAR:

>__VARCHAR_FORMAT(decimal-floating-point-expression,format-string)_________>

 VARGRAPHIC

Character to Vargraphic:

   >__VARGRAPHIC(character-expression____________________________)________>
                                        ǀ_,_integer____________ǀ
                                           ǀ_,_CODEUNITS16__ǀ
                                            ǀ__CODEUNITS32_ǀ

Graphic to Vargraphic:

   >__VARGRAPHIC(graphic-expression_____________________________)_________>
                                        ǀ_,_integer____________ǀ
                                           ǀ_,_CODEUNITS16__ǀ
                                            ǀ__CODEUNITS32_ǀ

VERIFY_GROUP_FOR_USER

                                                     <_,_________
>__VERIFY_GROUP_FOR_USER_(_SESSION_USER__,_group-name-expression_ǀ_)______>
                          ǀ_USER_______ǀ

VERIFY_ROLE_FOR_USER

                                                    <_,________
>__VERIFY_ROLE_FOR_USER_(_SESSION_ROLE__,_role-name-expression_ǀ_)________>
                          ǀ_USER_______ǀ

WEEK

>__WEEK(expression)_______________________________________________________>

WEEK_ISO

>__WEEK_ISO(expression)___________________________________________________>

WRAP

>__WRAP(object-definition-string)_________________________________________>

XMLATTRIBUTES

                  <_,______________________________________________
>__XMLATTRIBUTES(_attribute-value-expression________________________ǀ_____>
                                               ǀ_AS_attribute-name_ǀ

XMLCOMMENT

>__XML2COMMENT(string-expression)_________________________________________>

XMLCONCAT

                                <_________________
>__XMLCONCAT(XML-expression_____,__XML-expression_ǀ_)_____________________>

XMLDOCUMENT

>__XMLDOCUMENT(XML-expression)____________________________________________>

XMLELEMENT

>__XMLELEMENT(_NAME__ element-name________________________________________>
                                   ǀ_,_xmlnamespace-declaration_ǀ
                                  <_______________________________
>_________________________________________________________________ǀ_______>
   ǀ,_XML-attributes-function_ǀ    ǀ_,_element-content-expression_ǀ
>_________________________________________________________________________>
   ǀ                                                ǀ
   ǀ         <___________________________________   ǀ
   ǀ           _EMPTY ON NULL_                   ǀ  ǀ
   ǀ_OPTION___ǀ_NULL ON NULL__ǀ_________________ ǀ__ǀ
            ǀ              _USING_              ǀ
            ǀ__XMLBINARY__ǀ_______ǀ_BASE64______ǀ
            ǀ |            _USING_            | ǀ
            ǀ |_XMLBINARY_|      |_HEX________|_ǀ

XMLFOREST

>_XMLFOREST(_ ___________________________________________________________>
             ǀ_XMLnamespace-function_,_ǀ
  <__,____________________________________________
>_ element-content-expression_____________________ǀ______________________>
                             ǀ_AS_element-name_ǀ
>________________________________________________________________________>
    ǀ         <__________________________________     ǀ
    ǀ             _EMPTY ON NULL_                ǀ    ǀ
    ǀ_OPTION_____ǀ_NULL ON NULL__ǀ______________ ǀ____ǀ
              ǀ              _USING_           ǀ
              ǀ _XMLBINARY__ǀ______ǀ_BASE64__  ǀ
              ǀǀ             _USING_         ǀ ǀ
              ǀǀ_XMLBINARY__ǀ______ǀ_HEX_____ǀ_ǀ

XMLMODIFY

>__XMLMODIFY(__xquery-update-constant_____________________________)______>
               ǀ    <_________________________________________  ǀ
               ǀ_,___xquery-variable-expression_AS_identifier ǀ_ǀ

XMLNAMESPACE

                 <_,__________________________________
>__XMLNAMESPACES(__namespace-uri_AS_namespace-prefix__ǀ_)________________>
                  ǀ_DEFAULT_XML-namespace-uri________ǀ
                     ǀ_NO DEFAULT_____________ǀ

XMLPARSE

                                         _STRIP WHITESPACE_______
>_XMLPARSE(DOCUMENT_string-expression___ǀ________________________ǀ_)_____>
                   ǀ_XML-host-variable_ǀ  ǀ_PRESERVE WHITESPACE_ǀ

XMLPI

>_XMLPI(NAME_pi-name________________________________)____________________>
                       ǀ_,_string-expression_ǀ

XMLQUERY

>_XMLQUERY(xquery-expression-constant)____________________________________>
                                      ǀ         _BY REF_                 ǀ
                                      ǀ_PASSING_ǀ_______ǀ_xquery-argument_ǀ
                        _BY REF_
   _RETURNING SEQUENCE_ǀ________ǀ_   _EMPTY ON EMPTY_
>_ǀ_______________________________ǀ_ǀ________________ǀ__)_________________>

Xquery-argument:

>____xquery-context-item-expression_______________________________________>
   ǀ_xquery-variable-expression AS identifier__ǀ

XMLSERIALIZE

                 _CONTENT_
>_XMLSERIALIZE(_ǀ_________ǀ_XML-expression AS data-type___________________>
   <_____________________________________
    _VERSION__’1.0’__________________    ǀ
>__ǀ_________________________________ǀ___ǀ________________________________>
   ǀ  _EXCLUDING XMLDECLARATION__    ǀ
   ǀ_ǀ_INCLUDING XMLDECLARATION__ǀ___ǀ

data-type:

                                        _(_1M_)___________
>______CHARACTER______LARGE OBJECT_____ǀ__________________ǀ_______________>
 ǀ ǀ ǀ_CHAR_______ǀ               ǀ ǀ ǀ_(__integer_____)_ǀ
 ǀ ǀ_CLOB_________________________ǀ ǀ             ǀ_K_ǀ
 ǀ_DCLOB____________________________ǀ             ǀ_M_ǀ
 ǀ__BINARY LARGE OBJECT_____________ǀ             ǀ_G_ǀ
 ǀ_BLOB________________ǀ

XMLTEXT

>_XMLTEXT(_string-expression______________________)_______________________>

XMLXSROBJECTID

>_XMLXSROBJECTID(_xml-value-expression __)________________________________>

XSLTRANSFORM

>_XSLTRANSFORM(_xml-document, xsl-stylesheet, xsl-parameters)_____________>

YEAR

>_YEAR(expression)________________________________________________________>

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
SQL Error Return Codes in Db2 12 https://www.bmc.com/blogs/db2-sql-error-return-codes/ Mon, 01 Apr 2019 20:41:38 +0000 http://s27433.p402.sites.pressdns.com/?p=13273 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) -007 STATEMENT CONTAINS THE ILLEGAL CHARACTER character -010 THE STRING CONSTANT BEGINNING string IS NOT TERMINATED -011 COMMENT NOT CLOSED -029 INTO CLAUSE REQUIRED -051 Identifier-name (sqltype) WAS PREVIOUSLY DECLARED OR REFERENCED -056 AN SQLSTATE OR SQLCODE VARIABLE DECLARATION IS IN […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

-007 STATEMENT CONTAINS THE ILLEGAL CHARACTER character
-010 THE STRING CONSTANT BEGINNING string IS NOT TERMINATED
-011 COMMENT NOT CLOSED
-029 INTO CLAUSE REQUIRED
-051 Identifier-name (sqltype) WAS PREVIOUSLY DECLARED OR REFERENCED
-056 AN SQLSTATE OR SQLCODE VARIABLE DECLARATION IS IN A NESTED COMPOUND STATEMENT
-057 THE RETURN STATEMENT IS AN SQL FUNCTION MUST RETURN A VALUE
-058 VALUE SPECIFIED ON RETURN STATEMENT MUST BE AN INTEGER
-060 INVALID type SPECIFICATION: spec
-078 PARAMETER NAMES MUST BE SPECIFIED FOR ROUTINE routine-name
-079 QUALIFIER FOR OBJECT name WAS SPECIFIED AS qualifier1 but qualifier2 IS REQUIRED
-084 UNACCEPTABLE SQL STATEMENT
-087 A NULL VALUE WAS SPECIFIED IN A CONTEXT WHERE A NULL IS NOT ALLOWED
-096 VARIABLE variable-name DOES NOT EXIST OR IS NOT SUPPORTED BY THE SERVER AND A DEFAULT VALUE WAS NOT PROVIDED
-097 THE USE OF LONG VARCHAR OR LONG VARGRAPHIC IS NOT ALLOWED IN THIS CONTEXT
-101 THE STATEMENT IS TOO LONG OR TOO COMPLEX
-102 LITERAL STRING IS LOO LONG, STRING BEGINS string
-103 Constant IS AN INVALID NUMERIC CONSTANT
-104 ILLEGAL SYMBOL ‘token’. SOME SYMBOLS THAT MIGHT BE LEGAL ARE: token-list
-105 INVALID STRING
-107 THE NAME name IS TOO LONG. MAXIMUM ALLOWABLE SIZE IS
-108 THE NAME name IS QUALIFIED INCORRECTLY
-109 Clause CLAUSE IS NOT PERMITTED
-110 INVALID HEXADECIMAL LITERAL BEGINNING string
-111 AN AGGREGATE FUNCTION DOES NOT INCLUDE A COLUMN NAME
-112 THE OPERAND OF AN AGGREGATE FUNCTION INCLUDES AN AGGREGATE FUNCTION, AND OLAP SPECIFICATION, OR SCALAR FULLSELECT
-113 INVALID CHARACTER FOUND IN  string, REASON CODE nnn
-114 THE LOCATION NAME location DOES NOT MATCH THE CURRENT SERVER
-115 A PREDICATE IS INVALID BECAUSE THE COMPARISON OPERATOR operator IS FOLLOWED BY A PARENTHESIZED LIST OR BY ANY OR ALL WITHOUT A SUBQUERY
-117 THE NUMBER OF VALUES ASSIGNED IS NOT THE SAME AS THE NUMBER OF SPECIFIED OR IMPLIED COLUMNS
-118 THE OBJECT TABLE OR VIEW OF THE DELETE OR UPDATE STATEMENT IS ALSO IDENTIFIED IN A FROM CLAUSE
-119 A COLUMN OR EXPRESSION IN A HAVING CLAUSE IS NOT VALID
-120 AN AGGREGATE FUNCTION OR OLAP SPECIFICATION IS NOT VALID IN THE CONTEXT IN WHICH IS INVOKED
-121 THE COLUMN name IS IDENTIFIED MORE THAN ONCE IN THE INSERT OR UPDATE OR SET TRANSITION VARIABLE STATEMENT
-122 COLUMN OR EXPRESSION IN THE SELECT LIST IS NOT VALID
-123 THE PARAMETER IN POSITION n IN THE FUNCTION name MUST BE A CONSTANT OR KEYWORD
-125 AN INTEGER IN THE ORDER BY CLAUSE DOES NOT IDENFITY A COLUMN OF THE RESULT
-126 THE SELECT STATEMENT CONTAINS BOTH AN UPDATE CLAUSE AND AN ORDER BY CLAUSE
-127 DISTINCT IS SPECIFIED MORE THAN ONCE IN A SUBSELECT
-128 INVALID USE OF NULL IN A PREDICATE
-129 THE STATEMENT CONTAINS TOO MANY TABLE NAMES
-130 THE ESCAPE CLAUSE CONSISTS OF MORE THAN ONE CHARACTER, OR THE STRING PATTERN CONTAINS AN INVALID OCCURRENCE OF THE ESCAPE CHARACTER
-131 STATEMENT WITH LIKE PREDICATE HAS INCOMPATIBLE DATA TYPES
-132 AN OPERAND OF value IS NOT VALID
-133 AN AGGREGATE FUNCTION IN A SUBQUERY OF HAVING A CLAUSE IS INVALID BECAUSE ALL COLUMN REFERENCES IN ITS ARGUMENT ARE NOT CORRELATED TO THE GROUP BY RESULT THAT THE HAVING CLAUSE IS APPLIED TO
-134 IMPROPER USE OF STRING, LOB, XML, OR ARRAY VALUE
-136 SORT CANNOT BE EXECUTED BECAUSE THE SORT KEY LENGTH IS TOO LONG
-137 THE LENGTH RESULTING FROM operation IS GREATER THAN maximum-length
-138 THE SECOND OR THIRD ARGUMENT OF THE SUBSTRI OR SUBSTRING FUNCTION IS OUT OF RANGE
-142 THE SQL STATEMENT IS NOT SUPPORTED
-144 INVALID SECTION NUMBER number
-147 ALTER FUNCTION function-name FAILED BECAUSE SOURCE FUNCTIONS OR NOT FENCED EXTERNAL FUNCTION CANNOT BE ALTERED
-148 THE SOURCE TABLE source-name CANNOT BE RENAMED OR ALTERED, REASON reason-code
-150 THE OBJECT OF THE INSERT, DELETE, UPDATE, MERGE, OR TRUNCATE STATEMENT IS A VIEW, SYSTEM-MAINTAINED MATERIALIZED QUERY TABLE, OR TRANSITION TABLE FOR WHICH THE REQUESTED OPERATION IS NOT PERMITTED
-151 THE UPDATE OPERATION IS INVALID BECAUSE THE CATALOG DESCRIPTION OF COLUMN column-name INDICATES THAT IT CANNOT BE UPDATED
-152 THE DROP clause CLAUSE IN THE ALTER STATEMENT IS INVALID BECAUSE constraint-name IS A constraint-type
-153 THE STATEMENT IS INVALID BECAUSE THE VIEW OR TABLE DEFINITION DOES NOT INCLUDE A UNIQUE NAME FOR EACH COLUMN
-154 THE STATEMENT FAILED BECAUSE VIEW OR TABLE DEFINITION IS NOT VALID
-156 THE STATEMENT DOES NOT IDENTIFY A TABLE
-157 ONLY A TABLE NAME CAN BE SPECIFIED IN A FOREIGN KEY CLAUSE. object-name IS NOT THE NAME OF A TABLE
-158 THE NUMBER OF COLUMNS SPECIFIED FOR name IS NOT THE SAME AS THE NUMBER OF COLUMNS IN THE RESULT TABLE
-159 THE STATEMENT REFERENCES object-name WHICH IDENTIFIES AN object-type RATHER THAN AN expected-object-type
-160 THE WITH CHECK OPTION CANNOT BE USED FOR THE SPECIFIED VIEW
-161 THE INSERT OR UPDATE IS NOT ALLOWED BECAUSE A RESULTING ROW DOES NOT SATISFY THE VIEW DEFINITION
-164 auth-id1 DOES NOT HAVE THE PRIVILEGE TO CREATE A VIEW WITH QUALIFICATION authorization ID
-170 THE NUMBER OF ARGUMENTS SPECIFIED FOR function-name IS INVALID
-171 THE DATA TYPE, LENGTH, OR VALUE OF ARGUMENT nn OF ARGUMENT nn OR function-name IS INVALID
-173 UR IS SPECIFIED ON THE WITH CLAUSE BUT THE CURSOR IS NOT READ-ONLY
-180 THE DATE, TIME, OR TIMESTAMP VALUE value is INVALID
-181 THE STRING REPRESENTATION OF A DATETIME VALUE IS NOT A VALID DATETIME VALUE
-182 AN ARITHMETIC EXPRESSION WITH A DATETIME VALUE IS INVALID
-183 AN ARITHMETIC EXPRESSION ON A DATE OR TIMESTAMP HAS A RESULT THAT IS NOT WITHIN THE VALID RANGE OF DATES
-184 AN ARITHMETIC EXPRESSION WITH A DATETIME VALUE CONTAINS A PARAMETER MARKER
-185 THE LOCAL FORMAT OPTION HAS BEEN USED WITH A DATE OR TIME AND NO LOCAL EXIT HAS BEEN INSTALLED
-186 THE LOCAL DATE LENGTH OR LOCAL TIME LENGTH HAS BEEN INCREASED AND EXECUTING PROGRAM RELIED ON THE OLD LENGTH
-187 A REFERENCE TO A CURRENT DATE/TIME SPECIAL REGISTER IS INVALID BECAUSE THE MVS TOD CLOCK IS BAD OR THE MVS PARMTZ IS OUT OF RANGE
-188 THE STRING REPRESENTATION OF A NAME IS INVALID
-189 CCSID ccsid IS INVALID
-190 THE ATTRIBUTES SPECIFIED FOR THE COLUMN table-name.column-name ARE NOT COMPATIBLE WITH THE EXISTING COLUMN DEFINITION
-191 A STRING CANNOT BE USED BECAUSE IT IS INVALID MIXED DATA
-195 LAST COLUMN OF table-name CANNOT BE DROPPED
-197 QUALIFIED COLUMN NAMES IN ORDER BY CLAUSE NOT PERMITTED WHEN UNION OR UNION ALL SPECIFIED
-198 THE OPERAND OF THE PREPARE OR EXECUTE IMMEDIATE STATEMENT IS BLANK OR EMPTY
-199 ILLEGAL USE OF KEYWORD keyword TOKEN token-list WAS EXPECTED
-203 A REFERENCE TO COLUMN column-name IS AMBIGUOUS
-204 name IS AN UNDEFINED NAME
-205 column-name IS NOT A COLUMN OF TABLE table-name
-206 name IS NOT VALID IN THE CONTEXT WHERE IT IS USED
-208 THE ORDER BY CLAUSE IS INVALID BECAUSE COLUMN name IS NOT, PART OF THE RESUT TABLE
-212 name IS SPECIFIED MORE THAN ONCE IN THE REFERENCING CLAUSE OF A TRIGGER DEFINITION
-214 AN EXPRESSION IN THE FOLLOWING POSITION, OR STARTING WITH position-or-expression-start IN THE clause-type CLAUSE IS NOT VALID. REASON CODE = reason-code
-216 THE NUMBER OF ELEMENTS ON EACH SIDE OF A PREDICATE OPERATOR DOES NOT MATCH. PREDICATE OPERATOR IS operator
-219 THE REQUIRED EXPLANATION TABLE table-name DOES NOT EXIST
-220 THE COLUMN column-name IN EXPLANATION TABLE table-name IS NOT DEFINED PROPERLY
-221 ‘SET OF OPTIONAL COLUMNS’ IN EXPLANATION TABLE table-name IS INCOMPLETE OPTIONAL COLUMN column-name IS MISSING
-222 AN UPDATE OR DELETE OPERATION WAS ATTEMPTED AGAINST A HOLE USING CURSOR cursor-name
-224 THE RESULT TABLE DOES NOT AGREE WITH THE BASE TABLE USING cursor-name
-225 FETCH STATEMENT FOR cursor-name IS NOT VALID FOR THE DECLARATION OF THE CURSOR
-227 FETCH fetch-orientatin IS NOT ALLOWED, BECAUSE CURSOR cursor-name HAS AN UNKNOWN POSITION (sqlcode,sqlstate)
-228 FOR UPDATE CLAUSE SPECIFIED FOR READ-ONLY CURSOR cursor-name
-229 THE LOCALE locale SPECIFIED IN A SET LOCALE OR OTHER STATEMENT THAT IS LOCALE SENSITIVE WAS NOT FOUND
-240 THE PARTITION CLAUSE OF A LOCK TABLE STATEMENT IS INVALID
-242 THE OBJECT NAMED object-name OF TYPE object-type WAS SPECIFIED MORE THAN ONCE IN THE LIST OF OBJECTS, OR THE NAME IS THE SAME AS AN EXISTING OBJECT
-243 SENSITIVE CURSOR cursor-name CANNOT BE DEFINED FOR THE SPECIFIED SELECT STATEMENT
-244 SENSITIVITY sensitivity SPECIFIED ON THE FETCH IS NOT VALID FOR CURSOR cursor-name
-245 THE INVOCATION OF FUNCTION routine-name IS AMBIGUOUS
-246 STATEMENT USING CURSOR cursor-name SPECIFIED NUMBER OF ROWS num-rows WHICH IS NOT VALID WITH dimension
-247 A HOLE WAS DETECTED ON A MULTIPLE ROW FETCH STATEMENT USING CURSOR cursor-name, BUT INDICATOR VARIABLES WERE NOT PROVIDED TO DETECT THE CONDITION
-248 A POSITIONED DELETE OR UPDATE STATEMENT FOR CURSOR cursor-name SPECIFIED ROW n OF A ROWSET, BUT THE ROW IS NOT CONTAINED WITHIN THE CURRENT ROWSET
-249 DEFINITION OF ROWSET ACCESS FOR CURSOR cursor-name IS INCONSISTENT WITH THE FETCH ORIENTATION CLAUSE clause SPECIFIED
-250 THE LOCAL LOCATION NAME IS NOT DEFINED WHEN PROCESSING A THREE-PART OBJECT NAME
-251 TOKEN name IS NOT VALID
-253 A NON-ATOMIC statement STATEMENT SUCCESSFULLY COMPLETED FOR SOME OF THE REQUESTED ROWS, POSSIBLY WITH WARNINGS, AND ONE OR MORE ERRORS
-254 A NON-ATOMIC statement STATEMENT ATTEMPTED TO PROCESS MULTIPLES ROWS OF DATA, BUT ERRORS OCCURRED
-270 FUNCTION NOT SUPPORTED
-300 THE STRING CONTAINED IN HOST VARIABLE OR PARAMETER position-number IS NOT NUL-TERMINATED
-301 THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER position-number CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA TYPE
-302 THE VALUE OF INPUT VARIABLE OR PARAMETER NUMBER position-number IS INVALID OR TOO LARGE FOR THE TARGET COLUMN OR THE TARGET VALUE
-303 A VALUE CANNOT BE ASSIGNED TO OUTPUT HOST VARIABLE NUMBER position-number BECAUSE THE DATA TYPES ARE NOT COMPARABLE
-304 A VALUE WITH DATA TYPE data-type1 CANNOT BE ASSIGNED TO A HOST VARIABLE BECAUSE THE VALUE IS NOT WITHIN THE RANGE OF THE HOST VARIABLE IN POSTION position-number WITH DATA TYPE data-type2
-305 THE NULL VALUE CANNOT BE ASSIGNED TO OUTPUT HOST VARIABLE NUMBER position-number BECAUSE NO INDICATOR VARIABLE IS SPECIFIED
-309 A PREDICATE IS INVALID BECAUSE A REFERENCED HOST VARIABLE HAS THE NULL VALUE
-310 DECIMAL HOST VARIABLE OR PARAMETER number CONTAINS NON-DECIMAL DATA
-311 THE LENGTH OF INPUT HOST VARIABLE NUMBER position-number IS NEGATIVE OR GREATER THAN THE MAXIMUM
-312 VARIABLE variable-name IS NOT DEFINED OR NOT USABLE
-313 THE NUMBER OF HOST VARIABLES SPECIFIED IS NOT EQUAL TO THE NUMBER OF PARAMETER MARKERS
-314 THE STATEMENT CONTAINS AN AMBIGUOUS HOST VARIABLE REFERENCE
-327 THE ROW CANNOT BE INSERTED BECAUSE IT IS OUTSIDE THE BOUND OF THE PARTITION RANGE FOR THE LAST PARTITION
-330 A STRING CANNOT BE USED BECAUSE IT CANNOT BE PROCESSED, REASON reason-code, CHARACTER code-point, HOST VARIABLE position-nuumber
-331 CHARACTER CONVERSION CANNOT BE PERFORMED BECAUSE A STRING, POSITION position-number, CANNOT BE CONVERTED FROM source-ccsid TO target-ccsid, REASON reason-code
-332 CHARACTER CONVERSION BETWEEN CCSID from-ccsid TO to-ccsid, REASON reason-code
-333 THE SUBTYPE OF A STRING VARIABLE IS NOT THE SAME AS THE SUBTYPE KNOWN AT BIND TIME AND THE DIFFERENCE CANNOT BE RESOLVED BY CHARACTER CONVERSION
-336 THE SCALE OF THE DECIMAL NUMBER MUST BE ZERO
-338 AN ON CLAUSE IS INVALID
-340 THE COMMON TABLE EXPRESSION name HAS THE SAME IDENTIFIER AS ANOTHER OCCURRENCE OF A COMMON TABLE EXPRESSION DEFINITION WITHIN THE SAME STATEMENT
-341 A CYCLIC REFERENCE EXISTS BETWEEN THE COMMON TABLE EXPRESSIONS name1 AND name2
-342 THE COMMON TABLE EXPRESSION name MUST NOT USE SELECT DISTINCT AND MUST USE UNION ALL BECAUSE IT IS RECURSIVE
-343 THE COLUMN NAMES ARE REQUIRED FOR THE RECURSIVE COMMON TABLE EXPRESSION name
-344 THE RECURSIVE COMMON TABLE EXPRESSION name HAS MISMATCHED DATA TYPES OR LENGTHS OR CODE PAGE FOR COLUMN column-name
-345 THE FULLSELECT OF THE RECURSIVE COMMON TABLE EXPRESSION name MUST BE A UNION ALL AND MUST NOT INCLUDE AGGREGATE FUNCTIONS, GROUP BY, HAVING, ORDER BY, OFFSET, FETCH FIRST, OR AN EXPLICIT JOIN INCLUDING AN ON CLAUSE
-346 AN INVALID REFERENCE TO COMMON TABLE EXPRESSION name OCCURS IN THE FIRST FULL SELECT, AS A SECOND OCCURRENCE IN THE SAME FROM CLOSE, OR IN THE FROM CLAUSE OF A SUBQUERY
-348 Sequence-expression CANNOT BE SPECIFIED IN THIS CONTEXT
-350 column-name WAS IMPLICITLY OR EXPLICITLY REFERENCED IN A CONTEXT IN WHICH IT CANNOT BE USED
-351 AN UNSUPPORTED SQL TYPE WAS ENCOUNTERED IN POSITION position-number OF THE SELECT-LIST
-352 AN UNSUPPORTED SQL TYPE WAS ENCOUNTERED IN POSITION position-number OF THE INPUT-LIST
-353 FETCH IS NOT ALLOWED BECAUSE CURSOR cursor-name HAS AN UNKNOWN POSITION
-354 A ROWSET FETCH STATEMENT MAY HAVE RETURNED ONE OR MORE ROWS OF DATA. HOWEVER, ONE OR MORE NON-TERMINATING ERROR CONDITIONS WERE ENCOUNTERED. USE THE GATE DIAGNOSTICS STATEMENT FOR MORE INFORMATION REGARDING THE CONDITIONS THAT WERE ENCOUNTERED
-355 A LOB COLUMN IS TOO LARGE TO BE LOGGED
-356 COLUMN OR KEY EXPRESSION expression-number IS NOT VALID, REASON CODE = reason-code
-359 THE RANGE OF VALUES FOR THE IDENTITY COLUMN IS EXHAUSTED
-363 THE EXTENDED INDICATOR VARIABLE VALUE FOR PARAMETER position-number IS OUT OF RANGE
-365 USE OF THE VALUE OF EXTENDED INDICATOR VARIABLE AND POSITION value-position IS NOT VALID
-372 ONLY ONE ROWID, IDENTITY, ROW CHANGE TIMESTAMP, ROW BEGIN, ROW END, TRANSACTION START ID, OR SECURITY LABEL COLUMN IS ALLOWED IN THE TABLE
-373 DEFAULT CANNOT BE SPECIFIED FOR COLUMN OR SQL VARIABLE name
-374 THE CLAUSE clause HAS NOT BEEN SPECIFIED IN THE CREATe OR ALTER FUNCTION STATEMENT FOR LANGUAGE SQL FUNCTION function-name BUT AN EXAMINATION OF THE FUNCTION BODY REVEALS THAT IT SHOULD BE SPECIFIED
-390 THE FUNCTION function-name SPECIFIC NAME specific-name IS NOT VALID IN THE CONTEXT WHERE IT IS USED
-392 SQLDA PROVIDED FOR CURSOR cursor HAS BEEN CHANGED FROM THE PREVIOUS FETCH
-393 THE CONDITION OR CONNECTION NUMBER IS INVALID
-396 Object-type object-name ATTEMPTED TO EXECUTE AN SQL STATEMENT DURING FINAL CALL PROCESSING
-397 GENERATED IS SPECIFIED AS PART OF A COLUMN DEFINITION, BUT IT IS NOT VALID FOR THE DEFINITION OF THE COLUMN
-398 A LOCATER WAS REQUESTED FOR HOST VARIABLE NUMBER position-number FOR THE VARIABLE IS NOT A LOB
-399 INVALID VALUE ROWID WAS SPECIFIED
-400 THE CATALOGUE HAS THE MAXIMUM NUMBER OF USER DEFINED INDEXES
-401 THE OPERANDS OF AN ARITHMETIC OR COMPARISON OPERATION ARE NOT COMPARABLE
-402 AN ARITHMETIC FUNCTION OR OPERATOR arith-fop IS APPLIED TO CHARACTER OR DATETIME DATA
-404 THE SQL STATEMENT SPECIFIES A STRING THAT IS TOO LONG
-405 THE NUMERIC LITERAL literal CANNOT BE USED AS SPECIFIED BECAUSE IT IS OUT OF RANGE
-406 A CALCULATED OR DERIVED NUMERIC VALUE IS NOT WITHIN THE RANGE OF ITS OBJECT COLUMN
-407 AN UPDATE, INSERT, OR SET VALUE WAS NULL, BUT THE OBJECT COLUMN column-name CANNOT CONTAIN NULL VALUES
-408 THE VALUE IS NOT COMPATIBLE WITH THE DATA TYPE OF THE TARGET. TARGET NAME IS name
-409 INVALID OPERAND OF A COUNT FUNCTION
-410 A NUMERIC VALUE value IS TOO LONG, ORIT HAS A VALUE THAT IS NOT WITHIN THE RANGE OF ITS DATA TYPE
-411 CURRENT SQLID CANNOT BE USED IN A STATEMENT THAT REFERENCES REMOTE OBJECTS
-412 THE SELECT CLAUSE OF A SUBQUERY SPECIFIES MULTIPLE COLUMNS
-413 OVERFLOW OR UNDERFLOW OCCURRED DURING NUMERIC DATA TYPE CONVERSION
-414 A LIKE PREDICATE IS INVALID BECAUSE THE FIRST OPERAND IS NOT A STRING
-415 THE CORRESPONDING COLUMNS, column-number, OF THE OPERANDS OF A SET OPERATOR ARE NOT COMPATIBLE
-416 AN OPERAND OF A UNION CONTAINS A LONG STRING COLUMN
-417 A STATEMENT STRING TO BE PREPARED INCLUDES PARAMETER MARKERS AS THE OPERANDS OF THE SAME OPERATOR
-418 A STATEMENT STRING TO BE PREPARED CONTAINS AN INVALID USE OF PARAMETER MARKERS
-419 THE DECIMAL DIVIDE OPERATION IS INVALID BECAUSE THE RESULT WOULD HAVE A NEGATIVE SCALE
-420 THE VALUE OF A CHARACTER STRING ARGUMENT WAS NOT ACCEPTABLE TO THE function-name FUNCTION
-421 THE OPERANDS OF A UNION OR UNION ALL DO NOT HAVE THE SAME NUMBER OF COLUMNS
-423 INVALID VALUE FOR LOCATOR IN POSITION position-#
-426 DYNAMIC COMMIT NOT VALID AT AN APPLICATION SERVER WHERE UPDATES ARE NOT ALLOWED
-427 DYNAMIC ROLLBACK NOT VALID AT AN APPLICATION SERVER WHERE UPDATES ARE NOT ALLOWED
-430 routine-type routine-name (SPECIFIC NAME specific-name) HAS ABNORMALLY TERMINATED
-431 ROUTINE routine-name (SPECIFIC NAME specific-name) OF TYPE routine-type HAS BEEN INTERRUPTED BY USER
-433 VALUE value IS TOO LONG
-435 AN INVALID SQLSTATE sqlstate IS SPECIFIED IN A RAISE_ERROR FUNCTION, RESIGNAL STATEMENT, OR SIGNAL STATEMENT
-438 APPLICATION RAISED ERROR WITH DIAGNOSTIC TEXT: text
-440 NO routine-type BY THE NAME routine-name HAVING COMPATIBLE ARGUMENTS WAS FOUND IN THE CURRENT PATH
-441 INVALID USE OF ‘DISTINCT’ OR ‘ALL’ WITH FUNCTION function-name
-443 ROUTINE routine-name (SPECIFIC NAME specific-name) HAS RETURNED AN ERROR SQLSTATE WITH DIAGNOSTIC TEXT msg-txt
-444 USER PROGRAM name COULD NOT BE FOUND
-449 CREATE OR ALTER STATEMENT FOR FUNCTION AND PROCEDURE routine-name CONTAINS AN INVALID FORMAT OF THE EXTERNAL NAME CLAUSE OR IS MISSING THE EXTERNAL NAME CLAUSE
-450 USER-DEFINED FUNCTION OF STORED PROCEDURE name, PARAMETER NUMBER paranum, OVERLAYED STORAGE BEYOND ITS DECLARED LENGTH
-451 THE data-item DEFINITION IN THE CREATE OR ALTER STATEMENT FOR routine-name CONTAINS DATA TYPE type WHICH IS NOT SUPPORTED FOR THE TYPE AND LANGUAGE OF THE ROUTINE
-452 UNABLE TO ACCESS THE FILE REFERENCED BY HOST VARIABLE variable-position. REASON CODE: reason-code
-453 THERE IS A PROBLEM WITH THE RETURNS CLAUSE IN THE CREATE FUNCTION STATEMENT FOR function-name
-454 THE SIGNATURE PROVIDED IN THE CREATE FUNCTION STATEMENT FOR function-name MATCHES THE SIGNATURE OF SOME OTHER FUNCTION ALREADY EXISTING IN SCHEMA
-455 IN CREATE FUNCTION FOR function-name, THE SCHEMA NAME schema-name PROVIDED SPECIFIC NAME DOES NOT MATCH THE SCHEMA NAME schema-name2 OF THE FUNCTION
-456 IN CREATE FUNCTION FOR function-name, THE SPECIFIC NAME specific-name ALREADY EXISTS IN THE SCHEMA
-457 A FUNCTIONS OR DISTINCT TYPE CANNOT BE CALLED name SINCE IT IS RESERVED FOR SYSTEM USE
-458 IN A REFERENCE TO FUNCTION function-name BY SIGNATURE, A MATCHING FUNCTION COULD NOT BE FOUND
-461 A VALUE OF DATA TYPE source-data-type CANNOT BE CAST TO TYPE target-data-type
-469 SQL CALL STATEMENT MUST SPECIFY AN OUTPUT HOST VARIABLE FOR PARAMETER number
-470 SQL CALL STATEMENT SPECIFIED A NULL VALUE FOR INPUT PARAMETER number, BUT THE STORED PROCEDURE DOES NOT SUPPORT NULL VALUES
-471 INVOCATION OF FUNCTIONAL PROCEDURE name FAILED DUE TO REASON rc
-472 CURSOR cursor-name WAS LEFT OPEN BY EXTERNAL FUNCTION function-name (SPECIFIC NAME specific-name)
-473 A USER DEFINED DATA TYPE CANNOT BE CALLED THE SAME NAME AS A SYSTEM PREDEFINED TYPE (BUILT-IN TYPE)
-475 THE RESULT TYPE type-1 OF THE SOURCE FUNCTION CANNOT BE CAST TO THE RETURNS TYPE type-2 OF THE USER-DEFINED FUNCTION
-476 REFERENCE TO FUNCTION function-name WAS NAMED WITHOUT A SIGNATURE, BUT THE FUNCTION IS NOT UNIQUE WITHIN ITS SCHEMA
-478 ALTER, DROP OR REVOKE AFFECTING OBJECT TYPE object-type CANNOT BE PROCESSED BECAUSE OBJECT dependent-object OF TYPE dependent-type IS DEPENDENT ON IT
-480 THE PROCEDURE procedure-name HAS NOT YET BEEN CALLED
-481 THE GROUP BY CLAUSE CONTAINS element-1 NESTLED WITHIN element-2
-482 PROCEDURE procedure-name RETURNED NO LOCATORS
-483 IN CREATE FUNCTION FOR function-name STATEMENT, THE NUMBER OF PARAMETERS DOES NOT MATCH THE NUMBER OF PARAMETERS OF THE SOURCE FUNCTION
-487 Object-type object-name ATTEMPTED TO EXECUTE SQL STATEMENT WHEN THE DEFINITION OF THE FUNCTION OF PROCEDURE DID NOT SPECIFY THIS ACTION
-490 NUMBER number DIRECTLY SPECIFIED IN AN SQL STATEMENT IS OUTSIDE THE RANGE OF ALLOWABLE VALUES IN THIS CONTEXT (minval,maxval)
-491 CREATE STATEMENT FOR USER-DEFINED FUNCTION function-name MUST HAVE A RETURNS CLAUSE AND: THE EXTERNAL CLAUSE WITH OTHER REQUIRED KEYWORDS; THE RETURN STATEMENT AND PARAMETER NAMES; OR THE SOURCE CLAUSE
-492 THE CREATE FUNCTION FOR function-name HAS A PROBLEM WITH PARAMETER NUMBER number. IT MAY INVOLVE A MISMATCH WITH A SOURCE FUNCTION
-495 ESTIMATED PROCESSOR COST OF estimate-amount1 PROCESSOR SECONDS (estimate-amount2 SERVICE UNITS) IN COST CATEGORY cost-category EXCEEDS A RESOURCE LIMIT ERROR THRESHOLD OF limit-amount SERVICE UNITS
-496 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE IT REFERENCES A RESULT SET THAT WAS NOT CREATED BY THE CURRENT SERVER
-497 THE MAXIMUM LIMIT OF INTERNAL IDENTIFIERS HAS BEEN EXCEEDED FOR DATABASE
-499 CURSOR cursor-name HAS ALREADY BEEN ASSIGNED TO THIS OR ANOTHER RESULT SET FROM PROCEDURE procedure-name
-500 THE IDENTIFIED CURSOR WAS CLOSED WHEN THE CONNECTION WAS DESTROYED
-501 THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS NOT OPEN
-502 THE CURSOR IDENTIFIED IN AN OPEN STATEMENT IS ALREADY OPEN
-503 A COLUMN CANNOT BE UPDATED BECAUSE IT IS NOT IDENTIFIED IN THE UPDATE CLAUSE OF THE SELECT STATEMENT OF THE CURSOR
-504 THE CURSOR NAME cursor-name IS NOT DECLARED
-507 THE CURSOR IDENTIFIED IN THE UPDATE OR DELETE STATEMENT IS NOT OPEN
-508 THE CURSOR IDENTIFIED IN THE UPDATE OR DELETE STATEMENT IS NOT POSITIONED ON A ROW OR ROWSET THAT CAN BE UPDATED OR DELETED
-509 THE TABLE IDENTIFIED IN THE UPDATE OR DELETE STATEMENT IS NOT THE SAME TABLE DESIGNATED BY THE CURSOR
-510 THE TABLE DESIGNATED BY THE CURSOR OF THE UPDATE OR DELETE STATEMENT CANNOT BE MODIFIED
-511 THE FOR UPDATE CLAUSE CANNOT BE SPECIFIED BECAUSE THE TABLE DESIGNATED BY THE CURSOR CANNOT BE MODIFIED
-512 STATEMENT REFERENCE TO REMOTE OBJECT IS INVALID
-513 THE ALIAS alias-name MUST NOT BE DEFINED ON ANOTHER LOCAL OR REMOTE ALIAS
-514 THE CURSOR cursor-name IS NOT IN A PREPARED STATE
-516 THE DESCRIBE FOR STATIC STATEMENT NOT IDENTIFY A PREPARED STATEMENT
-517 CURSOR cursor-name CANNOT BE USED BECAUSE ITS STATEMENT NAME DOES NOT IDENTIFY A PREPARED SELECT STATEMENT
-518 THE EXECUTE STATEMENT DOES NOT IDENTIFY A VALID PREPARED STATEMENT
-519 THE PREPARE STATEMENT IDENTIFIES THE SELECT STATEMENT OF THE OPENED CURSOR cursor-name
-525 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE IT WAS AN ERROR AT BIND TIME FOR SECTION = sectno PACKAGE = pkgname CONSISTENCY TOKEN = X’contoken’
-526 THE REQUESTED OPERATION OR USAGE DOES NOT APPLY TO table-type TEMPORARY TABLE table-name
-530 THE INSERT OR UPDATE VALUE OF FOREIGN KEY constraint-name IS INVALID
-531 PARENT KEY IN A PARENT ROW CANNOT BE UPDATED BECAUSE IT HAS ONE OR MORE DEPENDENT ROWS IN RELATIONSHIP constraint-name
-532 THE RELATIONSHIP constraint-name RESTRICT THE DELETION OF ROW WITH RID X rid-number
-533 INVALID MULTIPLE-ROW INSERT
-534 THE PRIMARY KEY CANNOT BE UPDATED BECAUSE OF MULTIPLE-ROW UPDATE
-536 THE DELETE STATEMENT IS INVALID BECAUSE TABLE table-name CAN BE AFFECTED BY THE OPERATION
-537 THE PRIMARY KEY CLAUSE, A FOREIGN KEY CLAUSE, OR A UNIQUE CLAUSE IDENTIFIES COLUMN column-name MORE THAN ONCE
-538 FOREIGN KEY name DOES NOT CONFORM TO THE DESCRIPTION OF A PARENT KEY OF TABLE table name
-539 TABLE table-name DOES NOT HAVE A PRIMARY KEY
-540 THE DEFINITION OF TABLE table-name IS INCOMPLETE BECAUSE IT LACKS A PRIMARY INDEX OR A REQUIRED UNIQUE INDEX
-542 Column-name CANNOT BE A COLUMN OF A HASH KEY, PRIMARY KEY, A UNIQUE CONSTRAINT, OR A PARENT KEY BECAUSE IT CAN CONTAIN NULL VALUES
-543 A ROW IN A PARENT TABLE CANNOT BE DELETED BECAUSE THE CHECK CONSTRAINT check-constraint RESTRICTS THE DELETION
-544 THE CHECK CONSTRAINT SPECIFIED IN THE ALTER TABLE STATEMENT CANNOT BE ADDED BECAUSE AN EXISTING ROW VIOLATES THE CHECK CONSTRAINT
-545 THE REQUESTED OPERATION IS NOT ALLOWED BECAUSE A ROW DOES NOT SATISFY THE CHECK CONSTRAINT check-constraint
-546 THE CHECK CONSTRAINT constraint-name IS INVALID
-548 A CHECK CONSTRAINT THAT IS DEFINED WITH column-name IS INVALID
-549 THE statement STATEMENT IS NOT ALLOWED FOR object_type1 object_name BECAUSE THE BIND OPTION DYNAMICRULES(RUN) IS NOT IN EFFECT FOR object_type2
-551 auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name
-552 auth-id DOES NOT HAVE THE PRIVILEGE HOME OPERATION operation
-553 auth-id SPECIFIED IS NOT ONE OF THE VALID AUTHORIZATION IDS FOR REQUESTED OPERATION
-554 AN AUTHORIZATION ID CANNOT GRANT A PRIVILEGE TO ITSELF
-555 AN AUTHORIZATION ID CANNOT REVOKE A PRIVILEGE FROM ITSELF
-556 authid2 CANNOT HAVE THE privilege PRIVILEGE on_object REVOKED BY authid1 BECAUSE THE REVOKEE DOES NOT POSSESS THE PRIVILEGE OR THE REVOKER DID NOT MAKE THE GRANT
-557 INCONSISTENT GRANT/REVOKE KEYWORD keyword. PERMITTED KEYWORDS ARE keyword-list
-558 INVALID CLAUSE OR COMBINATION OF CLAUSES ON A GRANT OR REVOKE
-559 ALL AUTHORIZATION FUNCTIONS HAVE BEEN DISABLED
-562 THE SPECIFIED PRIVILEGES CANNOT BE GRANTED TO PUBLIC
-567 bind-type AUTHORIZATION ERROR USING auth-id AUTHORITY PACKAGE= package-name PRIVILEGE= privilege
-571 THE STATEMENT WOULD RESULT IN A MULTIPLE SITE UPDATE
-573 TABLE table-name DOES NOT HAVE A UNIQUE KEY WITH THE SPECIFIED COLUMN NAME
-574 THE SPECIFIED DEFAULT VALUE OR IDENTITY ATTRIBUTE VALUE CONFLICTS WITH THE DEFINITION OF COLUMN column-name
-575 OBJECT object-name (OBJECT TYPE object-type) CANNOT BE REFERENCED EXPLICITLY OR IMPLICITLY
-577 object-type object-name ATTEMPTED TO MODIFY DATA WHEN THE DEFINITION OF THE FUNCTION OR PROCEDURE DID NOT SPECIFY THIS ACTION
-578 THE RETURN STATEMENT WAS NOT EXECUTED FOR SQL FUNCTION function-name
-579 Object-type object-name ATTEMPTED TO READ OR MODIFY DATA WHEN THE DEFINITION OF THE FUNCTION OF PROCEDURE DID NOT SPECIFY THIS ACTION
-580 THE RESULT- EXPRESSIONS OF A CASE EXPRESSION CANNOT ALL BE NULL
-581 THE DATA TYPES OF THE RESULT-EXPRESSIONS OF A CASE EXPRESSION ARE NOT COMPATIBLE
-582 THE SEARCH-CONDITION IN A SEARCHED-WHEN-CLAUSE OF A CASE IS NOT VALID IN THE CONTEXT IN WHICH IT WAS SPECIFIED. THE SEARCH CONDITION CONTAINS A QUANTIFIED PREDICATE ON AN IN PREDICATE THAT INCLUDES A FULLSELECT, AND THESE ARE NOT ALLOWED IN THE SPECIFIED CONTEXT
-583 THE USE OF FUNCTION EXPRESSION name IS INVALID BECAUSE IT IS NOT DETERMINISTIC OR HAS AN EXTERNAL ACTION
-584 INVALID USE OF NULL OR DEFAULT
-585 THE COLLECTION collection-id APPEARS MORE THAN ONCE IN THE SET special-register STATEMENT
-586 THE TOTAL LENGTH OF THE CURRENT PATH SPECIAL REGISTER ANNOT EXCEED 2048 CHARACTERS
-589 A POSITIONED DELETE OR UPDATE STATEMENT FOR CURSOR cursor-name SPECIFIED A ROW OR ROWSET, BUT THE CURSOR IS NOT POSITIONED ON A ROWSET
-590 NAME name IS NOT UNIQUE IN THE CREATE OR ALTER FOR ROUTINE OR TRIGGER object-name
-592 NOT AUTHORISED TO CREATE FUNCTIONS OR PROCEDURES IN WLM ENVIRONMENT
-593 NOT NULL MUST BE SPECIFIED FOR column-name BECAUSE IT IS DEFINED AS A ROWID (OR DISTINCT TYPE FOR ROWID), ROW CHANGE TIMESTAMP COLUMN, ROW BEGIN COLUMN, ROW END COLUMN, OR COLUMN OF A PERIOD column-name
-594 ATTEMPT TO CREATE A NULLABLE ROWID OR DISTINCT TYPE COLUMN column-name
-601 THE NAME (VERSION OR VOLUME SERIAL NUMBER) OF THE OBJECT TO BE DEFINED OR THE TARGET OF A RENAME STATEMENT IS IDENTICAL TO THE EXISTING NAME (VERSION OR VOLUME SERIAL NUMBER) name OF THE OBJECT TYPE obj-type
-602 TOO MANY COLUMNS, PERIODS, OR KEY-EXPRESSIONS SPECIFIED IN A CREATE INDEX OR ALTER INDEX STATEMENT
-603 A UNIQUE INDEX CANNOT BE CREATED BECAUSE THE TABLE CONTAINS ROWS WHICH ARE DUPLICATES WITH RESPECT TO THE VALUES OF THE IDENTIFIED COLUMNS AND PERIODS
-604 A DATA TYPE DEFINITION SPECIFIES AN INVALID LENGTH, PRECISION, OR SCALE ATTRIBUTE
-607 OPERATION OR OPTION operation IS NOT DEFINED FOR THIS SUBJECT
-611 ONLY LOCKMAX 0 CAN BE SPECIFIED WHEN THE LOCK SIZE OF THE TABLESPACE IS TABLESPACE OR TABLE
-612 identifier IS A DUPLICATE NAME
-613 THE PRIMARY KEY OR A UNIQUE CONSTRAINT IS TOO LONG AS TOO MANY COLUMNS AND PERIODS
-614 THE INDEX CANNOT BE CREATED OR THE LENGTH OF A COLUMN CANNOT BE CHANGED BECAUSE THE SUM OF THE INTERNAL LENGTHS OF THE IDENTIFIED COLUMNS IS GREATER THAN THE ALLOWABLE MAXIMUM
-615 operation-type IS NOT ALLOWED ON A PACKAGE IN USE
-616 obj-type1 obj-name1 CANNOT BE DROPPED BECAUSE IT IS REFERENCED BY obj-type2 obj-name2
-618 OPERATION operation IS NOT ALLOWED ON SYSTEM DATABASES
-619 OPERATION DISALLOWED AS THE WORK FILE DATABASE IS NOT STOPPED
-620 KEYWORD keyword IN stmt-type STATEMENT IS NOT PERMITTED FOR A space-type SPACE IN THE database-type DATABASEv
-621 DUPLICATE DBID dbid WAS DETECTED AND PREVIOUSLY ASSIGNED TO database-name
-622 FOR MIXED DATA IS INVALID BECAUSE THE MIXED DATA INSTALL OPTION IS NO
-623 CLUSTER IS NOT VALID FOR table-name
-624 TABLE table-name ALREADY HAS A PRIMARY KEY OR UNIQUE CONSTRAINT WITH SPECIFIED COLUMNS AND PERIODS
-625 TABLE table-name DOES NOT HAVE AN INDEX TO ENFORCE THE UNIQUENESS OF THE PRIMARY OR UNIQUE KEY
-626 THE ALTER STATEMENT IS NOT EXECUTABLE BECAUSE THE PAGE SET IS NOT STOPPED
-627 THE ALTER STATEMENT IS INVALID BECAUSE THE TABLE SPACE OR INDEX HAS USER-MANAGED DATA SETS
-628 THE CLAUSES ARE MUTUALLY EXCLUSIVE
-629 SET NULL CANNOT BE SPECIFIED BECAUSE FOREIGN KEY name CANNOT CONTAIN NULL VALUES
-631 FOREIGN KEY name IS TOO LONG OR HAS TOO MANY COLUMNS
-632 THE TABLE CANNOT BE DEFINED AS A DEPENDENT OF table-name BECAUSE OF DELETE RULE RESTRICTIONS
-633 THE DELETE RULE MUST BE delete-rule
-634 THE DELETE RULE MUST NOT BE CASCADE
-635 THE DELETE RULES CANNOT BE DIFFERENT OR CANNOT BE SET NULL
-636 RANGES SPECIFIED FOR PARTITION part-num ARE NOT VALID
-637 DUPLICATE keyword KEYWORD OR CLAUSE
-638 TABLE table-name CANNOT BE CREATED BECAUSE COLUMN DEFINITION IS MISSING
-639 A NULLABLE COLUMN OF A FOREIGN KEY WITH A DELETE RULE OF SET NULL CANNOT BE A COLUMN OF THE KEY OF A PARTITIONED INDEX
-642 TOO MANY COLUMNS IN UNIQUE CONSTRAINTS
-643 A CHECK CONSTRAINT OR THE VALUE OF AN EXPRESSION FOR A COLUMN OF AN INDEX EXCEEDS THE MAXIMUM ALLOWABLE LENGTH KEY EXPRESSION
-644 INVALID VALUE SPECIFIED FOR KEYWORD keyword IN OR CLAUSE keyword-or-clause IN STATEMENT stmt-type
-646 TABLE table-name CANNOT BE CREATED IN SPECIFIED TABLE SPACE table-space-name BECAUSE IT ALREADY CONTAINS A TABLE
-647 BUFFERPOOL bp-name FOR IMPLICIT OR EXPLICIT TABLESPACE OR INDEXSPACE name HAS NOT BEEN ACTIVATED
-650 THE ALTER INDEX CANNOT BE EXECUTED, REASON reason
-651 TABLE DESCRIPTION EXCEEDS MAXIMUM SIZE OF OBJECT DESCRIPTOR
-652 VIOLATION OF INSTALLATION DEFINED EDIT OR VALIDATION PROCEDURE
-653 TABLE table-name IN PARTITIONED TABLESPACE tspace-name IS NOT AVAILABLE BECAUSE ITS PARTITIONED INDEX HAS NOT BEEN CREATED
-655 THE CREATE OR ALTER STOGROUP IS INVALID BECAUSE THE STORAGE GROUP WOULD HAVE BOTH SPECIFIC AND NON-SPECIFIC VOLUME IDS
-658 A object-type CANNOT BE DROPPED USING THE statement STATEMENT
-660 INDEX index-name CANNOT BE CREATED OR ALTERED ON PARTITIONED TABLESPACE tspace-name BECAUSE KEY LIMITS ARE NOT SPECIFIED
-661 Object-type index-name CANNOT BE CREATED ON PARTITIONED TABLE SPACE tspace-name BECAUSE THE NUMBER OF PARTITION SPECIFICATIONS IS NOT EQUAL TO THE NUMBER OF PARTITIONS OF THE TABLE SPACE
-662 A PARTITIONED INDEX CANNOT BE CREATED ON A TABLE SPACE, OR A TABLE SPACE CANNOT BE INDEX-CONTROLLED. TABLE SPACE tspace-name, REASON reason-code
-663 THE NUMBER OF KEY LIMIT VALUES IS EITHER ZERO, OR GREATER THAN THE NUMBER OF COLUMNS IN THE KEY OF INDEX index-name
-665 THE PART CLAUSE OF AN ALTER STATEMENT IS OMITTED OR INVALID
-666 Stmt-verb object CANNOT BE EXECUTED BECAUSE function IS IN PROGRESS
-667 THE CLUSTERING INDEX FOR A PARTITIONED TABLESPACE CANNOT BE EXPLICITLY DROPPED
-668 THE COLUMN CANNOT BE ADDED TO THE TABLE BECAUSE THE TABLE HAS AN EDIT PROCEDURE DEFINED WITH ROW ATTRIBUTE SENSITIVITY
-669 THE OBJECT CAN BE EXPLICITLY DROPPED. REASON reason-code
-670 THE RECORD LENGTH OF THE TABLE EXCEEDS THE PAGE SIZE LIMIT
-671 THE BUFFERPOOL ATTRIBUTE OF THE TABLESPACE CANNOT BE ALTERED AS SPECIFIED BECAUSE IT WOULD CHANGE THE PAGE SIZE OF THE TABLESPACE
-672 OPERATION DROP NOT ALLOWED ON TABLE table-name
-676 THE PHYSICAL CHARACTERISTICS OF THE INDEX ARE INCOMPATIBLE WITH RESPECT TO THE SPECIFIED STATEMENT. THE STATEMENT HAS FAILED. REASON reason-code
-677 INSUFFICIENT VIRTUAL STORAGE FOR BUFFERPOOL XPANSION_REASON
-678 THE CONSTANT constant SPECIFIED FOR THE INDEX LIMIT KEY MUST CONFORM TO THE DATA TYPE data-type OF THE CORRESPONDING COLUMN column-name
-679 THE OBJECT name CANNOT BE CREATED BECAUSE A DROP IS PENDING ON THE OBJECT
-680 TOO MANY COLUMNS SPECIFIED FOR A TABLE, VIEW or TABLE FUNCTION
-681 COLUMN column-name IN VIOLATION OF INSTALLATION DEFINED FIELD PROCEDURE.

RT: return-code, RS:

-682 FIELD PROCEDURE procedure-name COULD NOT BE LOADED
-683 THE SPECIFICATION FOR COLUMN, DISTINCT TYPE, FUNCTION, OR PROCEDURE data-item CONTAINS INCOMPATIBLE CLAUSES
-684 THE LENGTH OF LITERAL LIST BEGINNING string IS TOO LONG
-685 INVALID FIELD TYPE, column-name
-686 COLUMN DEFINED WITH A FIELD PROCEDURE CAN NOT COMPARE WITH ANOTHER COLUMN WITH DIFFERENT FIELD PROCEDURE
-687 FIELD TYPES INCOMPARABLE
-688 INCORRECT DATA RETURNED FROM FIELD PROCEDURE, column-name
-689 TOO MANY COLUMNS DEFINED FOR A DEPENDENT TABLE
-690 THE STATEMENT IS REJECTED BY DATA DEFINITION CONTROL SUPPORT
-691 THE REQUIRED REGISTRATION TABLE table-name DOES NOT EXIST
-692 THE REQUIRED UNIQUE INDEX index-name FOR DDL REGISTRATION TABLE table-name DOES NOT EXIST
-693 THE COLUMN column-name IN DDL REGISTRATION TABLE OR INDEX table-name (index-name) IS NOT DEFINED PROPERLY
-694 THE SCHEMA STATMENT CANNOT BE EXECUTED BECAUSE A DROP IS PENDING ON THE DDL REGISTRATION TABLE table-name
-695 INVALID VALUE seclabel SPECIFIED SECURITY LABEL COLUMN OF TABLE table-name
-696 THE DEFINITION OF TRIGGER trigger-name INCLUDES AN INVALID USE OF CORRELATION NAME OR TRANSITION TABLE NAME name. REASON CODE= reason-code
-697 OLD OR NEW CORONATION NAMES ARE NOT ALLOWED IN A TRIGGER DEFINED WITH THE FOR EACH STATEMENT CLAUSE. OLD_TABLE OR NEW_TABLE NAMES ARE NOT ALLOWED IN A TRIGGER WITH THE BEFORE CLAUSE
-713 THE REPLACEMENT VALUE value FOR special-register IS INVALID
-715 PROGRAM program-name WITH MARK release-dependency-mark FAILED BECAUSE IT DEPENDS ON FUNCTIONS OF THE RELEASE FROM WHICH FALLBACK HAS OCCURRED
-716 PROGRAM program-name PRECOMPILED WITH INCORRECT LEVEL FOR THIS RELEASE
-717 Bind-type FOR object-type object-name WITH MARK release-dependency-mark FAILED BECAUSE object-type DEPENDS ON FUNCTIONS OF THE RELEASE FROM WHICH THE FALLBACK OCCURRED
-718 REBIND OF PACKAGE package-name FAILED BECAUSE IBMREQD OF ibmreqd IS INVALID
-719 BIND ADD ERROR USING auth-id AUTHORITY PACKAGE
-720 BIND ERROR, ATTEMPTING TO REPLACE PACKAGE= package_name WITH VERSION= version2 BUT THIS VERSION ALREADY EXISTS
-721 BIND ERROR FOR PACKAGE= pkg-id CONTOKEN= ‘contoken’X IS NOT UNIQUE SO CANNOT BE CREATED
-722 Bind-type ERROR USING auth-id AUTHORITY PACKAGE package-name DOES NOT EXIST
-723 AN ERROR OCCURRED IN A TRIGGERED SQL STATEMENT IN TRIGGER trigger-name, SECTION NUMBER section-number, INFORMATION RETURNED: SQLCODE sqlerror, SQLSTATE sqlstate, AND MESSAGE TOKENS token-list
-724 THE ACTIVATION OF THE object-type OBJECT object-name WOULD EXCEED THE MAXIMUM LEVEL OF INDIRECT SQL CASCADING
-725 THE SPECIAL REGISTER register AT LOCATION location WAS SUPPLIED AN INVALID VALUE
-726 BIND ERROR ATTEMPTING TO REPLACE PACKAGE = <package_name>. THERE ARE ENABLE OR DISABLE ENTRIES CURRENTLY ASSOCIATED WITH THE PACKAGE
-727 AN ERROR OCCURRED DURING IMPLICIT SYSTEM ACTION TYPE ation-type. INFORMATION RETURNED FOR THE ERROR INCLUDES SQLCODE sqlcode SQLSTATE sqlstate AND MESSAGE TOKENS token-list
-728 DATA TYPE data-type IS NOT ALLOWED IN DB2 PRIVATE PROTOCOL PROCESSING
-729 A STORED PROCEDURE SPECIFYING COMMIT ON RETURN CANNOT BE THE TARGET OF A NESTED CALL STATEMENT
-730 THE PARENT OF A TABLE IN A READ-ONLY SHARED DATABASE MUST ALSO BE A TABLE IN A READ-ONLY SHARED DATABASE
-731 USER-DEFINED DATA SET dsname MUST BE DEFINED WITH SHAREOPTIONS(1,3)
-732 THE DATABASE IS DEFINED ON THIS SUB SYSTEM WITH THE ROSHARE READ ATTRIBUTE BUT THE TABLESPACE OR INDEX SPACE HAS NOT BEEN DEFINED ON THE OWNING SUBSYSTEM
-733 THE DESCRIPTION OF TABLESPACE, INDEX SPACE, OR TABLE IN A ROSHARE READ DATABASE MUST BE CONSISTENT WITH ITS DESCRIPTION IN THE OWNER SYSTEM
-734 THE ROSHARE ATTRIBUTE OF A DATABASE CANNOT BE ALTERED FROM ROSHARE READ
-735 DATABASE dbid CANNOT BE ACCESSED BECAUSE IT IS NO LONGER A SHARED DATABASE
-736 INVALID OBID obid SPECIFIED
-737 IMPLICIT TABLESPACE NOT ALLOWED
-739 ALTER FUNCTION function-name FAILED BECAUSE FUNCTIONS CANNOT MODIFY DATA WHEN THEY ARE PROCESSED IN PARALLEL
-740 FUNCTION name IS DEFINED WITH THE OPTION MODIFIES SQL DATA WHICH IS NOT VALID IN THE CONTEXT IN WHICH IT WAS INVOKED
-741 A WORK FILE DATABASE IS ALREADY DEFINED FOR MEMBER member-name
-742 DSNDB07 IS THE IMPLICIT WORK FILE DATABASE
-746 THE SQL STATEMENT IN AN EXTERNAL FUNCTION, TRIGGER, OR IN STORED PROCEDURE name VIOLATES THE NESTING SQL RESTRICTION
-747 TABLE table-name IS NOT AVAILABLE UNTIL THE AUXILIARY TABLES AND INDEXES FOR ITS EXTERNALLY STORED COLUMNS HAVE BEEN CREATED
-748 AN INDEX ALREADY EXISTS ON AUXILIARY TABLE
-750 THE SOURCE TABLE source-name CANNOT BE RENAMED OR ALTERED AS SPECIFIED
-751 Object-type object-name (SPECIFIC NAME specific name) ATTEMPTED TO EXECUTE AN SQL STATEMENT statement THAT IS NOT ALLOWED
-752 THE CONNECT STATEMENT IS INVALID BECAUSE THE PROCESS IS NOT IN THE CONNECTABLE STATE
-763 INVALID TABLESPACE NAME table-space-name
-764 A LOB TABLESPACE AND ITS ASSOCIATED BASE TABLESPACE MUST BE IN THE SAME DATABASE
-765 TABLE IS NOT COMPATIBLE WITH DATABASE
-766 THE OBJECT OF A STATEMENT IS A TABLE FOR WHICH THE REQUESTED OPERATION IS NOT PERMITTED
-767 MISSING OR INVALID COLUMN SPECIFICATION FOR INDEX
-768 AN AUXILIARY TABLE ALREADY EXISTS FOR THE SPECIFIED COLUMN OR PARTITION
-769 SPECIFICATION OF CREATE AUX TABLE DOES NOT MATCH THE CHARACTERISTICS OF THE BASE TABLE
-770 TABLE table-name CANNOT HAVE A LOB COLUMN UNLESS IT ALSO HAS A ROWID, OR AN XML COLUMN UNLESS IT ALSO HAS A DOCID COLUMN
-771 INVALID SPECIFICATION OF A ROWID COLUMN
-773 CASE NOT FOUND FOR CASE STATEMENT
-775 STATEMENT SPECIFIED IN SQL ROUTINE IN NOT ALLOWED WITHIN A COMPOUND STATEMENT
-776 USE OF CURSOR cursor-name IS NOT VALID
-778 ENDING LABEL label DOES NOT MATCH THE BEGINNING LABEL
-779 LABEL label SPECIFIED ON A GOTO, ITERATE, OR LEAVE STATEMENT IS NOT VALID
-780 UNDO SPECIFIED FOR A HANDLER
-781 CONDITION condition-name IS NOT DEFINED OR THE DEFINITION IS NOT IN SCOPE
-782 A CONDITION OR SQLSTATE value SPECIFIED IS NOT VALID
-783 SELECT LIST FOR CURSOR cursor-name IN FOR STATEMENT IS NOT VALID. COLUMN column-name IS NOT UNIQUE
-784 CONSTRAINT constraint-name CANNOT BE DROPPED
-785 USE OF SQLCODE OR SQLSTATE IS NOT VALID
-787 RESIGNAL STATEMENT ISSUED OUTSIDE OF A HANDLER
-788 OWNERSHIP TRANSFER WAS IGNORED BECAUSE auth-id IS ALREADY THE OWNER OF THE OBJECT
-789 THE DATA TYPE OR OTHER ATTRIBUTES FOR PARAMETER OR SQL VARIABLE name ARE NOT SUPPORTED IN THE ROUTINE
-797 THE TRIGGER trigger-name IS DEFINED WITH AN UNSUPPORTED TRIGGERED SQL STATEMENT
-798 A VALUE CANNOT BE SPECIFIED FOR COLUMN column-name WHICH IS DEFINED AS GENERATED ALWAYS
-802 EXCEPTION ERROR ‘exception-type’ HAS OCCURRED DURING ‘operation-type’ OPERATION ON ‘data-type’ DATA, POSITION ‘position-number’
-803 AN INSERTED OR UPDATED VALUE IS INVALID BECAUSE THE INDEX IN INDEX SPACE indexspace-name CONSTRAINS COLUMNS OF THE TABLE SO NO TWO ROWS CAN CONTAIN DUPLICATE VALUES IN THOSE COLUMNS. RID OF EXISTING ROW IS X’rid’
-804 AN ERROR WAS FOUND IN THE APPLICATION PROGRAM INPUT PARAMETERS FOR THE SQL STATEMENT, REASON reason
-805 DBRM OR PACKAGE NAME location-name.collection-id.dbrm-name-consistency-token NOT FOUND IN PLAN plan-name. REASON reason
-807 ACCESS DENIED: PACKAGE package-name IS NOT ENABLED FOR ACCESS FROM connection-type connection-name
-808 THE CONNECT STATEMENT IS NOT CONSISTENT WITH THE FIRST CONNECT STATEMENT
-811 THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
-812 THE SQL STATEMENT CANNOT BE PROCESSED BECAUSE A BLANK COLLECTION-ID WAS FOUND IN THE CURRENT PACKAGESET SPECIAL REGISTER WHILE TRYING TO FORM A QUALIFIED PACKAGING NAME FOR PROGRAM program-name.consistency-token USING PLAN plan-name
-817 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE THE STATEMENT WILL RESULT IN A PROHIBITED UPDATE OPERATION
-818 THE PRECOMPILER-GENERATED TIMESTAMP x IN THE LOAD MODULE IS DIFFERENT FROM THE BIND TIMESTAMP y BUILT FROM THE DBRM z
-819 THE VIEW CANNOT BE PROCESSED BECAUSE THE LENGTH OF ITS PARSE TREE IN THE CATALOG IS ZERO
-820 THE SQL STATEMENT CANNOT BE PROCESSED BECAUSE catalog-table CONTAINS A VALUE THAT IS NOT VALID IN THIS RELEASE
-822 THE SQLDA CONTAINS AN INVALID DATA ADDRESS OR INDICATOR VARIABLE ADDRESS
-840 TOO MANY ITEMS RETURNED IN A SELECT OR INSERT LIST
-842 A CONNECTION TO location-name ALREADY EXISTS
-843 THE SET CONNECTION OR RELEASE STATEMENT MUST SPECIFY AN EXISTING CONNECTION
-845 A PREVIOUS VALUE EXPRESSION CANNOT BE USED BEFORE THE NEXT VALUE EXPRESSION GENERATES A VALUE IN THE CURRENT APPLICATION PROCESS FOR SEQUENCE sequence-name
-846 INVALID SPECIFICATION OF AN IDENTITY COLUMN OR SEQUENCE OBJECT object-type object-name. REASON CODE = reason code
-867 INVALID SPECIFICATION OF A ROWID COLUMN
-870 THE NUMBER OF HOST VARIABLES IN THE STATEMENT IS NOT EQUAL TO THE NUMBER OF DESCRIPTORS
-872 A VALID CCSID HAS NOT YET BEEN SPECIFIED FOR THIS SUBSYSTEM
-873 THE STATEMENT REFERENCED DATA ENCODED WITH DIFFERENT ENCODING SCHEMES OR CCSIDS IN AN INVALID CONTEXT
-874 THE ENCODING SCHEME SPECIFIED FOR THE object-type MUST BE THE SAME AS THE CONTAINING TABLESPACE OF OTHER PARAMETERS
-875 operand CANNOT BE USED WITH THE ASCII DATA REFERENCED
-876 object CANNOT BE CREATED OR ALTERED, REASON reason
-877 CCSID ASCII IS NOT ALLOWED FOR THIS DATABASE OR TABLE SPACE
-878 THE explain-object USED FOR EXPLAIN MUST BE ENCODED IN UNICODE.IT CANNOT BE IN ASCII OR EBCDIC
-879 CREATE or ALTER STATEMENT FOR object-name CANNOT DEFINE A COLUMN, TYPE, VARIABLE, FUNCTION OR STORED PROCEDURE PARAMETER AS MIXED OR GRAPHIC WITH ENCODING SCHEME encoding-scheme
-880 SAVEPOINT savepoint-name DOES NOT EXIST OR IS INVALID IN THIS CONTEXT
-881 A SAVEPOINT WITH NAME savepoint-name ALREADY EXISTS, BUT THIS SAVEPOINT NAME CANNOT BE REUSED
-882 SAVEPOINT DOES NOT EXIST
-900 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE THE APPLICATION PROCESS IS NOT CONNECTED TO AN APPLICATION SERVER
-901 UNSUCCESSFUL EXECUTION CAUSED BY A SYSTEM ERROR THAT DOES NOT PRECLUDE THE SUCCESSFUL EXECUTION OF SUBSEQUENT SQL STATEMENTS
-902 POINTER TO THE ESSENTIAL CONTROL BLOCK (CT/RDA) HAS VALUE 0, REBIND REQUIRED
-904 UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON reason-code, TYPE OR RESOURCE resource-type, AND RESOURCE NAME resource-name
-905 UNSUCCESSFUL EXECUTION DUE TO RESOURCE LIMIT BEING EXCEEDED, RESOURCE NAME= resource-name LIMIT= limit-amount1 CPU SECONDS (limit-amount2 SERVICE UNITS) DERIVED FROM limit-source
-906 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE THIS FUNCTION IS DISABLED DUE TO A PRIOR ERROR
-907 AN ATTEMPT WAS MADE TO MODIFY THE TARGET TABLE, table-name, OF THE MERGE STATEMENT BY CONSTRAINT OR TRIGGER trigger-name
-908 bind-type ERROR USING auth-id AUTHORITY. BIND, REBIND OR AUTO-REBIND OPERATION IS NOT ALLOWED
-909 THE OBJECT HAS BEEN DELETED OR ALTERED
-910 THE SQL STATEMENT CANNOT ACCESS AN OBJECT ON WHICH A DROP OR ALTER IS PENDING
-911 THE CURRENT UNIT OF WORK HAS BEEN ROLLED BACK DUE TO DEADLOCK OR TIMEOUT. REASON reason-code, TYPE OF RESOURCE resource-type, AND RESOURCE NAME resource-name
-913 UNSUCCESSFUL EXECUTION CAUSED BY DEADLOCK OR TIMEOUT. REASON CODE reason-code, TYPE OF RESOURCE resource-type, AND RESOURCE NAME resource-name
-917 BIND PACKAGE FAILED
-918 THE SQL STATEMENT CANNOT BE EXECUTED BECAUSE A CONNECTION HAS BEEN LOST
-919 A ROLLBACK OPERATION IS REQUIRED
-922 AUTHORISATION FAILURE: error-type ERROR. REASON reason-code
-923 CONNECTION NOT ESTABLISHED: DB2 condition REASON reason-code, TYPE resource-type, NAME resource-name
-924 DB2 CONNECTION INTERNAL ERROR, function-code, return-code, reason-code
-925 COMMIT NOT VALID IN IMS OR CICS ENVIRONMENT
-926 ROLLBACK NOT VALID IN IMS, CICS OR RRSAF ENVIRONMENT
-927 THE LANGUAGE INTERFACE (LI) WAS CALLED WHEN THE CONNECTING ENVIRONMENT WAS NOT ESTABLISHED. THE PROGRAM SHOULD BE INVOKED UNDER THE DSN COMMAND
-929 FAILURE IN A DATA CAPTURE EXIT: token
-939 ROLLBACK REQUIRED DUE TO UNREQUESTED ROLLBACK OF A REMOTE SERVER
-947 THE SQL STATEMENT FAILED BECAUSE IT WILL CHANGE A TABLE DEFNED WITH DATA CAPTURE CHANGES, BUT THE DATA CANNOT BE PROPAGATED
-948 DISTRIBUTED OPERATION IS INVALID
-950 THE LOCATION NAME SPECIFIED IN THE CONNECT STATEMENT IS INVALID OR NOT LISTED IN THE COMMUNICATIONS DATABASE
-951 OBJECT object-name OBJECT TYPE object-type IS IN USE AND CANNOT BE THE TARGET OF THE SPECIFIED ALTER STATEMENT
-952 PROCESSING WAS INTERRUPTED BY A CANCEL REQUEST FROM A CLIENT PROGRAM
-981 THE SQL STATEMENT FAILED BECAUSE THE RRSAF CONNECTION IS NOT IN A STATE THAT ALLOWS SQL OPERATIONS, REASON reason-code
-989 AFTER TRIGGER trigger-name ATTEMPTED TO MODIFY A ROW IN TABLE table-name THAT WAS MODIFIED BY AN SQL DATA CHANGE STATEMENT WITHIN A FROM CLAUSE
-991 CALL ATTACH WAS UNABLE TO ESTABLISH AN IMPLICIT CONNECT OR OPEN TO DB2. RC1= rc1 RC2= rc2
-992 PACKAGE package-name CANNOT BE EXECUTED OR DEPLOYED ON LOCATION location-name
-1403 THE USERNAME AND/OR PASSWORD SUPPLIED IS INCORRECT
-1706 CREATE PROCEDURE FOR procedure-name MUST HAVE VALID LANGUAGE AND EXTERNAL CLAUSES
-2001 THE NUMBER OF HOST VARIABLE PARAMETERS FOR A STORED PROCEDURE IS NOT EQUAL TO THE NUMBER OF EXPECTED HOST VARIABLE PARAMETERS. ACTUAL NUMBER
-4302 JAVA STORED PROCEDURE USER DEFINED FUNCTION routine-name (SPECIFIC NAME specificname)HAS EXITED WITH AN EXCEPTION exception-string
-4700 ATTEMPT TO USE NEW FUNCTION BEFORE FUNCTION IS ACTIVATED
-4701 THE NUMBER OF PARTITIONS, OR THE COMBINATION OF THE NUMBER OF TABLE SPACE PARTITIONS AND THE CORRESPONDING LENGTH OF THE PARTITIONING LIMIT KEY EXCEEDS THE SYSTEM LIMIT; OR THE COMBINATION OF THE NUMBER OF TABLE SPACE PARTITIONS EXCEEDS THE MAXPARTITIONS FOR PARTITION BY GROWTH TABLE SPACE
-4702 THE MAXIMUM NUMBER OF ALTERS ALLOWED TO BEEN EXCEEDED FOR object-type
-4703 THE ALTER TABLE STATEMENT CANNOT BE EXECUTED BECAUSE COLUMN column-name IS MIXED DATA, OR THE DATE OF TYPE OR LENGTH SPECIFIED DOES NOT AGREE WITH THE EXISTING DATA TYPE OF LENGTH
-4704 AN UNSUPPORTED DATA TYPE WAS ENCOUNTERED AS AN INCLUDE COLUMN
-4705 option SPECIFIED ON ALTER STATEMENT FOR routine-name routine-type IS NOT VALID
-4706 ALTER STATEMENT FOR AND SQL ROUTINE OR ADVANCED TRIGGER CANNOT BE PROCESSED BECAUSE THE OPTIONS CURRENTLY IN EFFECT (ENVID current-envid) ARE NOT THE SAME AS THE ONES THAT WERE IN EFFECT (ENVID defined-envid) WHEN OBJECT OR VERSION WAS FIRST DEFINED
-4707 STATEMENT statement IS NOT ALLOWED WHEN USING A TRUSTED CONNECTION
-4708 TABLE table-name CANNOT BE DEFINED AS SPECIFIED IN THE statement STATEMENT IN A COMMON CRITERIA ENVIRONMENT
-4709 EXPLAIN MONITORED STMTS FAILED WITH REASON CODE = yyyyy
-4710 EXCHANGE DATA STATEMENT SPECIFIED table1 AND table2 BUT THE TABLES DO NOT HAVE A DEFINED CLONE RELATIONSHIP
-4727 SYSTEM PARAMETER system-parameter VALUE parameter-value IS INCONSISTENT WITH CLAUSE clause SPECIFIED ON statement-name STATEMENT
-4728 ANOTHER VERSION OF ROUTINE routine-name EXISTS AND IS DEFINED WITH AN INCOMPATIBLE OPTION. THE OPTION IS option-name
-4730 INVALID SPECIFICATION OF XML COLUMN table-name.column-name IS NOT DEFINED IN THE XML VERSIONING FORMAT, REASON reason-code
-4731 THE NATIVE SQL ROUTINE STATEMENT FOR PACKAGE location-name.collection-id.programname. consistency-token STATEMENT NUMBER statement-number CANNOT BE PROCESSED
-4732 THE MAXIMUM NUMBER OF ALTERS ALLOWED BEEN EXCEEDED FOR object-type
-4733 THE ALTER TABLE STATEMENT CANNOT BE EXECUTED BECAUSE COLUMN column-name IS MIXED DATA, OR THE DATA TYPE OR LENGTH SPECIFIED DOES NOT AGREE WITH THE EXISTING DATA TYPE OR LENGTH
-4734 THE LOAD MODULE FOR THE PROCEDURE ASSUMES A PARAMETER VARCHAR OPTION THAT IS NOT CONSISTENT WITH THE OPTION SPECIFIED ON THE CREATE PROCEDURE STATEMENT FOR procedure-name
-4735 INVALID TABLE REFERENCE FOR TABLE LOCATOR
-4736 A PERIOD SPECIFICATION OR PERIOD CLAUSE IS NOT SUPPORTED AS SPECIFIED FOR OBJECT object-name. REASON CODE = reason-code
-4737 STATEMENT statement IS NOT ALLOWED WHEN USING A TRUSTED CONNECTION
-4738 TABLE table-name CANNOT BE DEFINED AS SPECIFIED IN THE statement STATEMENT IN A COMMON CRITERIA ENVIRONMENT
-4739 ENVIRONMENT SETTINGS (IDENTIFIED BY envid1) USED BY object-name ARE NOT THE SAME AS THE ONES THAT WERE IN EFFECT (IDENTIFIED BY envid2) WHEN OTHER COLUMNS MASKS AND ROW PERMISSIONS WERE DEFINED FOR TABLE table-name
-4743 ATTEMPT TO USE NEW FUNCTION WHEN THE APPLICATION COMPATIBILITY SETTING IS SET FOR A PREVIOUS LEVEL
-4744 THE STATEMENT EXPLICITLY OR IMPLICITLY REFERENCED TEMPORAL TABLE table-name IN AN UNSUPPORTED CONTEXT. REASON CODE reason-code
-4749 PACKAGE = package-name bind-type ERROR WITH APREUSESOURCE(copy-type), THE copy-type COPY DOES NOT EXIST
-4750 Csect-name PACKAGE package-name SWITCH TO THE copy-indicator COPY FAILED. THIS COPY IS NOT EXECUTABLE WITHOUT AN EXPLICIT REBIND OR AUTOBIND (REASON = reason-code)
-4753 Csect-name PACKAGE package-name SWITCH TO THE copy-indicator COPY FAILED. THIS COPY IS NOT EXECUTABLE WITHOUT AN EXPLICIT REBIND OR AUTOBIND (REASON = reason-code)
-5001 TABLE table-name IS NOT VALID
-5012 HOST VARIABLE host-variable IS NOT EXACT NUMERIC WITH SCALE ZERO
-7008 Object-name NOT VALID FOR OPERATION (reason-code)
-16000 AN XQUERY EXPRESSION CANNOT BE PROCESSED BECAUSE THE context-component COMPONENT OF THE STATIC CONTEXT HAS NOT BEEN ASSIGNED. ERROR QNAME = err:XPST0001
-16001 AN XQUERY EXPRESSION STARTING WITH TOKEN token CANNOT BE PROCESSED BECAUSE THE FOCUS COMPONENT OF THE DYNAMIC CONTEXT HAS NOT BEING ASSIGNED. ERROR QNAME = err:XPDY0002
-16002 AN XQUERY EXPRESSION HAS AN UNEXPECTED TOKEN token FOLLOWING text. EXPECTED TOKENS MAY INCLUDE: token-list. ERROR QNAME= ERR:XPST0003
-16003 AN EXPRESSION OF DATA TYPE value-type CANNOT BE USED WHEN THE DATA TYPE expected-type IS EXPECTED IN THE CONTEXT. ERROR QNAME= err:XPTY0004
-16005 AN XQUERY EXPRESSION REFERENCES AN ELEMENT NAME, ARRIBUTE NAME, TYPE NAME, FUNCTION NAME, NAMESPACE PREFIX, OR VARIABLE NAME undefined-name THAT IS NOT DEFINED WITHIN THE STATIC CONTEXT. ERROR QNAME= ERR:XPST008
-16007 THE XQUERY PATH EXPRESSION REFERENCES AN AXIS axis-type THAT IS NOT SUPPORTED. ERROR QNAME= err:XQST0010
-16009 AN XQUERY FUNCTION NAMED function-name WITH number-of-parms PARAMETERS IS NOT DEFINED IN THE STATIC CONTEXT. ERROR QNAME= err:XPST0017
-16011 THE RESULT OF AN INTERMEDIATE STEP EXPRESSION IN AN XQUERY PATH EXPRESSION CONTAINS AN ATOMIC VALUE. ERROR QNAME= err:XPTY0019
-16012 THE CONTEXT ITEM IN AN AXIS STEP MUST BE A NODE. ERROR QNAME= err:XPTY0020
-16015 AN ELEMENT CONSTRUCTOR CONTAINS AN ATTRIBUTE NODE NAMED attribute-name THAT FOLLOWS AN XQUERY NODE THAT IS NOT AN ATTRIBUTE NODE. ERROR QNAME= ERR:XQTY0024
-16016 THE ATTRIBUTE NAME attribute-name CANNOT BE USED MORE THAN ONCE IN AN ELEMENT CONSTRUCTOR. ERROR QNAME= err:XQTY0025
-16020 THE CONTENT NODE IN A PATH EXPRESSION THAT BEGINS WITH AN INITIAL ‘I’ OR ‘II’ DOES NOT HAVE AN XQUERY DOCUMENT NODE ROOT. ERROR QNAME= err:XPDY0050
-16022 OPERANDS OF TYPES xquery-data-types ARE NOT VALID FOR OPERATOR operator-name. ERROR QNAME= err:XPTY0004
-16023 THE XQUERY PROLOG CANNOT CONTAIN MULTIPLE DECLARATIONS FOR THE SAME NAMESPACE PREFIX ns-prefix. ERROR QNAME= err:XQST0033
-16024 THE NAMESPACE PREFIX prefix-name CANNOT BE REDECLARED OR CANNOT BE BOUND TO SPECIFIED URI. ERROR QNAME= err:XQST0070
-16031 XQUERY LANGUAGE FEATURE USING SYNTAX string IS NOT SUPPORTED
-16032 THE STRING string IS NOT A VALID URI. ERROR QNAME= err:XQST0046
-16036 THE URI THAT IS SPECIFIED IN A NAMESPACE DECLARATION CANNOT BE A ZERO-LENGTH STRING
-16038 THE ARGUMENTS OF FN:DATETIME HAVE DIFFERENT TIMEZONES. ERROR QNAME-ERR:FORG0008
-16046 A NUMERIC XQUERY EXPRESSION ATTEMPTED TO DIVIDE BY ZERO. ERROR QNAME= err:FOAR0001
-16047 AN XQUERY EXPRESSION RESULTED IN ARITHMETIC OVERFLOW OR UNDERFLOW. ERROR QNAME= err:FOAR0002
-16048 AN XQUERY PROLOG CANNOT CONTAIN MORE THAN ONE decl-type DECLARATION. ERROR QNAME= error-qname
-16049 THE LEXICAL VALUE value IS NOT VALID FOR THE type-name DATA TYPE IN THE FUNCTION OR CAST. ERROR QNAME= err:FOCA0002
-16051 THE VALUE value OF DATA TYPES source-type IS OUT OF RANGE FOR AN IMPLICIT OR EXPLICIT CAST TO TARGET DATA TYPE target-type. ERROR QNAME= err:error-qname
-16052 NAN CANNOT BE USED AS A FLOAT OR DOUBLE VALUE IN A DATETIME OPERATION. ERROR QNAME=ERR:FOCA0005
-16055 AN ARITHMETIC OPERATION INVOLVING A DATETIME VALUE RESULTED IN OVERFLOW. ERROR QNAME=ERR:FODT0001
-16056 AN ARITHMETIC OPERATION INVOLVING A DATETIME VALUE RESULTED IN OVERFLOW. ERROR QNAME=ERR:FODT0002
-16057 A TIMEZONE VALUE IS NOT VALID. ERROR QNAME=ERR:FODR0003
-16061 THE VALUE value CANNOT BE CONSTRUCTED AS, OR CAST (USING AN IMPLICIT EXPLICIT CAST) TO THE DATA TYPE data-type. ERROR QNAME= err:FORG0001
-16065 A EMPTY SEQUENCE CANNOT BE CAST TO THE DATA TYPE data-type, ERROR QNAME= err:FORG0006
-16066 THE ARGUMENT PASSED THE AGGREGATE FUNCTION function-name IS NOT VALID. ERROR QNAME= err:FORG0006
-16067 THE FLAGS ARGUMENT VALUE PASSED TO THE FUNCTION function-name IS NOT VALID. ERROR QNAME=err:FORX001
-16068 THE REGULAR EXPRESSION ARGUMENT VALUE PASSED TO THE FUNCTION function-name IS NOT VALID. ERROR QNAME=err:FORX0002
-16069 A REGULAR EXPRESSION ARGUMENT value PASSED TO THE FUNCTION function-name MATCHES A ZERO-LENGTH STRING. ERROR QNAME= err:FORX0003
-16075 THE SEQUENCE TO BE SERIALIZED CONTAINS AN ITEM THAT IS AN ATTRIBUTE NODE. ERROR QNAME= err:SENR0001
-16080 AN XAN XQUERY expression-type UPDATING EXPRESSION IS USED IN AN INVALID CONTEXT. ERROR QNAME=err:XUST0001
-20211 THE SPECIFICATION ORDER BY, OFFSET, OR FETCH FIRST IN ROWS ONLY IS VALID
-20223 THE OPERATION FAILED. ENCRYPTION FACILITY NOT AVAILABLE return-code, reason-code
-20248 ATTEMPTED TO EXPLAIN STATEMENT WITH STMTID OR STMTTOKEN ID-token BUT THE REQUIRED EXPLANATION INFORMATION IS NOT ACCESSIBLE. REASON reason-code
-20342 INCOMPATIBLE EXPRESSION-TYPE EXPRESSIONS EXIST IN THE XQUERY-UPDATE-CONSTANT IN THE XMLMODIFY FUNCTION. QNAME=err:error-name
-20379 AN AUTHORIZATION ID OR A ROLE CANNOT USE ITS SECADM AUTHORITY TO TRANSFER THE OWNERSHIP OF AN OBJECT TO ITSELF
-20433 AN UNTYPED EXPRESSION WAS SPECIFIED, BUT AN ASSUMED DATA TYPE CANNOT BE DETERMINED FROM ITS USE
-20435 THE SELECT CLAUSE INCLUDES MULTIPLE INVOCATIONS OF THE ARRAY_AGG FUNCTION. ALL INVOCATIONS THAT EXPLICITLY SPECIFY AN ORDER BY CLAUSE MUST SPECIFY THE SAME ORDER
-20439 AN ARRAY INDEX VALUE, value IS NULL OR OUT OF RANGE, OR AN ARRAY ELEMENT WITH THAT INDEX VALUE DOES NOT EXIST
-20467 THE STATEMENT WAS NOT EXECUTED BECAUSE AN EXPRESSION IS NOT A CONSTANT OR VARIABLE. THE INVALID EXPRESSION IS IN THE STATEMENT NEAR THE SYNTAX ELEMENT syntax-element
-20529 THE ARGUMENT OF THE WRAP FUNCTION OR CREATE_WRAPPED PROCEDURE IS NOT VALID
-16081 THE XQUERY-UPDATE-CONSTANT IN THE XMLMODIFY FUNCTION IS NOT AN UPDATING EXPRESSION ON EMPTY SEQUENCE EXPRESSION. ERROR QNAME=err:XUST0002
-16085 THE TARGET NODE OF AN XQUERY expression-type EXPRESSION IS NOT VALID. ERROR QNAME=err:error-name
-16086 THE REPLACEMENT SEQUENCE OF A REPLACE EXPRESSION CONTAINS INVALID NODES FOR THE SPECIFIED TARGET NODE. ERROR QNAME=err:error-name
-16087 THE RESULT OF APPLYING THE UPDATING EXPRESSIONS IN XMLMODIFY FUNCTION IS NOT A VALID INSTANCE OF THE XQUERY AND XPATH DATA MODEL. ADDITIONAL INFORMATION: information-1, information-2. ERROR QNAME=err:XUDY0021
-16088 AN expression-type EXPRESSION HAS A BINDING OF A NAMESPACE PREFIX prefix-string TO NAMESPACE URI uri-string, INTRODUCED TO AN ELEMENT NAMED element-name, THAT CONFLICTS WITH AN EXISTING NAMESPACE BINDING OF THE SAME PREFIX TO A DIFFERENT URL IN THE IN-SCOPE NAMESPACES OF THAT ELEMENT NODE. ERROR QNAME=err:XUDY0023
-16089 AN expression-type EXPRESSION AND POSSIBLY OTHER UPDATING EXPRESSIONS IN AN XML MODIFY FUNCTION INTRODUCE CONFLICTING NAMESPACE BINDINGS INTO AN ELEMENT NAMED element-name. THE PREFIX prefix-string IS BOUND TO uri-string WHILE ANOTHER BINDING OF THE SAME PREFIX USES A DIFFERENT NAMESPACE URI. ERROR QNAME=ee:XUDY0024
-16246 INCOMPLETE ANNOTATION MAPPING AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri. REASON CODE= reason-code
-16247 SOURCE XML TYPE source-data-type CANNOT BE MAPPED TO TARGET SQL TYPE target-data-type IN THE ANNOTATION AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri
-16248 UNKNOWN ANNOTATION annotation-name AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri
-16249 THE db2-xdb:expression ANNOTATION expression AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri IS TOO LONG
-16250 THE db2-xdb:defaultSQLSchema WITH VALUE schema-name AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri CONFLICTS WITH ANOTHER db2-xdb:defaultSQLSchema SPECIFIED IN ONE OF THE XML SCHEMA DOCUMENTS WITHIN THE SAME XML SCHEMA
-16251 DUPLICATE ANNOTATION DEFINED FOR object-name AT OR NEAR location IN XML SCHEMA DOCUMENT uri
-16252 THE db2-xdb:rowset NAME rowset-name SPECIFIED AT OR NEAR LINE lineno IN THE XML SCHEMA DOCUMENT uri IS ALREADY ASSOCIATED WITH ANOTHER TABLE
-16253 THE db2-xdb:condition ANNOTATION condition AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri IS TOO LONG
-16254 A db2-xdb:locationPath locationpath AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri IS NOT VALID WITH REASON CODE reason-code
-16255 A db2-xdb:rowset VALUE rowset-name USED AT OR NEAR LINE lineno IN XML SCHEMA DOCUMENT uri CONFLICTS WITH A db2-xdb:table ANNOTATION WITH THE SAME NAME
-16257 XML SCHEMA FEATURE feature SPECIFIED IS NOT SUPPORTED FOR DECOMPOSITION
-16258 THE XML SCHEMA CONTAINS A RECURSIVE ELEMENT WHICH IS AN UNSUPPORTED FEATURE FOR DECOMPOSITION. THE RECURSIVE ELEMENT IS IDENTIFIED AS elementnamespace:elementname OF TYPE typenamespace:typename
-16259 INVALID MANY-TO-MANY MAPPINGS DETECTED IN XML SCHEMA DOCUMENT uri1 NEAR LINE lineno1 AND IN XML SCHEMA DOCUMENT uri2 NEAR LINE lineno2
-16260 XML SCHEMA ANNOTATIONS INCLUDE NO MAPPINGS TO ANY COLUMN OF ANY TABLE
-16262 THE ANNOTATED XML SCHEMA HAS NO COLUMNS MAPPED FOR ROWSET rowsetname
-16265 THE XML DOCUMENT CANNOT BE DECOMPOSED USING XML SCHEMA xsrobject-name WHICH IS NOT ENABLED OR IS INOPERATIVE FOR DECOMPOSITION
-16266 AN SQL ERROR OCCURRED DURING DECOMPOSITION OF DOCUMENT docid WHILE ATTEMPTING TO INSERT DATA. INFORMATION RETURNED FOR THE ERROR INCLUDES SQLCODE sqlcode, SQLSTATE sqlstate, AND MESSAGE TOKENS token-list
-20003 GBPCACHE NONE CANNOT BE SPECIFIED FOR TABLESPACE OR INDEX IN GRECP
-20004 8K OR 16K BUFFERPOOL PAGESIZE INVALID FOR A WORKFILE OBJECT
-20005 THE INTERNAL ID LIMIT OF limit HAS BEEN EXCEEDED FOR OBJECT TYPE object-type
-20006 LOBS CANNOT BE SPECIFIED AS PARAMETERS WHEN NO WLM ENVIRONMENT IS SPECIFIED
-20008 UNSUPPORTED OPTION keyword SPECIFIED
-20016 THE VALUE OF THE INLINE LENGTH ASSOCIATED WITH object-name IS TOO BIG OR THE INLINE LENGTH CLAUSE IS NOT ALLOWED IN THE CONTEXT
-20019 THE RESULT TYPE RETURNED FROM THE FUNCTION BODY CANNOT BE ASSIGNED TO THE DATA TYPE DEFINED IN THE RETURNS CLAUSE
-20046 THE SELECTIVITY CLAUSE FOLLOWING predicate-string CAN ONLY SPECIFIED FOR A SPATIAL PREDICATE FUNCTION
-20058 THE FULLSELECT SPECIFIED FOR MATERIALIZED QUERY TABLE table-name IS NOT VALID
-20060 UNSUPPORTED DATA TYPE data-type ENCOUNTERED IN SQL object-type object-name
-20070 AUXILIARY TABLE table-name CANNOT BE CREATED BECAUSE COLUMN column-name IS NOT A LOB COLUMN
-20071 WLM ENVIRONMENT NAME MUST BE SPECIFIED function-name
-20072 bind-type bind-subtype ERROR USING auth-id AUTHORITY OPERATION IS NOT ALLOWED ON A package-type PACKAGE package-name
-20073 THE FUNCTION function-name CANNOT BE ALTERED BECAUSE IT IS REFERENCED IN EXISTING VIEW OR MATERIALIZED QUERY TABLE DEFINITIONS
-20074 THE OBJECT object-name CANNOT BE CREATED BECAUSE THE FIRST THREE CHARACTERS ARE RESERVED FOR SYSTEM OBJECTS
-20091 A VIEW NAME WAS SPECIFIED AFTER LIKE IN ADDITION TO THE INCLUDING IDENTITY COLUMN ATTRIBUTES CLAUSE
-20092 THE TABLE OR VIEW WAS SPECIFIED IN THE LIKE CLAUSE, BUT THE OBJECT CANNOT BE USED IN THIS CONTEXT
-20093 THE TABLE table-name CANNOT BE CONVERTED TO OR FROM A MATERIALIZED QUERY TABLE, OR THE MATERIALIZED QUERY TABLE PROPERTY CANNOT BE ALTERED. REASON CODE = reason-code
-20094 THE COLUMN column-name IS A GENERATED COLUMN AND CANNOT BE USED IN THE BEFORE TRIGGER trigger-name
-20100 AN ERROR OCCURRED WHEN BINDING A TRIGGERED SQL STATEMENT. INFORMATION RETURNED: SECTION NUMBER: section-number SQLCODE sqlerror, SQLSTATE sqlstate, AND MESSAGE TOKENS
-20101 THE FUNCTION function FAILED WITH REASON rc
-20102 CREATE OR ALTER STATEMENT FOR USER-DEFINED FUNCTION function-name SPECIFIED THE option OPTION WHICH IS NOT ALLOWED FOR THE TYPE OF ROUTINE
-20104 AN ATTEMPT TO ALTER A CCSID FROM from-ccside TO to-ccsid FAILED
-20106 THE CCSID FOR THE TABLE SPACE OR DATABASE CANNOT BE CHANGED BECAUSE THE TABLE SPACE OR DATABASE ALREADY CONTAINS A TABLE THAT IS REFERENCED IN EXISTING VIEW, OR MATERIALIZED QUERY TABLE DEFINITIONS OR AN EXTENDED INDEX
-20107 HOST VARIABLE OR PARAMETER NUMBER position-number CANNOT BE USED AS SPECIFIED BECAUSE REASON reason
-20108 A RESULT SET CONTAINS AN UNSUPPORTED DATA TYPE IN POSITION NUMBER position-number FOR CURSOR cursor-name OPENED BY STORED PROCEDURE procedure-name
-20110 CANNOT IMPLICITLY CONNECT TO A REMOTE SITE WITH A SAVEPOINT OUTSTANDING
-20111 CAN ISSUE SAVEPOINT, RELEASE SAVEPOINT, ROLLBACK TO A SAVEPOINT FROM A TRIGGER, FROM A USER DEFINED FUNCTION, OR FROM A GLOBAL TRANSACTION
-20117 A WINDOW SPECIFICATION FOR AN OLAP SPECIFICATION IS NOT VALID. REASON CODE = reason-code
-20120 AN SQL TABLE FUNCTION MUST RETURN A TABLE RESULT
-20123 CALL A STORED PROCEDURE procedure FAILED BECAUSE THE RESULT SET RETURNED FOR CURSOR cursor IS SCROLLABLE, BUT THE CURSOR IS NOT POSITIONED BEFORE THE FIRST ROW
-20124 OPEN CURSOR cursor FAILED BECAUSE THE CURSOR IS SCROLLABLE BUT THE CLIENT DOES NOT SUPPORT THIS
-20125 CALL TO STORED PROCEDURE procedure FAILED BECAUSE THE RESULT SET FOR CURSOR cursor IS SCROLLABLE, BUT THE CLIENT DOES NOT SUPPORT THIS
-20127 VALUE SPECIFIED ON FETCH STATEMENT FOR ABSOLUTE OR RELATIVE IS TOO LARGE FOR DRDA
-20129 SPECIAL REGISTERS IS NOT VALID AS USED
-20142 SEQUENCE sequence-name CANNOT BE USED AS SPECIFIED
-20143 THE ENCRYPTION OR DECRYPTION FUNCTION FAILED, BECAUSE THE ENCRYPTION PASSWORD VALUE IS NOT SET
-20144 THE ENCRYPTION IS INVALID BECAUSE THE LENGTH OF THE PASSWORD WAS LESS THAN 6 BYTES OF GREATER THAN 127 BYTES
-20146 DECRYPTION FAILED. THE DATA IS NOT ENCRYPTED
-20147 THE ENCRYPTION FUNCTION FAILED. MULTIPLE PASS ENCRYPTION IS NOT SUPPORTED
-20148 A RETURN STATEMENT DOES NOT EXIST OR WAS NOT INVOKED DURING THE EXECUTION OF ROUTINE routine-name WITH SPECIFIC NAME specific-name
-20163 HEXADECIMAL CONSTANT GX IS NOT ALLOWED
-20165 AN SQL DATA CHANGE STATEMENT WITHIN A FROM CLAUSE IS NOT ALLOWED IN THE CONTEXT IN WHICH IT WAS SPECIFIED
-20166 AN SQL DATA CHANGE STATEMENT WITHIN A SELECT SPECIFIED A VIEW view-name WHICH IS NOT A SYMMETRIC VIEW OR COULD NOT HAVE BEEN IDENTIFIED AS A SYMMETRIC VIEW
-20177 SET DATA TYPE CLAUSE ON ALTER TABLE SPECIFIED FLOATING POINT, BUT THIS CHANGE IS DISALLOWED
-20178 VIEW view-name ALREADY HAS AN INSTEAD OF operation TRIGGER DEFINED
-20179 THE INSTEAD OF TRIGGER CANNOT BE CREATED BECAUSE THE VIEW view-name IS DEFINED USING THE WITH CHECK OPTION
-20180 COLUMN column-name IN TABLE table-name CANNOT BE ALTERED AS SPECIFIED
-20181 COLUMN CANNOT BE ADDED TO THE INDEX index-name
-20182 PARTITIONING CLAUSE clause ON stmt-type STATEMENT FOR index-name IS NOT VALID
-20183 THE PARTITIONED, ADD PARTITION, ADD PARTITIONING KEY, ALTER PARTITION, ROTATE PARTITION, OR PARTITION BY RANGE CLAUSE SPECIFIED ON CREATE OR ALTER FOR name IS NOT VALID
-20185 CURSOR cursor-name IS NOT DEFINED TO ACCESS ROWSETS, BUT A CLAUSE WAS SPECIFIED THAT IS VALID ONLY WITH ROWSET ACCESS
-20186 A CLAUSE SPECIFIED FOR THE DYNAMIC SQL STATEMENT BEING PROCESSED IS NOT VALID
-20200 THE INSTALL OR REPLACE OF jar-id WITH URL url FAILED DUE TO REASON reason-code (reason-string)
-20201 THE INSTALL, REPLACE, REMOVE, OR ALTER OF jar-name FAILED DUE TO REASON reason-code (reason-string)
-20202 THE REMOVE OF jar-name FAILED AS class IS IN USE
-20203 USER-DEFINED FUNCTION OR PROCEDURE name HAS A JAVA METHOD WITH AN INVALID SIGNATURE. THE ERROR IS AT OR NEAR PARAMETER number. THE SIGNATURE IS signature
-20204 THE USER-DEFINED FUNCTION OR PROCEDURE routine-name WAS UNABLE TO MAP TO A SINGLE JAVA METHOD
-20207 THE INSTALL OR REMOVE OF jar-name SPECIFIED THE USE OF A DEPLOYMENT DESCRIPTOR
-20210 THE SQL STATEMENT CANNOT BE EXECUTED AS IT WAS PRECOMPILED AT A LEVEL THAT IS INCOMPATIBLE WITH THE CURRENT VALUE OF THE ENCODING BIND OPTION OR SPECIAL REGISTER
-20211 THE SPECIFICATION ORDER BY OR FETCH FIRST IN ROWS ONLY IS VALID
-20212 USER-DEFINED ROUTINE name ENCOUNTERED AN EXCEPTION ATTEMPTING TO LOAD JAVA CLASS class-name FROM JAR jar-name. ORIGINAL EXCEPTION: exception-string
-20213 STORED PROCEDURE procedure-name HAS RETAINED A DYNAMIC RESULT SET, PARAMETER number, THAT IS NOT VALID
-20223 THE ENCRYPT_TDES OR DECRYPT FUNCTION FAILED. ENCRYPTION FACILITY NOT AVAILABLE return-code, reason-code
-20224 ENCRYPTION DATA THAT WAS ORIGINALLY A BINARY STRING CANNOT BE DECRYPTED TO A CHARACTER STRING
-20227 REQUIRED CLAUSE IS MISSING FOR ARGUMENT number OF expression
-20232 CHARACTER CONVERSION FROM CCSID from-ccsid TO to-ccsid FAILED WITH ERROR CODE error-code FOR TABLE dbid.obid COLUMN column-number REQUESTED BY csect-name
-20235 THE COLUMN column-name CANNOT BE ADDED, ALTERED OR DROPPED BECAUSE table-name IS A MATERIALIZED QUERY TABLE
-20240 INVALID SPECIFICATION OF A SECURITY TABLE COLUMN column-name REASON CODE reason-code
-20248 ATTEMPTED TO EXPLAIN ALL CACHED STATEMENTS OR A CACHED STATEMENT WITH STMTID OR STMTTOKEN ID-token BUT THE REQUIRED EXPLAIN INFORMATION IS NOT ACCESSIBLE
-20249 THE PACKAGE package-name NEEDS TO BE REBOUND IN ORDER TO BE SUCCESSFULLY EXECUTED (token)
-20252 DIAGNOSTICS AREA FULL. NO MORE ERRORS CAN BE RECORDED FOR THE NOT ATOMIC STATEMENT
-20257 FINAL TABLE IS NOT VALID WHEN THE TARGET VIEW view-name OF THE SQL DATA CHANGE STATEMENT IN A FULLSELECT HAS AN INSTEAD OF TRIGGER DEFINED
-20258 INVALID USE OF INPUT SEQUENCE ORDERING
-20260 THE ASSIGNMENT CLAUSE OF THE UPDATE OPERATION AND THE VALUES CLAUSE OF THE INSERT OPERATION MUST SPECIFY AT LEAST ONE COLUMN THAT IS NOT AN INCLUDE COLUMN
-20264 FOR TABLE table-name, primary-auth-id WITH SECURITY LABEL primary-auth-id-seclabel IS NOT AUTHORIZED TO PERFORM operation ON A ROW WITH SECURITY LABEL row-seclabel. THE RECORD IDENTIFIER (RID) OF THIS ROW IS rid-number
-20265 SECURITY LABEL IS reason FOR primary-auth-id
-20266 ALTER VIEW FOR view-name FAILED
-20267 THE FUNCTION function-name (SPECIFIC specific-name) MODIFIES SQL DATA AND IS INVOKED IN AN ILLEGAL CONTEXT. REASON CODE reason-code
-20275 THE XML name IS NOT VALID. REASON CODE reason-code
-20281 Primary-auth-id DOES NOT HAVE THE MLS WRITE DOWN PRIVILEGE
-20283 A DYNAMIC CREATE STATEMENT CANNOT BE PROCESSED WHEN THE VALUE OF CURRENT SCHEMA DIFFERS FROM CURRENT SQLID
-20286 DB2 CONVERTED STRING token-type token FROM from-ccsid TO to-ccsid, AND RESULTED IN SUBSTITUTION CHARACTER
-20289 INVALID STRING UNIT unit SPECIFIED FOR FUNCTION function-name
-20295 THE EXECUTION OF A BUILT-IN FUNCTION function RESULTED IN AN ERROR REASON CODE reason-code
-20300 THE LIST OF COLUMNS SPECIFIED FOR THE clause CLAUSE NOT ALLOWED IN COMBINATION WITH THE LIST OF COLUMNS FOR THE PARTITIONING KEY FOR THE TABLE
-20304 INVALID INDEX DEFINITION INVOLVING AN XMLPATTERN CLAUSE OR A COLUMN OF DATA TYPE XML. REASON CODE = reason code
-20305 AN XML VALUE CANNOT BE INSERTED OR UPDATED BECAUSE OF AN DETECTED WHEN INSERTING INDEX OR UPDATING THE INDEX IDENTIFIED BY index-id ON TABLE table-name. REASON CODE = reason code
-20306 AN INDEX ON AN XML COLUMN CANNOT BE CREATED BECAUSE OF AN ERROR DETECTED WHEN INSERTING THE XML VALUES INTO THE INDEX. REASON CODE = reason-code
-20310 THE REMOVE OF jar-name1 FAILED, AS IT IS IN USE BY jar-name2
-20311 THE VALUE PROVIDED FOR THE NEW JAVA PATH IS ILLEGAL
-20312 THE ALTAR OF JAR jar-id FAILED BECAUSE THE SPECIFIED PATH REFERENCES ITSELF
-20313 DEBUG MODE OPTION FOR ROUTINE routine-name CANNOT BE CHANGED
-20314 THE PARAMETER LIST DOES NOT MATCH THE PARAMETER LIST FOR ALL OTHER VERSIONS OF ROUTINE routine-name
-20315 THE CURRENTLY ACTIVE VERSION FOR ROUTINE routine-name (routine-type) CANNOT BE DROPPED
-20316 THE CURRENTLY ACTIVE VERSION FOR ROUTINE routine-name (type) CANNOT BE DROPPED
-20327 THE DEPTH OF AN XML DOCUMENT EXCEEDS LIMIT OF 128 LEVELS
-20328 THE DOCUMENT WITH TARGET NAMESPACE namespace AND SCHEMA LOCATION location HAS ALREADY BEEN ADDED FOR THE XML SCHEMA IDENTIFIED BY schema name
-20329 THE COMPLETION CHECK FOR THE XML SCHEMA FAILED BECAUSE ONE OR MORE XML SCHEMA DOCUMENTS IS MISSING. ONE MISSING XML SCHEMA DOCUMENT IS IDENTIFIED BY uri-type AS uri
-20330 THE xsrobject-type IDENTIFIED BY XML uri-type1 uri1 AND XML uri-type2 uri2 IS NOT FOUND IN THE XML SCHEMA REPOSITORY
-20331 THE XML COMMENT VALUE string IS NOT VALID
-20332 THE XML PROCESSING INSTRUCTION VALUE string IS NOT VALID
-20337 MORE THAN ONE xsrobject-type EXISTS IDENTIFIED BY XML uri-type1 uri1 AND uri-type2 uri2 EXISTS IN THE XML SCHEMA REPOSITORY
-20338 THE DATA TYPE OF EITHER THE SOURCE OR TARGET OPERAND OF AN XMLCAST SPECIFICATION MUST BE XML
-20339 XML SCHEMA name IS NOT IN THE CORRECT STATE TO PERFORM OPERATION operation
-20340 XML SCHEMA xmlschema-name INCLUDES AT LEAST ONE XML SCHEMA DOCUMENT IN NAMESPACE namespace THAT IS NOT CONNECTED TO THE OTHER XML SCHEMA DOCUMENTS
-20345 THE XML VALUE IS NOT A WELL-FORMED DOCUMENT WITH A SINGLE ROOT ELEMENT
-20353 AN OPERATION INVOLVING COMPARISON CANNOT USE OPERAND name DEFINED AS STAT TYPE type-name
-20354 INVALID SPECIFICATION OF A ROW CHANGE TIMESTAMP COLUMN FOR TABLE table-name
-20355 THE STATEMENT COULD NOT BE PROCESSED BECAUSE ONE OF MORE IMPLICITLY CREATED OBJECTS ARE INVOLVED reason-code
-20356 THE TABLE WITH DBID = dbid AND OBID = obid CANNOT BE TRUNCATED BECAUSE DELETE TRIGGERS EXIST FOR THE TABLE, OR THE TABLE IS THE PARENT TABLE IN A REFERENTIAL CONSTRAINT
-20361 AUTHORIZATION ID authorization-name IS NOT DEFINED THE TRUSTED CONTEXT context-name
-20362 ATTRIBUTE attribute-name WITH VALUE value CANNOT BE DROPPED BECAUSE IT IS NOT PART OF THE DEFINITION OF TRUSTED CONTEXT context-name
-20363 ATTRIBUTE attribute-name WITH VALUE value IS NOT A UNIQUE SPECIFICATION FOR TRUSTED CONTEXT context-name
-20365 A SIGNALING NAN WAS ENCOUNTERED, OR AN EXCEPTION OCCURRED IN AN ARITHMETIC OPERATION OR FUNCTION INVOLVING A DECFLOAT
-20366 TABLE WITH DBID=dbid.obid AND OBID= obid CANNOT BE TRUNCATED BECAUSE UNCOMMITTED UPDATES EXIST ON THE TABLE WITH ‘IMMEDIATE’ OPTION SPECIFIED IN THE STATEMENT
-20369 AN ALTER TRUSTED CONTEXT STATEMENT FOR context-name ATTEMPTED TO REMOVE THE LAST CONNECTION TRUST ATTRIBUTE ASSOCIATE WITH THE TRUSTED CONTEXT
-20372 THE SYSTEM AUTHID CLAUSE OF A CREATE OR ALTER TRUSTED CONTEXT STATEMENT FOR context-name SPECIFIED authorization-name, BUT ANOTHER TRUSTED CONTEXT IS ALREADY DEFINED FOR THAT AUTHORIZATION ID
-20373 A CREATE OR ALTER TRUSTED CONTEXT STATEMENT SPECIFIED authorization-name MORE THAN ONCE OR THE TRUSTED CONTEXT IS ALREADY DEFINED TO BE USED BY THIS AUTHORISATION ID OR PUBLIC
-20374 AN ALTER TRUSTED CONTEXT STATEMENT FOR context-name SPECIFIED authorization-name BUT THE TRUSTED CONTEXT IS NOT CURRENTLY DEFINED TO BE USED BY THIS AUTHORISATION ID OR PUBLIC
-20377 AN ILLEGAL XML CHARACTER hex-char WAS FOUND IN AN SQL/XML EXPRESSION OR FUNCTION ARGUMENT THAT BEGINS WITH STRING start-string
-20380 ALTER INDEX WITH REGENERATE OPTION FOR index-name FAILED. INFORMATION RETURNED: SQLCODE sqlcode, SQLSTATE sqlstate, MESSAGE TOKENS token-list
-20381 ALTER INDEX WITH REGENERATE OPTION IS NOT VALID FOR index-name
-20382 CONTACTS ITEM CANNOT BE A SEQUENCE WITH MORE THAN ONE ITEM
-29385 THE STATEMENT CANNOT BE PROCESSED BECAUSE THERE ARE PENDING DEFINITION CHANGES FOR OBJECT object-name OF TYPE object-type (REASON reason-code)
-20398 ERROR ENCOUNTERED DURING XML PARSING AT LOCATION n text
-20399 ERROR ENCOUNTERED DURING XML VALIDATION: LOCATION n; TEXT: text XSRID schema-ID
-20400 XML SCHEMA ERROR n text
-20409 AN XML DOCUMENT OR CONSTRUCTED XML VALUE CONTAINS A COMBINATION OF XML NODES THAT CAUSES AN INTERNAL IDENTIFIER LIMIT TO BE EXCEEDED
-20410 THE NUMBER OF CHILDREN NODES OF AN XML NODE IN AN XML VALUE HAS EXCEEDED THE LIMIT NUMBER OF CHILDREN NODES
-20411 A FETCH CURRENT CONTINUE OPERATION WAS REQUESTED FOR cursor-name BUT THERE IS NO PRESERVED, TRUNCATED DATA TO RETURN
-20412 SPECIALIZATION OF AN XML VALUE RESULTED IN CHARACTERS THAT COULD NOT BE REPRESENTED IN THE TARGET ENCODING
-20422 A CREATE TABLE, OR DECLARE GLOBAL TEMPORARY TABLE STATEMENT FOR table-name ATTEMPTED TO CREATE A TABLE WITH ALL THE COLUMNS DEFINED AS HIDDEN
-20423 ERROR OCCURRED DURING TEXT SEARCH PROCESSING (server, index-name, text)
-20424 TEXT SEARCH SUPPORT IS AVAILABLE reason-code
-20425 Column-name (IN table-name) WAS SPECIFIED AS AN ARGUMENT TO A TEXT SEARCH FUNCTION, BUT A TEXT INDEX DOES NOT EXIST FOR THE COLUMN
-20426 CONFLICTING TEXT SEARCH ADMINISTRATION STORED PROCEDURE RUNNING ON THE SAME INDEX
-20427 ERROR OCCURRED DURING TEXT SEARCH ADMINISTRATION STORED PROCEDURE error
-20428 URI SPECIFIED IN THE XMLSCHEMA CLAUSE IS AN EMPTY STRING
-20430 GLOBAL VARIABLE variable-name CANNOT BE SET IN THIS CONTEXT
-20433 AN UNTYPED PARAMETER MARKER WAS SPECIFIED, BUT AN ASSUMED DATA TYPE CANNOT BE DETERMINED FROM ITS USE
-20434 AN UPDATE OPERATION HAS SET ALL OF ITS TARGET COLUMNS TO UNASSIGNED
-20435 THE SELECT CLAUSE WITH MULTIPLE INVOCATIONS OF THE ARRAY_AGG FUNCTION AND ALL INVOCATIONS DO NOT SPECIFY THE SAME SORT KEYS
-20436 THE DATA TYPE SPECIFIED FOR AN ARRAY TYPE IS NOT VALID
-20437 AN ARRAY INDEX CANNOT BE APPLIED TO AN OBJECT THAT IS NOT AN ARRAY
-20438 THE DATA TYPE OF THE EXPRESSION FOR AN ARRAY INDEX VALUE IS NOT CASTABLE TO THE DATA TYPE OF THE ARRAY INDEX
-20439 AN ARRAY INDEX WITH VALUE value IS NULL, OUT OF RANGE OR DOES NOT EXIST
-20440 AN ARRAY VALUE WITH CARDINALITY cardinality HAS TOO MANY ELEMENTS FOR THE REQUESTED OPERATION. THE MAXIMUM NUMBER OF ELEMENTS ALLOWED FOR THE REQUESTED OPERATION IS value
-20441 Type-name TYPE IS NOT VALID WHERE SPECIFIED. REASON CODE reason-code
-20442 THERE IS NOT ENOUGH STORAGE TO REPRESENT THE ARRAY VALUE
-20444 AN ERROR OCCURRED IN A KEY-EXPRESSION EVALUATION IN index-name INFORMATION RETURNED: SQLCODE: sqlcode, SQLSTATE: sqlstate, MESSAGE TOKEN token-list AND RID X rid
-20447 FORMAT STRING format-string IS NOT VALID FOR THE function-name FUNCTION
-20448 String-expression CANNOT BE INTERPRETED USING FORMAT STRING format-string FOR THE TIMESTAMP_FORMAT FUNCTION
-20457 THE PROCEDURE procedure-name HAS ENCOUNTERED AN UNSUPPORTED VERSION, version FOR PARAMETER number
-20465 THE BINARY XML VALUE IS INCOMPLETE OR CONTAINS UNRECOGNISED DATA AT LOCATION position WITH THE HEX DATA text
-20467 THE STATEMENT WAS NOT EXECUTED BECAUSE AN EXPRESSION IS NOT A CONSTANT OR VARIABLE. THE INVALID EXPRESSION IS IN THE STATEMENT NEAR THE SYNTAX ELEMENT syntax-element
-20469 ROW OR COLUMN ACCESS CONTROL CANNOT BE ACTIVATED FOR TABLE table-name FOR A REASON reason-code. Object-type object-name IS NOT IN A VALID STATE FOR ACTIVATING ACCESS CONTROL FOR THIS TABLE
-20470 Object-type1 object-name1 MUST BE DEFINED AS SECURE BECAUSE object-type2 object-name2 IS DEPENDENT ON IT
-20471 THE INSERT OR UPDATE IS NOT ALLOWED BECAUSE THE RESULTING ROW DOES NOT SATISFY ROW PERMISSIONS
-20472 PERMISSION OR MASK object-name CANNOT BE ALTERED AS SPECIFIED. REASON CODE reason-code
-20473 THE INPUT ARGUMENT OF FUNCTION function-name THAT IS DEFINED WITH THE NOT-SECURED OPTION MUST NOT REFERENCE COLUMN column-name FOR WHICH A COLUMN MASK IS ENABLED AND THE COLUMN ACCESS CONTROL IS ACTIVATED FOR THE TABLE
-20474 PERMISSION OR MASK CANNOT BE CREATED FOR THE object-name OBJECT OF THE object-type TYPE. REASON CODE reason-code
-20475 A COLUMN MASK IS ALREADY DEFINED FOR THE COLUMN column-name IN TABLE table-name (EXISTING MASK NAME mask-name)
-20476 THE function-name FUNCTION IS NOT ABLE TO USE FORMAT STRING format-string TO INTERPRET THE ARGUMENT string-expression
-20478 THE STATEMENT CANNOT BE PROCESSED BECAUSE COLUMN MASK mask-name (DEFINED FOR COLUMN column-name) EXISTS AND THE COLUM MASK CANNOT BE APPLIED OR THE DEFINITION OF THE MASK CONFLICTS WITH THE REQUESTED STATEMENT. REASON CODE reason-code
-20479 THE SOURCE TABLE table-name CANNOT BE ALTERED AS SPECIFIED BECAUSE THE TABLE IS INVOLVED IN ROW OR COLUMN ACCESS CONTROLS. REASON CODE reason-code
-20487 HASH ORGANISATION CLAUSE IS NOT VALID FOR table-name
-20488 SPECIFIED HASH SPACE IS TOO LARGE FOR THE IMPLICITLY CREATED TABLE SPACE. REASON reason-code. (PARTITION partition-number)
-20490 A VERSIONING CLAUSE WAS SPECIFIED FOR TABLE table-name, BUT THE TABLE CANNOT BE USED AS A SYSTEM PERIOD TEMPORAL TABLE. REASON CODE= reason-code
-20491 INVALID SPECIFICATION OF PERIOD period-name. REASON CODE= reason-code
-20493 A TIMESTAMP WITHOUT TIME ZONE VALUE CANNOT BE ASSIGNED TO A TIMESTAMP WITH TIME ZONE TARGET
-20494 A PUBLIC ALIAS NAME name, CAN ONLY BE QUALIFIED WITH SYSPUBLIC AND NOT SCHEMA NAME sechema-name
-20497 A STRING REPRESENTATION OF A DATETIME VALUE THAT CONTAINS A TIME ZONE CANNOT BE IMPLICITLY CAST TO A TARGET DEFINED AS DATETIME WITHOUT TIME ZONE
-20505 THE WITH ORDINALITY CLAUSE IS NOT VALID WITH UNNET OF AN ASSOCIATIVE ARRAY
-20517 XMLMODIFY ATTEMPTED TO UPDATE A COLUMN WHICH WAS NOT SPECIFIED IN THE UPDATE SET CLAUSE
-20522 INVALID SPECIFICATION OF WITHOUT OVERLAPS CLAUSE. REASON CODE reason-code
-20523 TABLE table-name WAS SPECIFIED AS A HISTORY TABLE, BUT THE TABLE DEFINITION IS NOT VALID FOR A HISTORY TABLE. REASON CODE= reason-code
-20524 INVALID PERIOD SPECIFICATION OR PERIOD CLAUSE FOR PERIOD period-name. REASON CODE= reason-code
-20525 THE REQUESTED ACTION IS NOT VALID FOR TABLE table-name BECAUSE THE TABLE IS THE WRONG TYPE OF TABLE. REASON CODE= reason-code
-20527 Period-name IS NOT A PERIOD IN TABLE table-name
-20528 THE TARGET OF THE DATA CHANGE OPERATION IS A TABLE table-name, WHICH INCLUDES A PERIOD period-name. A ROW THAT THIS DATA CHANGE OPERATION ATTEMPTED TO MODIFY WAS ALSO MODIFIED BY ANOTHER TRANSACTION
-20529 THE ARGUMENT OF THE WRAP FUNCTION OR CREATE_WRAPPED PROCEDURE IS NOT VALID
-20530 AN OBFUSCATED STATEMENT IS NOT VALID. REASON CODE= reason-code
-20531 THE VERION NUMBER actualversion SPECIFIED IN A BINARY XML VALUE IS NOT SUPPORTED. THE HIGHEST SUPPORTERED VERSION IS supported-version
-20535 THE DATE OF CHANGE OPERATION operation IS NOT SUPPORTED FOR THE TARGET OBJECT object-name BECAUSE OF AN IMPLICIT OR EXPLICIT SYSTEM PERIOD SPECIFICATION INVOLVING period-name. REASON CODE: reason-code
-20547 THE QUERY FAILED BECAUSE A NEGATIVE VALUE OR THE NULL VALUE WAS USED IN THE clause CLAUSE
-20550 AN ARGUMENT, OR COMBINATION OF ARGUMENTS, SPECIFIED FOR THE operator-name OPERATOR ARE NOT VALID
-20551 CONSTRUCTING AN ASSOCIATIVE ARRAY FAILED BECAUSE THE INPUT DATA INCLUDES AT LEAST ONE DUPLICATE ARRAY INDEX VALUE. DUPLICATED INDEX VALUE: value
-20553 AN ENABLE ARCHIVE CLAUSE WAS SPECIFIED FOR TABLE table-name, BUT THE TABLE CANNOT BE USED AS AN ARCHIVE ENABLED TABLE. REASON CODE= reason-code
-20554 TABLE table-name WAS SPECIFIED AS AN ARCHIVE TABLE, BUT THE TABLE DEFINITIONS IS NOT VALID FOR AN ARCHIVE TABLE. REASON CODE= reason-code
-20555 AN ARCHIVE-ENABLED TABLE IS NOT ALLOWED IN THE SPECIFIED CONTEXT. REASON CODE= reason-code
-20565 THE REPLACEMENT VALUE FOR built-in-global-var IS INVALID
-30000 EXECUTION FAILED DUE TO A DISTRIBUTION PROTOCOL ERROR THAT WILL NOT AFFECT THE SUCCESSFUL EXECUTION OF SUBSEQUENT COMMANDS OR SQL STATEMENTS: REASON reason-code (sub-code)
-30002 THE SQL STATEMENT CANNOT BE EXECUTED DUE TO A PRIOR CONDITION IN A CHAIN OF STATEMENTS
-30005 EXECUTION FAILED BECAUSE FUNCTION NOT SUPPORTED BY THE SERVER: LOCATION location-name PRODUCT ID product-identifier REASON reason-code (sub-code)
-30020 EXECUTION FAILED DUE TO A DISTRIBUTION PROTOCOL ERROR THAT CAUSED DEALLOCATION OF THE CONVERSATION: REASON <reason-code (sub-code)>
-30021 EXECUTION FAILED DUT TO A DISTRIBUTION PROTOCOL ERROR THAT WILL AFFECT THE SUCCESSFUL EXECUTION OF SUBSEQUENT COMMANDS OR SQL STATEMENTS: MANAGER manager AT LEVEL level NOT SUPPORTED ERROR
-30025 EXECUTION FAILED BECAUSE FUNCTION IS NOT SUPPORTED BY THE SERVER WHICH CAUSED TERMINATION OF THE CONNECTION: LOCATION location PRODUCT ID pppvvrr REASON reason-code (sub-code)
-30030 COMMIT REQUEST WAS UNSUCCESSFUL, A DISTRIBUTION PROTOCOL VIOLATION HAS BEEN DETECTED, THE CONVERSATION HAS BEEN DEALLOCATED. ORIGINAL SQLCODE=original-sqlcode AND ORIGINAL SQLSTATE= original-sqlstate
-30040 EXECUTION FAILED DUE TO UNAVAILABLE RESOURCES THAT WILL NOT AFFECT THE SUCCESSFUL EXECUTION OF SUBSEQUENT COMMANDS OR SQL STATEMENTS. REASON <reason-code> TYPE OF RESOURCE <resource-type> RESOURCE NAME <resource-name> PRODUCT ID <pppvvrrm> RDBNAME <rdbname>
-30041 EXECUTION FAILED DUE TO UNAVAILABLE RESOURCES THAT WILL AFFECT THE SUCCESSFUL EXECUTION OF SUBSEQUENT COMMANDS AND SQL STATEMENTS. REASON <reason-code> TYPE OF RESOURCE <resource-type> RESOURCE NAME <resource-name> PRODUCT ID <pppvvrrm> RDBNAME <rdbname>
-30045 EXECUTION FAILED BECAUSE THE DEFINITION OF OBJECT object-name OF TYPE object-type BEING ACCESSED AT server-name-1 DIFFERS FROM THE DEFINITION OF THE OBJECT AT server-name2
-30047 STATEMENT FAILED BECAUSE OBJECT OF TYPE object-type CANNOT BE ACCESSED USING DIFFERENT DISTRIBUTED PROTOCOLS oN A CONNECTION FROM server-name-1  TO server-name-2
-30050 <command-or-SQL-statement-type> COMMAND OR SQL STATEMENT INVALID WHILE BIND PROCESS IN PROGRESS
-30051 BIND PROCESS WITH SPECIFIED PACKAGE NAME AND CONSISTENCY TOKEN NOT ACTIVE
-30052 PROGRAM PREPARATION ASSUMPTIONS ARE INCORRECT
-30053 OWNER AUTHORISATION FAILURE
-30060 RDB AUTHORISATION FAILURE
-30061 RDB NOT FOUND
-30062 RDB ACCESS FAILURE
-30070 <command> COMMAND NOT SUPPORTED ERROR
-30071 <object-type> OBJECT NOT SUPPORTED ERROR
-30072 <parameter>:<subcode> PARAMETER NOT SUPPORTED ERROR
-30073 <parameter>:<subcode> PARAMETER VALUE NOT SUPPORTED ERROR
-30074 REPLY MESSAGE WITH codepoint (svrcod) NOT SUPPORTED ERROR
-30080 COMMUNICATION ERROR CODE (subcode)
-30081 prot COMMUNICATION ERROR DETECTED. API= api, LOCATION= loc, FUNCTION= func, ERROR CODES= rc1, rc2, rc3
-30082 CONNECTION FAILED FOR SECURITY REASON reason-code (reason-string)
-30090 REMOTE OPERATION INVALID FOR APPLICATION EXECUTION ENVIRONMENT
-30104 ERROR IN BIND OPTION option AND BIND VALUE value
-30105 BIND OPTION option1 IS NOT ALLOWED WITH BIND OPTION
-30106 INVALID INPUT DATA DETECTED FOR A MULTIPLE ROW INSERT OPERATION. INSERT PROCESSING IS TERMINATED

 Resource Types

Type code Type of Resource Name, Content, Format
00000100 Database DB
00000200 Table space DB.SP
00000201 Index space DB.SP
00000202 Table space RD.DB.TS
00000205 Compression Dictionary DB.SP
00000210 Partition DB.SP.PT
00000220 Data set DSN
00000230 Temporary file SZ
00000240 Database procedure DBP
00000300 Page DB.SP.PG
00000301 Index minipage DB.SP.PG.MP
00000302 Table space page DB.SP.PG
00000303 Index space page DB.SP.PG
00000304 Table space RID DB.SP.RID
00000305 Index access/table space RID DB.SP.RID
00000306 Index access/table space page DB.SP.PG
00000307 Index space EOF DB.SP.01
00000308 Table space page DB.SP.PT.PG
00000309 Index space page DB.SP.PT.PG
0000030A Table space RID DB.SP.PT.RID
00000400 ICF catalog IC
00000401 Authorization function
00000402 Security Server SAF/RACF return/reason codes
00000500 Storage group SG
00000600 EDM pool space
00000602 EDM DBD space
00000603 EDM DYNAMIC STATEMENT space
00000604 EDM skeleton storage
00000605 EDM above-the-bar
00000606 EDM below-the-bar
00000700 Buffer pool space BP
00000701 Group buffer pool GBP
00000800 Plan PL
00000801 Package COLLECTION.PACKAGE.CONTOKEN
00000802 BINDLOCK01 through BINDLOCK20 BINDOCK01 through BINDLOCK20
00000900 32KB data area
00000901 Sort storage
00000903 Hash anchor DB.SP.PG.AI
00000904 RIDLIST storage
00000905 IRLM storage
00000906 DB2 MEMBER
00000907 Data Space MEMBER
00000908 Basic Floating Point Extensions Facility
00000909 Extended Time-of-Day (TOD) Clock
0000090A XML storage
00000A00 Table RD.CR.TB
00000A10 Alias RELDEP. OWNER. ALIAS. RD.CR.AL
00000A11 Distinct type SC.DT
00000A12 User-defined function SC.SN
00000A13 Stored procedure SC.SN
00000A14 Sequence
00000B00 View RD.CR.VW
00000C00 Index RD.CR.IX
00000C01 Index CR.IX
00000D00 DBID/OBID RD.DI.OI
00000D01 DBID/OBID DI.OI
00000D02 OBID OI
00000E00 SU limit exceeded CN
00000F00 Auxiliary column DI.OI.ROWID.COLN

DI.OI.DOCID.COLN

00000F01 LOB lock DIX.PIX.ROWID.VRSN
00000F81 XML lock DIX.PIX.DOCID
00001000 DDF LOCATION or SUBSYSTEM ID
00001001 System conversation LU.MODE. RTNCD. FDBK2. RCPRI. RCSEC. SENSE
00001002 Agent conversation LU.MODE. RTNCD. FDBK2. RCPRI. RCSEC. SENSE
00001003 CNOS processing LU.MODE. RTNCD. FDBK2. RCPRI. RCSEC. SENSE
00001004 CDB (Communication database) LOCATION.AUTHORIZATION ID.PL
00001005 DB access agent LOCATION
00001007 TCP/IP domain name LINKNAME.DOMAIN.ERRNO
00001008 TCP/IP service name LOCATION.SERVICE.ERRNO
00001080 ACCEL SERVER.DOMAIN
00001102 Bootstrap data set (BSDS) MEMBER
00002000 Table space CS-claim class DB.SP
00002001 Table space RR-claim class DB.SP
00002002 Table space write-claim class DB.SP
00002003 Index space CS-claim class DB.SP
00002004 Index space RR-claim class DB.SP
00002005 Index space write-claim class DB.SP
00002006 Table space partition CS-claim class DB.SP.PT
00002007 Table space partition RR-claim class DB.SP.PT
00002008 Table space partition write-claim class DB.SP.PT
00002009 Index space partition CS-claim class DB.SP.PT
00002010 Index space partition RR-claim class DB.SP.PT
00002011 Index space partition write-claim class DB.SP.PT
00002100 Table space DBET entry DB.SP
00002101 Index space DBET entry DB.SP
00002102 Table space partition DBET entry DB.SP.PT
00002103 Index space partition DBET entry DB.SP.PT
00002104 DBET hash chain lock timeout INTERNAL LOCK NN
00002105 Logical partition DBET entry DB.SP.PT
00002200 Routine Parameter Storage DBP
00002201 Debug Agent Storage DBP
00002300 ICSF encryption and decryption facilities
00003000 Code (release maintenance level or system parameter) REL, APAR, ZPARM
00003002 Number of Stored Procedures
00003072 Index
00003073 Index
00003328 Release dependency
00003329 DBID/OBID DI.OI
00003330 OBID limit exceeded
00003840 LOB column
00004000 Profile exception threshold exceeded PID.PTYPE.PNAME

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
SQL Positive Return Codes in Db2 12 https://www.bmc.com/blogs/db2-sql-positive-return-codes/ Mon, 01 Apr 2019 20:38:49 +0000 http://s27433.p402.sites.pressdns.com/?p=13271 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) 000 SUCCESSFUL EXECUTION +012 THE UNQUALIFIED COLUMN NAME column-name WAS INTERPRETED AS A CORRELATED REFERENCE +098 A DYNAMIC SQL STATEMENT ENDS WITH A SEMICOLON +100 ROW NOT FOUND FOR FETCH, UPDATE OR DELETE, OR THE RESULT OF A QUERY IS AN […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

000 SUCCESSFUL EXECUTION
+012 THE UNQUALIFIED COLUMN NAME column-name WAS INTERPRETED AS A CORRELATED REFERENCE
+098 A DYNAMIC SQL STATEMENT ENDS WITH A SEMICOLON
+100 ROW NOT FOUND FOR FETCH, UPDATE OR DELETE, OR THE RESULT OF A QUERY IS AN EMPTY TABLE
+110 SQL UPDATE TO A DATA CAPTURE TABLE NOT SIGNALLED TO ORIGINATING SUBSYSTEM
+111 THE SUBPAGES OPTION IS NOT SUPPORTED FOR TYPE 2 INDEXES
+117 THE NUMBER OF INSERT VALUES IS NOT THE SAME AS THE NUMBER OF OBJECT COLUMNS
+162 TABLESPACE database-name.tablespace-name HAS BEEN PLACED IN CHECK PENDING
+203 THE QUALIFIED COLUMN NAME column-name WAS RESOLVED USING A NON-UNIQUE OR UNEXPOSED NAME
+204 name IS AN UNDEFINED NAME
+205 column-name IS NOT A COLUMN OF TABLE insert-name
+206 column-name IS NOT A COLUMN OF AN INSERTED TABLE, UPDATED TABLE, OR ANY TABLE IDENTIFIED IN A FROM CLAUSE
+217 THE STATEMENT WAS NOT EXECUTED AS ONLY EXPLAIN INFORMATION REQUESTS ARE BEING PROCESSED
+218 THE SQL STATEMENT REFERENCING A REMOTE OBJECT CANNOT BE EXPLAINED
+219 THE REQUIRED EXPLANATION TABLE table-name DOES NOT EXIST
+220 THE COLUMN column-name IN EXPLANATION TABLE table-name IS NOT DEFINED PROPERLY
+222 HOLE DETECTED USING CURSOR cursor-name
+231 CURRENT POSITION OF CURSOR cursor-name IS NOT VALID FOR THE SPECIFIED FETCH ORIENTATION OF THE CURRENT ROW OR ROWSET
+236 SQLDA INCLUDES integer1 SQLVAR ENTIRES, BUT integer2 ARE REQUIRED FOR integer3 COLUMNS
+236 SQLDA INCLUDES integer1 SQLVAR ENTIRES, BUT integer2 ARE REQUIRED FOR integer3 COLUMNS
+237 SQLDA INCLUDES integer1 SQLVAR ENTIRES, BUT integer2 ARE REQUIRED BECAUSE AT LEAST ONE OF THE COLUMNS BEING DESCRIBED IS A DISTINCT TYPE
+238 SQLDA INCLUDES integer1 SQLVAR ENTIRES, BUT integer2 SQLVAR ENTRIES ARE NEEDED FOR integer3 COLUMNS BECAUSE AT LEAST ONE OF THE COLUMNS BEING DESCRIBED IS A DISTINCT TYPE
+239 SQLDA INCLUDES integer1 SQLVAR ENTIRES, BUT integer2 ARE REQUIRED FOR integer3 COLUMNS BECAUSE AT LEAST ONE OF THE COLUMNS BEING DESCRIBED IS A DISTINCT TYPE
+252 A NON-ATOMIC statement STATEMENT SUCCESSFULLY PROCESSED ALL REQUESTED ROWS, WITH ONE OR MORE WARNING CONDITION
+304 A VALUE WITH DATA TYPE data-type1 CANNOT BE ASSIGNED TO A HOST VARIABLE BECAUSE THE VALUE IS NOT WITHIN THE RANGE OF THE HOST VARIABLE IN POSITION position-number WITH DATA TYPE data-type2
+331 THE NULL VALUE HAS BEEN ASSIGNED TO A HOST VARIABLE OR PARAMETER BECAUSE THE STRING CANNOT BE CONVERTED FROM source-ccsid TO target-ccsid. REASON reason-code, POSITION position-number
+335 DBS CONVERTED A HOST VARIABLE, PARAMETER, OR COLUMN NUMBER var-num var-name-or-num TO COLUMN NAME, HOST VARIABLE, OR EXPRESSION NUMBER col-name-or-num FROM from ccsid TO to-ccsid, AND RESULTING IN SUBSTITUTION CHARACTERS
+339 THE SQL STATEMENT HAS BEEN SUCCESSFULLY EXECUTED, BUT THERE MAY BE SOME CHARACTER CONVERSION INCONSISTENCIES
+347 THE RECURSIVE COMMON TABLE EXPRESSION name MAY CONTAIN AN INFINITE LOOP
+354 A ROWSET FETCH STATEMENT MAY HAVE RETURNED ONE OR MORE ROWS OF DATA. HOWEVER, ONE OR MORE WARNING CONDITIONS WERE ALSO ENCOUNTERED. USE THE GET DIAGNOSTICS STATEMENT FOR MORE INFORMATION REGARDING THE CONDITIONS THAT WERE ENCOUNTERED
+361 COMMAND WAS SUCCESSFUL BUT RESULTED IN THE FOLLOWING: msg-token
+364 DECFLOAT EXCEPTION exception-type HAS OCCURRED DURING operation-type OPERATION, POSITION position-type
+385 ASSIGNMENT TO AN SQLSTATE OR SQLCODE VARIABLE IN AN SQL ROUTINE routine-name MAY BE OVERWRITTEN AND DOES NOT ACTIVATE ANY HANDLER
+394 ALL USER SPECIFIED OPTIMIZATION HINTS USED DURING ACCESS PATH SELECTION
+395 USER SPECIFIED OPTIMIZATION HINTS ARE INVALID (REASON CODE= ‘reason-code’). THE OPTIMIZATION HINTS ARE IGNORED
+402 LOCATION location IS UNKNOWN
+403 THE LOCAL OBJECT REFERENCED BY CREATE ALIAS STATEMENT DOES NOT EXIST
+434 clause IS A DEPRECATED FEATURE
+438 APPLICATION RAISED WARNING WITH DIAGNOSTIC TEXT: text
+440 NO routine-type BY THE NAME routine-name HAVING COMPATIBLE ARGUMENTS WAS FOUND
+445 VALUE value HAS BEEN TRUNCATED
+462 EXTERNAL FUNCTION OR PROCEDURE name (SPECIFIC NAME specific-name) HAS RETURNED A WARNING SQLSTATE, WITH DIAGNOSTIC TEXT text
+464 PROCEDURE proc RETURNED num QUERY RESULT SETS, WHICH EXCEEDS THE DEFINED LIMIT integer
+466 CREATE PROCEDURE proc RETURNED num QUERY RESULTS SETS
+494 NUMBER OF RESULT SETS IS GREATER THAN NUMBER OF LOCATORS
+495 ESTIMATED PROCESSOR COST OF estimate-amount1 PROCESSOR SECONDS (estimate-amount2 SERVICE UNITS) IN COST CATEGORY cost-category EXCEEDS A RESOURCE LIMIT WARNING THRESHOLD OF limit-amount SERVICE UNITS
+535 THE RESULT OF THE POSITIONED UPDATE OR DELETE MAY DEPEND ON THE ORDER OF THE ROWS
+541 THE REFERENTIAL OR UNIQUE CONSTRAINT name HAS BEEN IGNORED BECAUSE IT IS A DUPLICATE
+551 auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name
+552 auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation
+558 THE WITH GRANT OPTION IS IGNORED
+561 THE ALTER, INDEX, REFERENCES, AND TRIGGER PRIVILEGES CANNOT BE GRANTED PUBLIC AT ALL LOCATIONS
+562 A GRANT OF A PRIVILEGE WAS IGNORED BECAUSE THE GRANTEE ALREADY HAS THE PRIVILEGE FROM THE GRANTOR
+585 THE COLLECTION collection-id APPEARS MORE THAN ONCE WHEN SETTING THE special-register SPECIAL REGISTER
+599 COMPARISON FUNCTIONS ARE NOT CREATED FOR A DISTINCT TYPE BASED ON A LONG STRING DATA TYPE
+610 A CREATE/ALTER ON OBJECT object-name HAS PLACED OBJECT IN utility PENDING
+650 THE TABLE BEING CREATED OR ALTERED CANNOT BECOME A DEPENDENT TABLE
+653 TABLE table-name IN PARTITIONED TABLESPACE tspace-name IS NOT AVAILABLE BECAUSE ITS PARTITIONED INDEX HAS NOT BEEN CREATED
+655 STOPGROUP stogroup_name HAS BOTH SPECIFIC AND NON-SPECIFIC VOLUME IDS. IT WILL NOT BE ALLOWED IN FUTURE RELEASES
+658 THE SUBPAGES VALUE IS IGNORED FOR THE CATALOG INDEX index-name
+664 THE INTERNAL LENGTH OF THE LIMIT-KEY FIELDS SPECIFIED IN THE PARTITION CLAUSE OF THE statement-name STATEMENT EXCEEDS THE EXISTING INTERNAL LIMIT KEY LENGTH STORED IN CATALOG TABLE table-name
+738 DEFINITION CHANGE OF object object-name MAY REQUIRE SIMILAR CHANGE ON READ-ONLY SYSTEMS
+799 A SET STATEMENT REFERENCES A SPECIAL REGISTER THAT DOES NOT EXIST AT THE SERVER SITE
+802 EXCEPTION ERROR exception-type HAS OCCURRED DURING operation-type OPERATION ON data-type DATA, POSITION position-number
+806 BIND ISOLATION LEVEL RR CONFLICTS WITH TABLESPACE LOCKSIZE PAGE OR LOCKSIZE ROW AND LOCKMAX 0
+807 THE RESULT OF DECIMAL MULTIPLICATION MAY CAUSE OVERFLOW
+863 THE CONNECTION WAS SUCCESSFUL BUT ONLY SBCS WILL BE SUPPORTED
+883 ROLLBACK TO SAVEPOINT OCCURRED WHEN THERE WERE OPERATIONS THAT CANNOT BE UNDONE, OR AN OPERATION THAT CANNOT BE UNDONE WAS PERFORMED WHEN THERE WAS A SAVEPOINT OUTSTANDING
+4726 THE STATEMENT WAS SUCCESSFULLY PREPARED, BUT IT CANNOT BE EXECUTED
+4745 A SECTION WAS BOUND SUCCESSFULLY, BUT AN ERROR OCCURRED WHEN A STATEMENT IN A RELATED EXTENDED SECTION WAS BOUND. INFORMATION RETURNED: SECTION NUMBER section-number, SQLCODE sqlcode, SQLSTATE sqlstate, AND MESSAGE TOKENS token-list
+4751 bind-type WARNING FOR PACKAGE = package-name, THE USE OF keyword RESULTED IN UNSUCCESSFUL COMPLETION FOR ONE OR MORE STATEMENTS
+20002 THE clause SPECIFICATION IS IGNORED FOR THE OBJECT object-name
+20007 USE OF OPTIMIZATION HINTS IS DISALLOWED BY A DB2 SUBSYSTEM THE SPECIAL REGISTER ‘OPTIMIZATION HINT’ IS SET TO THE DEFAULT VALUE OF BLANKS
+20122 DEFINE NO OPTION IS NOT APPLICABLE IN THE CONTEXT SPECIFIED
+20141 TRUNCATION OF VALUE WITH LENGTH length OCCURRED FOR hv-or-parm-number
+20187 ROLLBACK TO SAVEPOINT CAUSED A NOT LOGGED TABLE SPACE TO BE PLACED IN THE LPL
+20237 FETCH PRIOR ROWSET FOR CURSOR cursor-name RETURNED A PARTIAL ROWSET
+20245 NOT PADDED CLAUSE IS IGNORED FOR INDEXES CREATED ON AUXILIARY TABLES
+20270 OPTION NOT SPECIFIED FOLLOWING ALTER PARTITION CLAUSE
+20271 THE NAME AT ORDINAL POSITIONposition number IN THE STATEMENT, WITH NAME object-name, WAS TRUNCATED
+20272 TABLE SPACE table-space-name HAS BEEN CONVERTED TO USE TABLE-CONTROLLED PARTITIONING INSTEAD OF INDE CONTROLLED PARTIONING, ADDITIONAL INFORMATION old-limit-key-value
+20341 OWNERSHIP TRANSFER WAS IGNORED BECAUSE auth-id IS ALREADY THE OWNER OF THE OBJECT
+20348 THE PATH VALUE HAD BEEN TRUNCATED
+20360 TRUSTED CONNECTION CAN NOT BE ESTABLISHED FOR SYSTEM AUTHID authorization-name
+20365 A SIGNALING NAN WAS ENCOUNTERED, OR AN EXCEPTION OCCURRED IN AN ARITHIMETIC OPERATION OR FUNCTION INVOLVING A DECFLOAT
+20367 OPTION clause IS NOT SUPPORT IN THE CONTEXT IN WHICH IS WAS SPECIFIED
+20371 THE ABILITY TO USE TRUSTED CONTEXT context-name WAS REMOVED FROM SOME, BUT NOT ALL AUTHORIZATION IDS SPECIFIED IN THE STATEMENT
+20378 A NON-ATOMIC statement STATEMENT SUCCESSFULLY COMPLETED FOR SOME OF THE REQUESTED ROWS, POSSIBLY WITH WARNING, AND ONE OR MORE ERRORS, AND THE CURSOR CAN BE USED
+20458 THE PROCEDURE procedure-name HAS ENCOUNTERED AN INTERNAL PARAMETER PROCESSING ERROR IN PARAMETER number1. THE VALUE FOR PARAMETER number2 CONTAINS FURTHER INFORMATION ABOUT THE ERROR
+20459 THE PROCEDURE procedure-name HAD ENCOUNTERED AN INTERNAL PARAMETER PROCESSING ERROR. THE VALUE FOR PARAMETER number CONTAINS FURTHER INFORMATION ABOUT THE ERROR
+20460 THE PROCEDURE procedure-name SUPPORTS A HIGHER VERSION, version1. THAN THE SPECIFIED VERSION, version2, FOR PARAMETER number
+20461 THE PROCEDURE procedure-name RETURNED OUTPUT IN THE ALTERNATE LOCALE, locale1, INSTEAD OF THE LOCALE locale2, SPECIFIED IN PARAMETER number
+20468 THE COMBINATION OF TARGET NAMESPACE target-namespace AND SCHEMA LOCATION HINT location-hint IS NOT UNIQUE IN THE DB2 XML SCHEMA REPOSITORY
+20520 ATTEMPT TO USE A DEPRECATED FEATURE ON OBJECT object-name. REASON CODE reason-code
+20543 A SYSTEM PARAMETER WAS OVERRIDDEN FOR object-name WHEN PROCESSING THE statement-name STATEMENT.REASON reason-code
+30100 OPERATION COMPLETED SUCCESSFULLY BUT A DISTRIBUTION PROTOCOL VIOLATION HAS BEEN DETECTED. ORIGINA SQLCODE=original-sqlcode AND ORIGINAL SQLSTATE=original-sqlstate

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
IBM Utilities in Db2 12 https://www.bmc.com/blogs/db2-ibm-utilities/ Mon, 01 Apr 2019 20:35:11 +0000 http://s27433.p402.sites.pressdns.com/?p=13269 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) BACKUP SYSTEM .-FULL-----. >>-BACKUP SYSTEM--+-----------+--+-----------------------+------------------> ‘-DATA ONLY-‘ +-ESTABLISH INCREMENTAL-+ ‘-END INCREMENTAL-------’ >--+---------------------------------------------------------------------+--> +--ALTERNATE_CP (copy-pool)--+-----------------+--+----------------+--+ ‘-DBBSG(stogroup)-‘ ‘-LGBSG(stogroup-‘ >--+-----------------------------------------------------------+----------->< +--FORCE----------------------------------------------------+ +--DUMP--+-------------------+--+-------+-------------------+ ǀ ‘- dumpclass-spec---+ ‘-FORCE-‘ ǀ ‘-DUMPONLY--+-------------------------+-+------------------+’ ‘- TOKEN- (X’byte-string’)’ ‘- dumpclass-spec –‘ dumpclass-spec: >--DUMPCLASS-(--dc1---)---------------------------------------------------->< ǀ-dc2-ǀ ǀ-dc3-ǀ ǀ-dc4-ǀ ǀ-dc5-ǀ CATMAINT >>-CATMAINT—UPDATE--+-------------------------------------------------------> ǀ ǀ […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

BACKUP SYSTEM

                   .-FULL-----.
>>-BACKUP SYSTEM--+-----------+--+-----------------------+------------------>
                  ‘-DATA ONLY-‘  +-ESTABLISH INCREMENTAL-+
                                 ‘-END INCREMENTAL-------’

>--+---------------------------------------------------------------------+-->
   +--ALTERNATE_CP (copy-pool)--+-----------------+--+----------------+--+
                                ‘-DBBSG(stogroup)-‘  ‘-LGBSG(stogroup-‘
>--+-----------------------------------------------------------+----------->< +--FORCE----------------------------------------------------+ +--DUMP--+-------------------+--+-------+-------------------+ ǀ ‘- dumpclass-spec---+ ‘-FORCE-‘ ǀ ‘-DUMPONLY--+-------------------------+-+------------------+’ ‘- TOKEN- (X’byte-string’)’ ‘- dumpclass-spec –‘ dumpclass-spec: >--DUMPCLASS-(--dc1---)---------------------------------------------------->< ǀ-dc2-ǀ
              ǀ-dc3-ǀ
              ǀ-dc4-ǀ
              ǀ-dc5-ǀ

CATMAINT

>>-CATMAINT—UPDATE--+------------------------------------------------------->
                    ǀ                            ǀ
                    ‘—LEVEL—(--catalog-level--)--'
>--+------------------------------------------------+----------------------->
   ǀ        .--------------------------------------. ǀ
   ǀ        V                                      ǀ ǀ
   +-SCHEMA----SWITCH(schema_name,new_schema_name)-+-+
   ǀ                 .-,---------.                   ǀ
   ǀ                 V           ǀ                   ǀ
   ‘-OWNER—FROM--(----owner_name-+--)—TO ROLE--------’
>--+-------------------------------------------+-+-----------------------+->< ǀ      .---------------------------------.  ǀ ǀ_UTILX__BASIC__________ǀ
   ǀ      V                                 ǀ  ǀ        ǀ_EXTENDED_ǀ
   ‘-VCAT---SWITCH(vcat_name,new_vcat_name)-+-‘         ǀ_RESET____ǀ

CHECK DATA

               .--------------------------------------.
               V                                      ǀ
>>-CHECK--DATA----table-space-spec--+---------------+-+--------------------->
                                    ‘-PART--integer-‘ .
                                                    .--SHRLEVEL-REFERENCE-.
>-+-------------------------+----------+-+-------+--+---------------------+->
  ǀ-INCLUDE-XML-TABLESPACES-+---ALL----ǀ ‘-CLONE-‘  ‘--SHRLEVEL--CHANGE---’
                            ǀ-xml-spec-ǀ
               .-SCOPE--PENDING-----.
>--drain-spec--+--------------------+--------------------------------------->
               ‘-SCOPE--+-AUXONLY-+-‘
                        +-ALL-----+
                        ‘-REFONLY-‘
   .-AUXERROR--REPORT--------.
>--+-------------------------+---------------------------------------------->
   ‘-AUXERROR--INVALIDATE----’
   .-LOBERROR--REPORT-----.  .-XMLERROR--REPORT-----.
>--+----------------------+--+----------------------+----------------------->
   ‘-LOBERROR--INVALIDATE-‘  ‘-XMLERROR--INVALIDATE-‘

>--+-------------------------------------------------------+---------------->
   ǀ                 .-----------------------------------. ǀ
   ǀ                 V                                   ǀ ǀ
   ‘-FOR--EXCEPTION----IN--table-name1--USE--table-name2-+-‘
    .-DELETE--NO---------------.  .-EXCEPTIONS--0-------.
>--+---------------------------+--+---------------------+------------------->
   ǀ              .-LOG--YES-  ǀ  ‘-EXCEPTIONS--integer-‘
   ‘-DELETE--YES--+----------+-‘
                  ‘-LOG--NO--’
   .-ERRDNN--SYSERR-.
>--+----------------+------------------------------------------------------->
   ‘-ERRDNN--ddname-‘
   .-WORKDDN--SYSUT1--,--SYSUT2----------.
>--+-------------------------------------+---------------------------------->
   ‘-WORKDDN--+-ddname1--,--ddname2----+-‘
              ǀ          .-,--SYSUT2-. ǀ
              +-ddname1--+-----------+-+
              ǀ .-SYSUT1-.             ǀ
              ‘-+--------+--,--ddname2-‘
>--+------------------------+--+-----------------------+-------------------->
   ǀ           .-SYSPUNCH-. ǀ  ‘-SORTDEVT--device-type-‘
   ‘-PUNCHDDN--+-ddname---+-‘
>--+------------------+---------------------------------------------------->< ‘-SORTNUM--integer-‘

CHECK INDEX

>>-CHECK--INDEX------------------------------------------------------------->
>-+-LIST—listdef-name----------------------------------------------------+-->
  +-(-index-name-+--------------+-)--------------------------------------+
  ǀ              ‘-PART-integer-‘                                        ǀ
  ‘-(ALL)-TABLESPACE-+----------------+-table-space-name-+-------------+-‘
                     ‘-database-name.-‘                  ‘-PART-integer’
              .-SHRLEVEL--REFERENCE-.
>--+-------+--+---------------------+--------------------------->
   ‘-CLONE-‘  ‘-SHRLEVEL--CHANGE----’
   .-DRAIN_WAIT--IRLMRWT value-. .-RETRY--UTIMOUT value-.
>--+---------------------------+--+----------------------+------>
   ‘-DRAIN_WAIT--integer-------’ ‘-RETRY--integer-------’
                             .-WORKDDN--SYSUT1-.
>--+----------------------+--+-----------------+---------------------------->
   ‘-RETRY_DELAY--integer-‘  ‘-WORKDDN--ddname-‘
>--+-----------------------+--+------------------+-------------------------->
   ‘-SORTDEVT--device-type-‘  ‘-SORTNUM--integer-‘
>--+-----------------------+----------------------------------------------->< ‘-PARALLEL-num-subtasks-‘ 


CHECK LOB

                                     .-SHRLEVEL—REFERENCE-.
>>-CHECK—LOB--lob-table-space-spec--+---------------------+-----------------> 
                                    ‘-SHRLEVEL--CHANGE----’
               .-EXCEPTIONS--0-------.
>--drain-spec--+---------------------+-------------------------------------->
               ‘-EXCEPTIONS--integer-‘
>--+------------------------+--+-----------------------+-------------------->
   ǀ           .-SYSPUNCH-. ǀ  ‘-SORTDEVT--device-type-‘
   ‘-PUNCHDDN--+-ddname---+-‘
>--+------------------+----------------------------------------------------->
   ‘-SORTNUM--integer-‘

Lob-table-space-spec:
>-TABLESPACE-+---------------+-lob-table-space-name--+-------+-------------->
             ‘-database-name-‘                       ‘-CLONE-‘



drain-spec:
   .-DRAIN_WAIT--IRLMRWT value-. .-RETRY--UTIMOUT value-.
>--+---------------------------+--+----------------------++-----------------+>
   ‘-DRAIN_WAIT--integer-------’ ‘-RETRY--integer-------’ ‘-RETRY_DELAY-int-‘


COPY

                                         .-FULL--YES-----------.
>>-+-LIST--listdef-name--ǀ data-set-spec ǀ--+------------------+--------------------------------+----->
   ǀ                                        +-FULL--NO---------+                                ǀ
   ǀ                                        ‘-ǀ changelimit-spec ǀ-‘                            ǀ
   ǀ .-----------------------------------------------------------------------------------------+ǀ
   ǀ V                       .-FULL--YES------------.  .DSNUM--ALL----------.                  ǀ
   ‘---+-table-space-spec-+--+----------------------+--+--------------------+--data-set-spec-+-‘
       ‘-index-name-spec-‘   +-FULL--NO-------------+  ǀ                    ǀ
                             ‘-ǀ changelimit-spec ǀ-‘  ‘-DSNUM--integer-----'

>--+----------------------------------------------------------------+-------->
   ‘-PARALLEL-+---------------+-+---------------------------------+-‘
              ‘-(num-objects)-‘ ‘-TAPEUNITS--(--num-tape-units--)-‘

                 (2)  .-SYSTEMPAGES--YES-.
>--+-----------+------+------------------+----------------------------------->
   ‘-CHECKPAGE-‘      ‘-SYSTEMPAGES--NO--’

>--+--------------------------------------------------+--------------------->< ǀ .-NO---------. ǀ ‘-FLASHCOPY--+-YES--------+--+-------------------+-‘ ‘-CONSISTENT-‘ ‘-FGCOPYDDN(ddname)-‘ Concurrent-spec: >>-+-LIST--listdef-name--data-set-spec----------------------------------+---->
   ǀ .----------------------------------------------------------------. ǀ
   ǀ V                       .-DSNUM--ALL----------.                  ǀ ǀ
   ‘---+-table-space-spec-+--+---------------------+--data-set-spec-+-‘
       ‘-index-name-spec--'  ‘-DSNUM--integer------’

>--data-set-spec--FILTERDDN--(ddname)--CONCURRENT--------------------------->< Data-set spec: >>-+-COPYDDN(-+-ddname1-------+---------+-+-)-+------------------------------------------+-+----->< ǀ          ǀ               ‘-,ddname-‘ ǀ   ‘-RECOVERYDDN(-+-ddname3--+----------+-+-)-‘ ǀ
   ǀ          ‘-,ddname2------------------’                  ǀ          ‘-,ddname4-‘ ǀ     ǀ
   ǀ                                                         ‘-,ddname4--------------’     ǀ
   ‘-RECOVERYDDN(-ǀ-ddname3--+----------+-+-)----------------------------------------------’
                  ǀ           ‘-,ddname4-‘ ǀ
                  ‘-ddname4---------------’

COPYTOCOPY

>>-COPYTOCOPY--------------------------------------------------------------->
>--+-LIST--listdef-name--from-copy-spec--data-set-spec------+---+-------+--->
   ǀ .----------------------------------------------------. ǀ   ‘-CLONE-‘
   ǀ V                                                    ǀ ǀ
   ‘---+-ts-num-spec-----+--from-copy-spec--data-set-spec-+-‘
       ‘-index-name-spec-‘

ts-num-spec:
                                                     .-DSNUM--ALL----.
>>-TABLESPACE--+----------------+-table-space-name--+----------------+------>
               ‘-database-name.-‘                   ‘-DSNUM--integer-‘

Index-name-spec:
                                                            .-DSNUM-ALL----.
>>-+-INDEXSPACE-------+----------------+--index-space-name-++--------------+>
   ǀ                  ‘-database-name.-‘                   ǀ’-DSNUM-integer’
   ‘-INDEX--+-------------+--index-name--------------------’
            ‘-creator-id.-‘



From-copy-spec:
   .-FROMLASTCOPY-----------------------------------------------------.
>>-+------------------------------------------------------------------+---->< +-FROMLASTFULLCOPY-------------------------------------------------+ +-FROMLASTINCRCOPY-------------------------------------------------+ +-FROMLASTFLASHCOPY------------------------------------------------+ ‘-FROMCOPY-------dsn--+------------------------------------------+-‘ ‘-FROMVOLUME--+-CATALOG------------------+-‘ ‘-volser--+--------------+-‘ ‘-FROMSEQNO--n-‘ Data-set-spec >>-+-COPYDDN(-+-ddname1-------+---------+-+-)-+------------------------------------------+-+----->< ǀ          ǀ               ‘-,ddname-‘ ǀ   ‘-RECOVERYDDN(-+-ddname3--+----------+-+-)-‘ ǀ
   ǀ          ‘-,ddname2------------------’                  ǀ          ‘-,ddname4-‘ ǀ     ǀ
   ǀ                                                         ‘-,ddname4--------------’     ǀ
   ‘-RECOVERYDDN(-ǀ-ddname3--+----------+-+-)----------------------------------------------’
                  ǀ           ‘-,ddname4-‘ ǀ
                  ‘-ddname4---------------’

DIAGNOSE

>>-DIAGNOSE--+-diagnose statement-+----------------------------------------->< ‘-END----------------’ Diagnose-statement: >>-+---------------------+--------------------------------------------------->
   ǀ .-,-------.         ǀ
   ǀ V         ǀ         ǀ
   ‘-TYPE(---integer-+-)-‘
>--+------------------------------------+------------------------------------>
   ‘-ALLDUMPS-+-----------------------+-‘
              ǀ .-,-------------.     ǀ
              ǀ V               ǀ     ǀ
              ‘-(---X’abend-code’-+-)-‘
>--+-----------------------------------+------------------------------------->
   ‘-NODUMPS-+-----------------------+-‘
             ǀ .-,-------------.     ǀ
             ǀ V               ǀ     ǀ
             ‘-(---X’abend-code’-+-)-‘
>--+-------------------+--+----------------+--+-----------------+----------->< ‘-display statement-‘ ‘-wait statement-‘ ‘-abend statement-‘ Display-statement: >>-DISPLAY------------------------------------------------------------------->
>--+-OBD-+------------------+-table-space-name-+---------+-+-------+---+---->< ǀ ‘-database-name--.-‘ +-ALL-----+ ‘-CLONE-‘ ǀ ǀ +-TABLES--+ ǀ ǀ ‘-INDEXES-‘ ǀ +-SYSUTIL-----------------------------------------------------------+ +-MEPL--------------------------------------------------------------+ +-AVAILABLE---------------------------------------------------------+ ‘-DBET-+-DATABASE--database-name------------------------+-+-------+-‘ +-TABLESPACE-+----------------+-table-space-name-+ ‘-CLONE-‘ ǀ ‘-database-name.-‘ ǀ ‘-INDEX--index-name------------------------------’ Wait-statement: .---------------------------------------------------. V ǀ >>-WAIT----+-MESSAGE--message-id--+-------------------+------+-+------------->< ǀ ‘-INSTANCE--integer-‘ ǀ ‘-TRACEID--+-X’trace-id’-+--+-------------------+-‘ ‘-integer-----’ ‘-INSTANCE--integer-‘ Abend-statement: >>-ABEND--+-MESSAGE--message-id--+-------------------+------+--+--------+---->< ǀ                      ‘-INSTANCE--integer-‘      ǀ  ‘-NODUMP-‘
          ‘-TRACEID--+-X’trace-id’-+--+-------------------+-‘
                     ‘-integer-----’  ‘-INSTANCE--integer-‘

EXEC SQL

>>-EXEC--SQL--+-declare-cursor-spec--------------+--ENDEXEC----------------->< ‘-non-select dynamic SQL statement-‘ Declare-cursor-spec: >>-DECLARE--cursor-name--CURSOR--FOR--select-statement----------------------><

LISTDEF

                        .----------------.
                        V                ǀ
>>-LISTDEF--list-name------list-options--------------------------------------> 

List-options:
>-+INCLUDE+-+-----------+-+-LIST-ref-list-+-+---------------++----+-+-----+-+->
  ‘EXCLUDE’ ǀ           ǀ ‘-init-obj-spec-‘ ‘CLONED-+-YES-+-‘’-RI-‘ +-ALL-+
            ‘-type-spec-‘                           ‘-NO--’         +-BASE+
                                                                    +-LOB-+
                                                                    ‘-XML-‘

    .-DEFINED YES-.
>--+-------------+--+---------+----------------------------------------------->
   +-DEFINED NO--+  +-HISTORY-+
   ‘-DEFINED ALL-‘  ‘-ARCHIVE-‘

>--+----------------+--+-------------------+--------------------------------->< ‘-BASIC--+-NO--+-‘ ‘-EXTENDED--+-NO--+-‘ ‘-YES-‘ ‘-YES-‘ Init-obj-spec >>-+-DATABASE--database-name-+--+--------------------+----------------------->< +-table-space-spec--------+ ‘-PARTLEVEL--+-----+-‘ +-index-space-spec--------+ ‘-(n)-‘ +-table-spec--------------+ +-index-spec--------------+ Table-space-spec: TABLESPACE--+----------------+--table-space-name----------------------------->< ‘-database-name.-‘ Index-space-spec: >>-INDEXSPACE--+----------------+--index-space-name-------------------------->< ‘-database-name.-‘ Table-spec: >>-TABLE--+-------------+--table-name---------------------------------------->< ‘-creator-id.-‘ Index-space: >>-INDEX--+-------------+--index-name---------------------------------------->< ‘-creator-id.-‘


LOAD

         .-DATA-.  .-INDDN--SYSREC---------.
>>-LOAD--+------+--+-----------------------+--+-----------+------>
                   +-INDDN--ddname---------+  ‘-PREFORMAT-‘
                   +-INCURSOR--cursor-name-+ 

                                    .-PRESORTED--NO--.
>--+-----------------------------+--+----------------+----------->
   ǀ                 .-1-------. ǀ  ‘-PRESORTED--YES-‘
   ‘-COPYDICTIONARY--+-integer-+-‘


>--+------------------------------+--+--------------------+------>
   ‘-PARALLEL--+----------------+-‘  ‘-ROWFORMAT--+-BRF-+-‘
               ‘-(num-subtasks)-‘                 ‘-RRF-‘

>--+----------------------------------+--ǀ resume-spec ǀ--------->
   ‘-RBALRSN_CONVERSION--+-NONE-----+-‘
                         +-BASIC----+
                         ‘-EXTENDED-‘
>--ǀ flashcopy-spec ǀ--+----------------+--+-------+------------->
                       ‘-KEEPDICTIONARY-‘  ‘-REUSE-‘

   .-LOG--YES----------------.
>--+-------------------------+--ǀ workddn-spec ǀ----------------->
   ‘-LOG--NO--+------------+-‘
              ‘-NOCOPYPEND-‘

                   (1)
   .-SORTKEYS--0-------.                   .-FLOAT(S390)-.
>--+-------------------+--ǀ format-spec ǀ--+-------------+------->
   +-SORTKEYS--NO------+                   ‘-FLOAT(IEEE)-‘
   ‘-SORTKEYS--integer-‘

   .-EBCDIC--.
>--+---------+--+----------------------+--+--------+------------->
   +-ASCII---+  ǀ        .-,-------.   ǀ  ‘-NOSUBS-‘   
   ‘-UNICODE-‘  ǀ        V         ǀ   ǀ
                ‘-CCSID(---integer-+-)-‘

   .-ENFORCE-CONSTRAINTS-.  .-ERRDDN--SYSERR-.
>--+---------------------+--+----------------+------------------->
   ‘-ENFORCE--NO---------’  ‘-ERRDDN--ddname-‘ 

   .-MAPDDN--SYSMAP-.  .-DISCARDDN--SYSDISC-.
>--+----------------+--+--------------------+-------------------->
   ‘-MAPDDN--ddname-‘  ‘-DISCARDDN--ddname--’

   .-DISCARDS--0-------.
>--+-------------------+--+-----------------------+-------------->
   ‘-DISCARDS--integer-‘  ‘-SORTDEVT--device-type-‘

>--+------------------+------------------------------------------>
   ‘-SORTNUM--integer-‘

>--+-----------------------------------------------------+------->
   ‘-CONTINUEIF(start-+------+-)=-+-X’byte-string’-----+-‘
                      ‘-:end-‘    ‘-‘character-string’-‘

>--+--------------+--+-------------------+----------------------->
   ‘-IGNORE(WHEN)-‘  ‘-ǀ decfloat-spec ǀ-‘

>--+-------------------+----------------------------------------->
   ‘-ǀ override-spec ǀ-‘

   .-INDEXDEFER--NONE-------------------.
>--+------------------------------------+------------------------>
   ‘-INDEXDEFER--+-NPI-+--+-----------+-‘
                 ‘-ALL-‘  ‘-NONUNIQUE-‘

>--+-------------------------------+----------------------------->
   ‘-IMPLICIT_TZ—‘timezone-string’-‘

   .---------------------.
   V                     ǀ
>----ǀ INTO-TABLE-spec ǀ-+-------------------------------------->< Resume-spec: .-RESUME--NO--. .-SHRLEVEL-NONE-. >>-+------------+-+---------------+-+---------+--+---------+-+--------+-+->< ǀ ‘-REPLACE-‘ ‘copy-spec’ ‘-stats-‘ ǀ ǀ .-BACKOUT--NO------. .-SHRLEVEL--NONE---. ǀ ‘-RESUME--YES--+------------------+--+------------------+------------’ ǀ .-YES-. ǀ ‘-SHRLEVEL--CHANGE-‘ ‘-BACKOUT--+-----+-‘ Labelled-duration-expression >>-+-CURRENT_DATE--------------------------+------------------------------>
   ‘-CURRENT_TIMESTAMP--+----------------+-‘
                        ‘-WITH TIME ZONE-‘


   .-------------------------------------.
   V                                     ǀ
>----+- + -+--constant--+-YEAR---------+-+------------------>< ‘- - -‘ +-YEARS--------+ +-MONTH--------+ +-MONTHS-------+ +-DAY----------+ +-DAYS---------+ +-HOUR---------+ +-HOURS--------+ +-MINUTE-------+ +-MINUTES------+ +-SECOND-------+ +-SECONDS------+ +-MICROSECOND--+ +-MICROSECONDS-+ Workddn-spec: .-WORKDDN(SYSUT1,SORTOUT)--------------. >>-+--------------------------------------+------------------>
   ‘-WORKDDN--+-(ddname1,ddname2)-------+-‘
              ǀ          .-,SORTOUT-.   ǀ
              +-(ddname1-+----------+-)-+
              ǀ   .-SYSUT1-.            ǀ
              ‘-(-+--------+-,ddname2)--’

Copy-spec:
>>-+-------------------------------------+------------------->
   ǀ         .-(SYSCOPY)---------------. ǀ
   ‘-COPYDDN-+-------------------------+-‘
             +-(ddname1-+----------+-)-+
             ǀ          ‘-,ddname2-‘   ǀ
             ‘-(,ddname2)--------------’

>--+------------------------------------+------------------->< ‘-RECOVERYDDN(ddname3-+----------+-)-‘ ‘-,ddname4-‘ Flashcopy-spec: .-FLASHCOPY--NO-------------------------------------------------. >>-+---------------------------------------------------------------+->< ‘-FLASHCOPY--+-YES--------+--+--------------------------------+-‘ ‘-CONSISTENT-‘ ‘-FCCOPYDDN--(--template-name--)-‘ Stats-spec: >>-STATISTICS--+---------------------+--+---------------------+--->
               ‘-ǀ stat-table-spec ǀ-‘  ‘-ǀ stat-index-spec ǀ-‘

   .-REPORT--NO--.  .-UPDATE--ALL-----------.
>--+-------------+--+-----------------------+--------------------->
   ‘-REPORT--YES-‘  ‘-UPDATE--+-ACCESPATH-+-‘ 
                              +-SPACE-----+
                              +-NONE------+  
   .-INVALIDATECACHE-NO--.
>--+---------------------+--+-------------------------+------------>
   ‘-INVALIDATECACHE YES-‘  ‘-HISTORY--+-ALL--------+-‘
                                       +-ACCESSPATH-+
                                       +-SPACE------+
                                       ‘-NONE-------’

>--+----------------------+--------------------------------------->< ‘-FORCEROLLUP--+-YES-+-‘ ‘-NO--’ Stat-table-spec: .-TABLE--(--ALL--)-. >>-+-+-------------------+--+-----------------+--+-------------+-+->< ǀ ‘-SAMPLE--integer-‘ ‘-USE PROFILE-‘ ǀ ǀ .----------------------------------------------------. ǀ ǀ V ǀ ǀ ‘---TABLE--(--table-name--)--+-----------------------+-+------’ ‘-ǀ table-stats-spec ǀ-‘ Table-stats-spec: .-COLUMN—ALL--------------------. >>-+-----------------+--+-------------------------------+------->
   ‘-SAMPLE--integer-‘  ǀ            .-,-----------.    ǀ
                        ǀ            V             ǀ    ǀ
                        ‘-COLUMN--(----column-name-+--)-‘

>--+--------------------------------------------------------------+->< ǀ .-,--------------------------------------------------------. ǀ ǀ ǀ .-,-----------. ǀ ǀ ǀ V V ǀ ǀ ǀ +---COLGROUP--(----column-name-+--)--ǀ colgroup-stats-spec ǀ-+-+ ‘-USE PROFILE--------------------------------------------------’ Colgroup-stats-spec: >>-+--------------------------------------------+--------------->
   ‘-FREQVAL--+-------------------------------+-‘
              ǀ                (1)  .-MOST--. ǀ
              ‘-COUNT--integer------+-------+-‘
                                    +-BOTH--+
                                    ‘-LEAST-‘
>--+--------------------------------------+-------------------->< ǀ .-NUMQUANTILES--100-----. ǀ ‘-HISTOGRAM--+-----------------------+-‘ ‘-NUMQUANTILES--integer-‘ Stat-index-spec: .-INDEX--(--ALL--)-. >>-+--+--------------------ǀ correlation-stats-spec ǀ--------+->< ǀ .----------------------------------------. ǀ ǀ V ǀ ǀ ‘-INDEX--(----index-name--ǀ correlation-stats-spec ǀ-+--)-‘ Correlation-stats-spec: .-KEYCARD-----. >>-+-------------+--------------------------------------->


   .-FREQVAL--NUMCOLS--1--COUNT--10---------------------------------.
>--+----------------------------------------------------------------+-->
   ǀ .------------------------------------------------------------. ǀ
   ǀ V                                                            ǀ ǀ
   ‘---FREQVAL--NUMCOLS--integer--+-------------------------------+-+-‘
                                  ǀ                (2)  .-MOST--. ǀ

                                  ‘-COUNT--integer------+-------+-‘
                                                        +-BOTH--+
                                                        ‘-LEAST-‘
              .-NUMCOLS--1--NUMQUANTITIES--100--------------.
>--HISTOGRAM--+---------------------------------------------+-->< ǀ .-NUMQUANTILES--100-----. ǀ ‘-NUMCOLS--integer--+-----------------------+-‘ ‘-NUMQUANTILES--integer-‘ Format-spec: >>-+----------------------------------------------------------------------------------+->< ‘-FORMAT-+-UNLOAD----------------------------------------------------------------+-‘ +-SQL/DS----------------------------------------------------------------+ +-INTERNAL--------------------------------------------------------------+ ǀ .-COLDEL--‘,’----. .-CHARDEL--‘”’-----. .-DECPT--‘.’---. ǀ +-DELIMITED--+----------------+--+------------------+--+--------------+-+ ǀ ‘-COLDEL--coldel-‘ ‘-CHARDEL--chardel-‘ ‘-DECPT--decpt-‘ ǀ ‘-SPANNED--+-YES-+------------------------------------------------------’ ‘-NO--’ Decfloat-spec: >--+-----------------------------------------+----------------------->
   ‘-DECFLOAT_ROUNDMODE--+-ROUND_CEILING---+-‘
                         +-ROUND_DOWN------+
                         +-ROUND_FLOOR-----+
                         +-ROUND_HALF_DOWN-+
                         +-ROUND_HALF_EVEN-+
                         +-ROUND_HALF_UP---+
                         ‘-ROUND_UP--------'

Override-spec:
                  V------------------.
>>-OVERRIDE--(----+-SYSTEMPERIOD-----+-+--)------------------------->< +-IDENTITY---------+ +-TRANSID----------+ ‘-NONDETERMINISTIC-‘ INTO-TABLE-spec: >>-INTO--TABLE—table-name--+---------------+---+-----------------+------>
                           ‘PERIODOVERRIDE-‘   ‘-TRANSIDOVERRIDE-‘
   .-IGNOREFIELDS--NO--.
>--+-------------------+------------------------------------------------>
   ‘-IGNOREFIELDS--YES-‘

>--+-------------------------------------------------------------------------------+->
   ǀ                                           .-INDDN -SYSREC------------------.  ǀ
   ‘-PART—integer--+-----------+--resume-spec--+---------------------------------+-‘
                   ‘-PREFORMAT-‘               +-INDDN-ddname-+------------------+-+
                                               ǀ              ‘-DISCARDDN—ddname-‘ ǀ
                                               ‘-INCURSOR--cursor-name-------------’
>--+-----------------+---+--------------------------------------+------------------->
   ‘-NUMRECS—integer-‘   ‘-WHEN-+-SQL/DS=’table-name’-----------+-‘
                         ‘-field selection criterion-‘
>--+-----------------------------+------------------------------------------------>< ǀ .-,-------------------. ǀ ǀ V ǀ ǀ ‘-(---field specification-+-)-‘ >--+------------------------------------------------------------------------>< ǀ .-,-------------------. ǀ ǀ V ǀ ǀ ‘-(---field specification-+-)-‘ Resume-spec: .-RESUME--NO-----. >>-+-+----------------+-+-----------------------------------+-+------->
   ǀ                    ‘-REPLACE--+-------+--+-----------+-‘ ǀ
   ǀ                               ‘-REUSE-‘  ‘-copy-spec-‘   ǀ
   ‘-RESUME--YES----------------------------------------------’

>--+----------------+------------------------------------------>< ‘-KEEPDICTIONARY-‘ Field selection criterion: >>-+-field-name--------+--=--+-X’byte-string’-----+------------>< ‘-(start-+------+-)-‘ +-‘character-string’-+ ‘-:end-‘ +-G’graphic-string’--+ +-N’graphic-string’--+ Field specification: >>-field-name-spec-------------------------------------->

>--+--------------------------------------------------------------------------------->
   +-CHAR--+----------------------------------------------------------+--------------+
   ǀ       +-BIT-(length)-strip-spec----------------------------------+              ǀ
   ǀ       +-CCSID 1208—strip-spec------------------------------------+              ǀ
   ǀ       +-MIXED--strip-spec----------------------------------------+              ǀ
   ǀ       +-BLOBF-+---------------------+-+-----------+--------------+              ǀ
   ǀ       ǀ       ‘-PRESERVE WHITESPACE-‘ ‘-BINARYXML-‘              ǀ              ǀ
   ǀ       +-CLOBF-+-------+-+---------------------+-+--------------+-+              ǀ
   ǀ       ǀ       ‘-MIXED-‘ ‘-PRESERVE WHITESPACE-‘ ‘-CCSID 1208-‘   ǀ              ǀ
   ǀ       ‘-DBCLOBF-+---------------------+-+------------+-----------’              ǀ
   ǀ                 ‘-PRESERVE WHITESPACE-‘ ‘-CCSID 1200-‘                          ǀ
   +-VARCHAR--+--------------------------------------------------------+--strip-spec-+
   ǀ          +-BIT----------------------------------------------------+             ǀ
   ǀ          +-CCSID 1208---------------------------------------------+             ǀ
   ǀ          +-MIXED--------------------------------------------------+             ǀ
   ǀ          +-BLOBF-+---------------------+-+-----------+------------ǀ             ǀ
   ǀ          ǀ       ‘-PRESERVE WHITESPACE-‘ ‘-BINARYXML-‘            ǀ             ǀ
   ǀ          +-CLOBF-+----------------------------------------------+-+             ǀ
   ǀ          ǀ       ‘-+-------+-+---------------------+-+------------'             ǀ
   ǀ          ǀ         ‘-MIXED-‘ ‘-PRESERVE WHITESPACE-‘ ‘-CCSID 1208-‘             ǀ
   ǀ          ‘-DBCLOBF-+---------------------+-+------------+--------------’        ǀ
   ǀ                    ‘-PRESERVE WHITESPACE-‘ ‘-CCSID 1200-‘                       ǀ
   +-GRAPHIC-+----------+-+----------+-strip-spec-+------------+---------------------+
   ǀ         ‘-EXTERNAL-‘ ‘-(length)-‘            ‘-CCSID 1200-‘                     ǀ
   +-VARGRAPHIC--strip-spec--+------------+------------------------------------------+
   ǀ                         ‘-CCSID 1200-‘                                          ǀ
   +-SMALLINT------------------------------------------------------------------------+
   +-INTEGER-+-----------------------+-----------------------------------------------+
   ǀ         ‘-EXTERNAL-+----------+-‘                                               ǀ
   ǀ                    .-(length)-‘                                                 ǀ
   +-BIGINT--------------------------------------------------------------------------+
   +-BINARY-+----------+-strip-spec--------------------------------------------------+
   ǀ        ‘-(length)-‘                                                             ǀ
   +-+-VARBINARY------+--strip-spec--------------------------------------------------+
   ǀ ‘-BINARY VARYING-‘                                                              ǀ
   +-decimal-spec--------------------------------------------------------------------+
   +-FLOAT-+----------+-+----------+-------------------------------------------------+
   ǀ       ‘-EXTERNAL-‘ ‘-(length)-‘                                                 ǀ
   +-DATE--EXTERNAL--+---------------------+-----------------------------------------+
   ǀ                 ‘-(-+-length------+-)-‘                                         ǀ
   ǀ                     ‘-date-format-‘                                             ǀ
   +-TIME--EXTERNAL--+--------------------------+------------------------------------+
   ǀ                 ‘-(-+-length-----------+-)-‘                                    ǀ
   ǀ                     ‘-timestamp-format-‘                                        ǀ
   +-TIMESTAMP-WITH-TIME-ZONE--EXTERNAL--+----------+--------------------------------+
   ǀ                                     ‘-(length)-‘                                ǀ
   +-ROWID---------------------------------------------------------------------------+
   +-BLOB----------------------------------------------------------------------------+
   +-CLOB-+-----------------------+--------------------------------------------------+
   ǀ      ‘-MIXED--+------------+-‘                                                  ǀ
   ǀ               ‘-CCSID 1208-‘                                                    ǀ
   +-DBCLOB-+------------+-----------------------------------------------------------+
   ǀ        ‘-CCSID 1208-‘                                                           ǀ
   ǀ           .-(34)-------------------.                                            ǀ
   +-DECFLOAT--+------------------------+--------------------------------------------+
   ǀ           +-(16)-------------------+                                            ǀ

   ǀ           ‘-EXTERNAL--+----------+-‘                                            ǀ
   ǀ                       ‘-(length)-‘                                              ǀ
   ‘-XML--+---------------------+--+-----------+-------------------------------------'
          ‘-PRESERVE WHITESPACE-‘  ‘-BINARYXML-‘  

>--+--------------------------------------+------------------->< +-NULLIF--field selection criterion----+ ‘-DEFAULTIF--field selection criterion-‘ Field name spec: >>-field-name--+-----------------------------------+---------------->< +-POSITION(start-+------+-)---------+ ǀ ‘-:end-‘ ǀ ‘-CONSTANT(-+-‘string’----------+-)-‘ +-X’hex-string’-----+ +-integer-----------+ +-CURRENT DATE------+ +-CURRENT TIME------+ +-CURRENT TIMESTAMP-+ ‘-NULL--------------’ Strip-spec: >>-+-------------------------------------------+--------------------->
   ǀ        .-BOTH ----.                       ǀ
   ‘-STRIP--+----------+--+------------------+-‘
            +-TRAILING-+  ǀ             (1)  ǀ
            ‘-LEADING--’  +-‘strip-char’-----+
                          ‘-X’strip-char’----’
>--+----------+----------------------------------------------------->< ‘-TRUNCATE-‘ Decimal-spec: .-PACKED----------------------------. >>-DECIMAL-+-----------------------------------+-------------------->< +-ZONED-----------------------------+
           ‘-EXTERNAL-+----------------------+-‘
                      ǀ         .-,0-----.   ǀ
                      ‘-(length-+--------+-)-‘
                                ‘-,scale-‘

MERGECOPY

>>-MERGECOPY----------------------------------------------------------------->
>--+-LIST--listdef-name--------------------------------------------------+--->
   ǀ                                                  .-DSNUM--ALL-----. ǀ
   ‘-TABLESPACE--+----------------+-table-space-name--+----------------+-‘
                 ‘-database-name.-‘                   ‘-DSNUM--integer-‘
              .-WORKDDN--SYSUT1-.
>--+-------+--+-----------------+-------------------------------------------->
   ‘-CLONE-‘  ‘-WORKDDN--ddname-‘
     .-NEWCOPY--NO-.  .-COPYDDN--SYSCOPY-------------------.
>--+-+-------------+--+------------------------------------+-------------+->< ǀ                  +-COPYDDN(ddname1-+----------+-)-----+             ǀ
   ǀ                  ǀ                 ‘-,ddname2-‘       ǀ             ǀ
   ǀ                  +-COPYDDN(,ddname2)------------------+             ǀ
   ǀ                  ‘-RECOVERYDDN(ddname3-+--------+-)-‘ ǀ             ǀ
   ǀ                                        ‘,ddname4’     ǀ             ǀ
   ǀ             .-COPYDDN--SYSCOPY-----------.                          ǀ
   ‘-NEWCOPY-YES-+----------------------------+--+-+--------------------+’
                 +-COPYDDN(ddname1-+---------+-)-+ ‘-RECOVERYDDN(ddname3)’
                 ǀ                 ‘,ddname2-‘   ǀ              ‘,ddname4’
                 ‘-COPYDDN(,ddname2)-------------’

MODIFY RECOVERY

>>-MODIFY--RECOVERY--------------------------------------------------------->
>--+-LIST--listdef-name------------------------------+---------------------->
   ‘-TABLESPACE--+----------------+-table-space-name-‘
                 ‘-database-name.-‘
   .-DSNUM--ALL-----.
>--+----------------+--+-------+-------------------------------------------->
   ‘-DSNUM--integer-‘  ‘-CLONE-‘
>--+----------------+--+-------+-------------------------------------------->
   ‘-DELETDS-‘  ‘-NOCOPYPEND-‘
>--+-DELETE-+------------------+----------------------+-------------------->< ǀ        +-AGE-+-integer-+--+                      ǀ
   ǀ        ǀ     ‘-(*)-----’  ǀ                      ǀ
   ǀ        ‘-DATE-+-integer-+-‘                      ǀ
   ǀ               ‘-(*)-----’                        ǀ
   ‘-RETAIN----+-LAST--(--integer-)---------------+---'
               +-LOGLIMIT-------------------------+
               ‘-GDGLIMIT-+---------------------+-‘
                          +-LAST--(--integer--)-+
                          ‘-LOGLIMIT------------’


MODIFY STATISTICS

>>-MODIFY--STATISTICS------------------------------------------------------->
>--+-LIST-- listdef-name------------------------------+--------------------->
   +-TABLESPACE--+----------------+--table-space-name-+
   ǀ             ‘-database-name.-‘                   ǀ
   +-INDEXSPACE--+----------------+--index-table-name-+
   ǀ             ‘-database-name.-‘                   ǀ
   ‘-INDEX--+-------------+--index-name---------------’
            ‘-creator-id.-‘
>--DELETE-+-ALL--------+--+-AGE-+-(integer)-+--+--------------------------->< +-ACCESSPATH-+  ǀ     ‘-(*)-------’  ǀ
          ‘-SPACE------’  ‘-DATE-+-(integer)-+-‘
                                 ‘-(*)-------’


OPTIONS

>>-OPTIONS---------------------------------------------------------------->
>+-+---------+-+-----------------+-+-------------------+-+------------+-+->< ǀ ‘-PREVIEW-‘ ‘-LISTDEFD-ddname-‘ ‘-TEMPLATEDD-ddname-‘ ‘-event-spec-‘ ǀ +-OFF------------------------------------------------------------------+ ‘-KEY--key-value-------------------------------------------------------’ Event-spec .-ITEMERROR,HALT-. .-WARNING,RC4-. >>-EVENT--(--+----------------+--+---+--+-------------+--)---------------->< ‘-ITEMERROR,SKIP-‘  ‘-,-‘  +-WARNING,RC0-+
                                        +-WARNING,RC8-‘

QUIESCE

>>-QUIESCE------------------------------------------------------------------>
>--+-LIST—listdef-name----------------------------------------------------+->
   ǀ .------------------------------------------------------------------  ǀ
   ǀ V                                                                  ǀ ǀ
   ǀ---+-TABLESPACE-+----------------+-table-space-name-+--------------++-‘
       ǀ            ‘-database-name.-‘                  ‘-PART-integer-‘ ǀǀ
       ǀ-TABLESPACESET-+------------+-+----------------+-table-space-name-ǀ
                       ‘-TABLESPACE-‘ ‘-database-name.-‘
              .-WRITE--YES-.
>--+-------+--+------------+------------------------------------------------->< ‘-CLONE-‘  ‘-WRITE--NO--'

REBUILD INDEX

>>-REBUILD----------------------------------------------------------------------------->

                 .-,-------------------------------------------.
                 V                                             ǀ
>--+-INDEX--+-(----creatorid.index-name------+---------------+-+--)-+----------------+->
   ǀ        ǀ                                ‘-PART--integer-‘      ǀ                ǀ
   ǀ        +-(ALL)--table-space-spec-------------------------------+                ǀ
   ǀ        ‘-LIST--listdef-name------------------------------------’                ǀ
   ǀ                  .-,-----------------------------------------------.            ǀ
   ǀ                  V                                                 ǀ            ǀ
   ‘-INDEXSPACE--+-(----+----------------+--index-space-name--+--------------+-+--)-+’
                 ǀ      ‘-database-name.-‘                    ‘-PART—integer-‘      ǀ
                 +-(ALL)--table-space-spec------------------------------------------+
                 ‘-LIST--listdef-name-----------------------------------------------’

   .-SHRLEVEL--REFERENCE-----------.
>--+-------------------------------+--drain-spec--+-------+------------------->
   ‘-SHRLEVEL--CHANGE--change-spec-‘              ‘-CLONE-‘

   .-SCOPE--ALL-----.
>--+----------------+--+-------+--+-----------------------+------------------->
   ‘-SCOPE--PENDING-‘  ‘-REUSE-‘  ‘-SORTDEVT--device-type-‘

>--+------------------+--+------------+--------------------------------------->
   ‘-SORTNUM--integer-‘  ‘-stats-spec-‘

   .-FLASHCOPY--NO-------------------------------------------------.
>--+---------------------------------------------------------------+----------->
   ‘-FLASHCOPY--+-YES--------+--+--------------------------------+-‘
                ‘-CONSISTENT-‘  ‘-FCCOPYDDN--(--template-name--)-‘

   .-PARALLEL--(0)----------------.
>--+------------------------------+-------------------------------------------->
   ‘-PARALLEL--(--num-subtasks--)-‘

>--+----------------------------------+---------------------------------------->
   ‘-RBALRSN-CONVERSION--+-NONE-----+-‘
                         +-BASIC----+
                         ‘-EXTENDED-‘


Table-space-spec

>>-TABLESPACE--+----------------+--table-space-name-------------->
               ‘-database-name.-‘

>--+--------------+--------------------------------------------->< ‘-PART—integer-‘ Change-spec: .-MAXRO--integer-. .-LONGLOG--CONTINUE-. >>-+----------------+--+-------------------+--------------------->
   ‘-MAXRO--DEFER---’  +-LONGLOG--TERM-----+  
                       ‘-LONGLOG--DRAIN----’

   .-DELAY--1200----.
>--+----------------+-------------------------------------------->< ‘-DELAY--integer-‘ Drain-sec: .-DRAIN_WAIT--IRLMRWT value-. .-RETRY--UTIMOUT value-. >>-+---------------------------+--+----------------------+------->
   ‘-DRAIN_WAIT--integer-------’  ‘-RETRY--integer-------’

>--+----------------------+-------------------------------------->< ‘-RETRY_DELAY--integer-‘ Stats-spec: .-REPORT--NO--. >>-STATISTICS--+-------------+--correlation-stats-spec------------>
               ‘-REPORT--YES-‘

   .-UPDATE—ALL-------------.  .-INVALIDATECACHE NO--.
>--+------------------------+--+---------------------+------------>
   ‘-UPDATE--+-ACCESSPATH-+-‘  ‘-INVALIDATECACHE YES-‘
             +-SPACE -----+
             ‘-NONE-------’

>--+-------------------------+--+----------------------+--------->< ‘-HISTORY--+-ALL--------+-‘ ‘-FORCEROLLUP--+-YES-+-‘ +-ACCESSPATH-+ ‘-NO--’ +-SPACE -----+ ‘-NONE-------’ Correlation-stats-spec: .-KEYCARD-----. >--+-------------+---------------------------------------------->

   .-FREQVAL--NUMCOLS--1--COUNT--10-------------------------------------.
>--+--------------------------------------------------------------------+-->
   ǀ .----------------------------------------------------------------. ǀ
   ǀ V                                                                ǀ ǀ
   ‘---FREQVAL--NUMCOLS--integer--+---------------------------------+-+-‘
                                  ǀ                       .-MOST--. ǀ
                                  ‘-COUNT--integer--------+-------+-‘
                                                          +-BOTH--+
                                                          ‘-LEAST-‘

              .-NUMCOLS--1--NUMQUANTILES--100----------------.
>--HISTOGRAM--+----------------------------------------------+-->< ǀ                   .-NUMQUANTILES--100------. ǀ
              ǀ-NUMCOLS--integer--+------------------------+-‘
                                  ‘-NUMQUANTILES--integer-‘


RECOVER

>>-RECOVER------------------------------------------------------------------->
>--+-+-LIST—listdef-name------------------+--list-options-spec-+------------->
   ǀ ǀ .--------------------------------. ǀ                    ǀ
   ǀ ǀ V        .-DSNUM--ALL----------. ǀ ǀ                    ǀ
   ǀ ‘---object-+---------------------+-+-‘                    ǀ
   ǀ            ‘-DSNUM--integer------’                        ǀ
   ǀ         .-DSNUM--ALL----------.                           ǀ
   +-object--+---------------------+--recover-options-spec-----+
   ǀ         ‘-DSNUM--integer------’                           ǀ
   ‘-object--PAGE--page-number--+----------+-------------------’
                                ‘-CONTINUE-‘
                                .-LOGRANGES--YES-----.
>--+-------+--+--------------+--+--------------------+---------------------->< ‘-CLONE-‘ +-LOCALSITE----+ ǀ ǀ ‘-RECOVERYSITE-‘ ‘-LOGRANGES--NO------’ Object: >>-+-TABLESPACE--+----------------+-table-space-name-+---------------------->< ǀ ‘-database-name.-‘ ǀ +-INDEXSPACE--+----------------+-index-space-name-+ ǀ ‘-database-name.-‘ ǀ ‘-INDEX--+-------------+-index-name---------------’ ‘-creator-id.-‘ List-options-spec: .-BACKOUT--NO------. >>-+------------------+--------------------------------------------------->
   ǀ          .-YES-. ǀ
   ‘-BACKOUT--+-----+-‘
>--+-----------------------------------------------------------------+---->
   ǀ                       .-VERIFYSET--YES-.  .-ENFORCE--YES-.      ǀ
   +-TORBA—X’byte-string’--+----------------+--+--------------+------+
   ǀ                       ‘-VERIFYSET--NO--’  ‘-ENFORCE--NO--’      ǀ
   ǀ                            .-VERIFYSET--YES-.  .-ENFORCE--YES-. ǀ
   ‘-TOLOGPOINT—X’byte-string’--+----------------+--+--------------+-‘
                                ‘-VERIFYSET--NO--'  ‘-ENFORCE--NO--'
>--+-non-LOGONLY-options-spec-+------------------------------------------->< ‘-LOGONLY------------------’ Non-LOGONLY-options-spec: >>-+-------+--+-----------------+------------------------------------------>
   ‘-REUSE-‘  ‘-CURRENTCOPYONLY-‘
>--+----------------------------------------------------------------+------>
   ‘-PARALLEL-+---------------+-+---------------------------------+-‘
              ‘-(num-objects)-‘ ‘-TAPEUNITS--(--num-tape-units--)-‘
>--+-------------------------------+--------------------------------------->
   ‘-RESTOREBEFORE--X'byte-string’-‘
>--+--------------------------------+-------------------------------------->
   ‘-FROMDUMP--+------------------+-‘
               ‘-DUMPCLASS--(dcl)-‘
>--+-----------------------------+----------------------------------------->
   ‘-FLASHCOPY_PPRCP--+-NO-----+-‘
                      +-PMNO---+
                      +-PMPREF-+
                      +-PMREQ -+
>--+-------------------------+--------------------------------------------->
   ‘-ALTERNATE_CP(copy-pool)-‘

Recover-options-spec:
           .-DSNUM--ALL---------.
>>-object--+--------------------+------------------------------------------>
           ǀ                (1) ǀ
           ‘-DSNUM--integer-----’

>--+-TOCOPY--data-set--+-----------------+--tocopy-options-spec-+->< ǀ ‘-image-copy-spec-‘ ǀ +-TOLASTCOPY--topcopy-options-spec---------------------------+ +-TOLASTFULLCOPY--tocopy-options-spec------------------------+ ‘-ERROR--RANGE-----------------------------------------------’ Tocopy-options-spec .-ENFORCE--YES-. >>-+-------+--+-----------------+--+--------------+------------->
   ‘-REUSE-‘  ‘-CURRENTCOPYONLY-‘  ‘-ENFORCE--NO--'

>--+------------------------+----------------------------------->
   ‘-NOSYSCOPY--+---------+-‘
                +-INLCOPY-+
                ‘-FCCOPY--'

>--+----------------------------+------------------------------>< ‘-FLASHCOPY_PRCP--+-NO-----+-‘ +-PMNO---+ +-PMPREF-+ ‘-PMREQ –‘ Image-copy-spec: >>-TOVOLUME-+-CATALOG----------------------+------------------->< ‘-vol-ser-+------------------+-‘
                      ‘-TOSEQNO--integer-‘

REORG INDEX

>>-REORG--+-INDEX--LIST--listdef-name-+--+-------+--+-------+------------->
          ‘-index-name-spec-----------’  ‘-REUSE-‘   ‘-CLONE-‘

   .-SHRLEVEL NONE-----------------------------------------------.
>--+-------------------------------------------------------------+-------->
   ‘-SHRLEVEL-+-REFERENCE--deadline-spec--drain-spec-----------+-‘
              ‘-CHANGE--deadline-spec--drain-spec--change-spec-‘

   .-FASTSWITCH YES----.
>--+-------------------ǀ-------------------------------------------------->
   ‘-FASTSWITCH NO-----’

                                                   .-FORCE—NONE----.
>--+------------------------------------------+----+---------------+------->
   ‘-LEAFDISTLIMIT-+---------+-+------------+-‘    +-FORCE—READERS-+
                   ‘-integer-‘ ‘-REPORTONLY-‘      ‘-FORCE--ALL----’

   .-UNLOAD—CONTINUE-------.
>--+-----------------------+--+-----------------+-------------------------->
   ‘-UNLOAD--+-PAUSE-----+-‘  ‘-stats-spec------'
             ‘-ONLY------’
   .-WORKDDN--(SYSUT1)-.
>--+-------------------+--+-----------+------------------------------------>
   ‘-WORKDDN--(ddname)-‘  ‘-PREFORMAT-‘
>--+--------------------------------------------------+------------------->< ǀ .-NO---------. ǀ ‘-FLASHCOPY--+-YES--------+--+-------------------+-‘ ‘-CONSISTENT-‘ ‘-FCCOPYDDN(ddname)-‘ >--+----------------------------------+----------------------------------->< ‘-RBALRSN_CONVERSION--+-NONE-----+-‘ +-BASIC----+ ‘-EXTENDED-‘ Index-name-spec >>-+-INDEX-+-------------+-index-name---------------+----------------------> 
   ǀ       ‘-creator-id.-‘                          ǀ
   ‘-INDEXSPACE-+----------------+-index-space-name-‘
                ‘-database-name.-‘
>--+---------------+------------------------------------------------------>< ‘-PART--integer-‘ Deadline-spec .-DEADLINE--NONE----------------------------. >>-+-------------------------------------------+-------------------------->< .-DEADLINE--+-timestamp-------------------+-‘ ‘-labeled-duration-expression-‘ Drain-spec >>-+---------------------+--------+----------------+----------------------->
   ‘-DRAIN_WAIT--integer-'        ‘-RETRY--integer-‘


                                    _TIMEOUT TERM---
>--+----------------------+--------ǀ----------------(--------------------->< ‘-RETRY_DELAY--integer-‘ ǀ-TIMEOUT ABEND__ǀ Change-spec .-DRAIN--ALL-----. >>-+------------------------+--+----------------+--------------------------->
   ǀ                    (1) ǀ  ‘-DRAIN--WRITERS-‘
   ‘-MAXRO--+-integer-+-----'
            ‘-DEFER---’

   .-LONGLOG--CONTINUE--.  .-DELAY--1200----.
>--+--------------------+--+----------------+------------------------------->
   ‘-LONGLOG--+-TERM--+-‘  ‘-DELAY--integer-‘
              ‘-DRAIN-‘

   .-LOGRANGES--YES-.
>--+----------------+------------------------------------------------------->
   ‘-LOGRANGES--NO--'

   .-SWITCHTIME--NONE---------------------------------------------------.
>--+--------------------------------------------------------------------+->< ǀ .-NEWMAXRO--NONE----. ǀ ‘-SWITCHTIME--+-timestamp-------------------+--+-------------------+-‘ ‘-labeled-duration-expression-‘ ‘-NEWMAXRO--integer-‘ Labelled-duration-expression >>-+-CURRENT_DATE------------------------------------------------------------>
   ‘-CURENT_TIMESTAMP---+----------------+-----'
                        ‘-WITH TIME ZONE-‘
   .-------------------------------------.
   V                                     ǀ
>----+- + -+--constant--+-YEAR---------+-+---------------------------------->< +-YEARS--------+ +-MONTH--------+ +-MONTHS-------+ +-DAY----------+ +-DAYS---------+ +-HOUR---------+ +-HOURS--------+ +-MINUTE-------+ +-MINUTES------+ +-SECOND-------+ +-SECONDS------+ +-MICROSECOND--+ +-MICROSECONDS-+ Stats-spec .-REPORT--NO--. >>-STATISTICS--+-------------+--correlation-stats-spec----------------------->
               ‘-REPORT--YES-‘
   .-UPDATE-ALL-------------.
>--+------------------------+--+-------------------------+------------------->
   ‘-UPDATE--+-ACCESSPATH-+-‘  ‘-HISTORY--+-ALL--------+-‘
             +-SPACE------+               +-ACCESSPATH-+
             ‘-NONE-------'               +-SPACE------+
                                          ‘-NONE-------'
>--+----------------------+------------------------------------------------->< ‘-FORCEROLLUP--+-YES-+-‘ ‘-NO--' Correlation-stat-spec .-FREQVAL--NUMCOLS--1--COUNT--10-----------------. >>-+---------+---------------------------------------+----------------------->< ‘-KEYCARD-‘ ǀ .------------------------------------------. ǀ ǀ V ǀ ‘-----FREQVAL--NUMCOLS--integer--COUNT—integer-+-‘ .-NUMCOLS--1--NUMQUANTILES—100----------------. >--HISTOGRAM--+---------------------------------------------+-->
              ǀ                   .-NUMQUANTILES--100-----. ǀ
              ‘-NUMCOLS--integer--+-----------------------+-‘
                                  ‘-NUMQUANTILES--integer-‘


REORG TABLESPACE

>>-REORG—TABLESPACE---------------------------------------------------------->
                     .-PARALLEL-YES-.
>-+-LIST-listdef-name-+ -------------+----------------------------------+--->
  ǀ                  ‘-PARALLEL-NO--'                                   ǀ
  ‘-+----------------+-table-space-name-+-----------------------------+-‘
    ‘-database-name.-‘                  ǀ      .-,---------------------.ǀ
                                        ǀ      V                       ǀǀ
                                        ‘-PART---+-integer-----------+-+’
                                                 ‘-integer1:integer2-‘

                         .-SCOPE ALL-----.
>--+-------+--+-------+--+---------------+----------------------------------->
   ‘-CLONE-‘  ‘-REUSE-‘  ‘-SCOPE PENDING-‘

                                            _DROP PART NO__
>--+---------------------------------+-----ǀ---------------ǀ----------------->
   ǀ            .-SORTCLUSTER--NO--. ǀ     }_DROP PART YES_ǀ
   ‘-REBALANCE--+------------------+-‘
                ‘-SORTCLUSTER--YES-‘


                             .-YES-.     
   .-LOG--YES-.  .-SORTDATA--+-NO--+-.
>--+----------+--+-------------------+--+----------+------------------------->
   ‘-LOG--NO--’                         ‘-NOSYSREC-‘
                  .-AUTOESTSPACE YES-.
>--ǀ copy-spec ǀ--+------------------+--------------------------------------->
                  ‘-AUTOESTSPACE NO--’

  .-SHRLEVEL NONE-------------------------------------------------------.
>--------------------------------------------------------------------------->
  ‘-SHRLEVEL--+-REFERENCE--ǀ deadline-spec ǀ--ǀ drain-spec ǀ--------------+->
              ‘-CHANGE-ǀdeadline-specǀ--ǀdrain-specǀ--ǀtable-change-specǀ-‘

   .-FASTSWITCH YES-.  .-AUX NO--.     .-FORCE--NONE----.
>--+----------------+--+---------+-----+----------------+------------------->
   ‘-FASTSWITCH NO--.  –‘AUX YES-‘     +-FORCE--READERS-+
                                       ‘-FORCE--ALL-----’

>--+------------------+----------------------------------------------------->
   +-SORTNPSI--AUTO---+
   +-SORTNPSI--YES----+
   ‘-SORTNPSI--NO-----’

>--+-------------------------------------------------------------------+----->
   ǀ               .-10------.              .-10------.                ǀ
   ‘-OFFPOSTLIMIT--+---------+-INDREFLIMIT--+---------+-+------------+-‘
                   ‘-integer-‘              ‘-integer-‘ ‘-REPORTONLY-‘
     .-UNLOAD--CONTINUE--.
>--+-+-------------------+--+----------------+--+---------------------+-+--->
   ǀ ǀ               (1) ǀ  ‘-KEEPDICTIONARY-‘  ‘-ǀ statistics-spec ǀ-‘ ǀ
   ǀ ‘-UNLOAD--PAUSE-----'                                              ǀ
   +-UNLOAD--ONLY-------------------------------------------------------+
   ‘-UNLOAD--EXTERNAL--+-------+--+-------------------------+-----------'
                       ‘-NOPAD-‘  ǀ .---------------------. ǀ
                                  ǀ V                     ǀ ǀ
                                  ‘---ǀ FROM-TABLE-spec ǀ-+-‘



   .-PUNCHDDN--SYSPUNCH-.  .-DISCARDDN--SYSDISC-.
>--+--------------------+--+--------------------+---------------------------->
   ‘-PUNCHDDN--ddname---'  ‘-DISCARDDN--ddname--’
>--+------------------------------+------------------------------------------>
   ‘-ǀ reorg tablespace options ǀ-‘
>--+---------------------------------------------+--------------------------->
   ǀ                     .---------------------. ǀ
   ǀ                     V                     ǀ ǀ
   ‘-DISCARD--+-------+----ǀ FROM-TABLE-spec ǀ-+-‘
              ‘-NOPAD-‘
   .-PARALLEL—0-------------------.
>--+------------------------------+------------------------------------------>
   ‘-PARALLEL--(--num-subtasks--)-‘


Copy-spec

   .-COPYDDN(SYSCOPY)---------------------.
>>-+--------------------------------------+---------------------------------->
   ‘-COPYDDN(-+-ddname1--+----------+-+-)-‘
              ǀ          ‘-,ddname2-‘ ǀ
              ‘-,ddname2--------------’
>--+-----------------------------------+------------------------------------->
   ‘-RECOVERDDN(ddname3-+----------+-)-‘
                        ‘-,ddname4-‘
>--+--------------------------------------------------+--------------------->< ǀ .-NO---------. ǀ ‘-FLASHCOPY--+-YES--------+--+-------------------+-‘ ‘-CONSISTENT-‘ ‘-FCCOPYDDN(ddname)-‘ Deadline-spec .-DEADLINE--NONE----------------------------. >>-+-------------------------------------------+---------------------------->< ‘-DEADLINE--+-timestamp-------------------+-‘ ‘-labeled-duration-expression-‘ Drain-spec >>-+---------------------+------+----------------+-------------------------->
   ‘-DRAIN_WAIT--integer-‘      ‘-RETRY--integer-‘

                                 .-TIMEOUT--TERM--.
>--+----------------------+------+----------------+------------------------->
   ‘-RETRY_DELAY--integer-‘      ‘-TIMEOUT--ABEND-‘

   .-LOGRANGES--YES-.  .-DRAIN_ALLPARTS--NO--.
>--+----------------+--+---------------------+------------------------------->
   ‘-LOGRANGES--N0--’  ‘-DRAIN_ALLPARTS--YES-‘

   .-SWITCHTIME--NONE---------------------------------------------------.
>--+--------------------------------------------------------------------+->< ǀ .-NEWMAXRO--NONE----. ǀ ‘-SWITCHTIME--+-timestamp-------------------+--+-------------------+-‘ ‘-labeled-duration-expression-‘ ‘-NEWMAXRO--integer-‘ Change-spec: .-MAXRO--------------. .-DRAIN--ALL-----. >>-+--------------------+--+----------------+------------------------------>
   ‘-MAXRO--+-integer-+-‘  ‘-DRAIN--WRITERS-‘
            ‘-DEFER---’

   .-LONGLOG--CONTINUE--.  .-DELAY--1200----.
>--+--------------------+--+----------------+------------------------------>
   ‘-LONGLOG--+-TERM--+-‘  ‘-DELAY--integer-‘
              ‘-DRAIN-‘

Map-spec:
>>-+--------------------------------+-------------------------------------->< +-MAPPINGTABLE--table-name-------+ +-MAPPINGDATABASE--database-name-‘ Labelled-duration-expression >>-+-CURRENT_DATE----------------------------------------------------------->
   ‘-CURRENT_TIMESTAMP---+----------------+-----'
                         ‘-WITH TIME ZONE-‘
   .-------------------------------------.
   V                                     ǀ
>----+- + -+--constant--+-YEAR---------+-+--------------------------------->< +-YEARS--------+ +-MONTH--------+ +-MONTHS-------+ +-DAY----------+ +-DAYS---------+ +-HOUR---------+ +-HOURS--------+ +-MINUTE-------+ +-MINUTES------+ +-SECOND-------+ +-SECONDS------+ +-MICROSECOND--+ +-MICROSECONDS-+ Statistics-spec >>-STATISTICS---------------------------------------------------------------->
     .-TABLE--(--ALL--)-.
>--+-+------------------+--+-----------------+---------+--------------------->
   ǀ                       ‘-SAMPLE--integer-‘         ǀ
   ǀ .-----------------------------------------------. ǀ
   ǀ V                                               ǀ ǀ
   ‘---TABLE--(--table-name--)--ǀ table-stats-spec ǀ-+-‘

     .-INDEX--(--ALL--)-.
>--+-+------------------+--ǀ correlation-stats-spec ǀ--------+--------------->
   ǀ           .-,--------------------------------------.    ǀ
   ǀ           V                                        ǀ    ǀ
   ‘-INDEX--(----index-name--ǀ correlation-stats-spec ǀ-+--)-‘

   .-REPORT--NO--.  .-UPDATE—ALL-------------.
>--+-------------+--+------------------------+------------------------------->
   ‘-REPORT--YES-‘  ‘-UPDATE--+-ACCESSPATH-+-‘
                              +-SPACE------+
                              ‘-NONE-------’

>--+-------------------------+--+----------------------+--------------------->< ‘-HISTORY--+-ALL--------+-‘ ‘-FORCEROLLUP--+-YES-+-‘ +-ACCESSPATH-+ ‘-NO--' +-SPACE------+ ‘-NONE-------’ Stat-table-spec .-TABLE--(--ALL--)-. >>-+-+------------------+--+-----------------+--+-------------+-+->< ǀ ‘-SAMPLE--integer-‘ ‘-USE PROFILE-‘ ǀ ǀ .---------------------------------------------------. ǀ ǀ V ǀ ǀ ‘---TABLE--(--table-name--)--+----------------------+-+------’ ‘-ǀ table-stats-spec ǀ-‘ Table-stats-spec .-COLUMN--ALL-------------------. >>-+-----------------+--+-------------------------------+-------->
   ‘-SAMPLE--integer-‘  ǀ            .-,-----------.    ǀ
                        ǀ            V             ǀ    ǀ
                        ‘-COLUMN--(----column-name-+--)-‘

>--+--------------------------------------------------------------+->< ǀ .-,--------------------------------------------------------. ǀ ǀ ǀ .-,-----------. ǀ ǀ ǀ V V ǀ ǀ ǀ +---COLGROUP--(----column-name-+--)--ǀ colgroup-stats-spec ǀ-+-+ ‘-USE PROFILE--------------------------------------------------’ Colgroup-stats-spec: >>-+--------------------------------------------+------------->
   ‘-FREQVAL--+-------------------------------+-‘
              ǀ                     .-MOST--. ǀ
              ‘-COUNT--integer------+-------+-‘
                                    +-BOTH--+
                                    ‘-LEAST-‘

>--+--------------------------------------+-------------------->< ǀ .-NUMQUANTILES--100-----. ǀ ‘-HISTOGRAM--+-----------------------+-‘ ‘-NUMQUANTILES--integer-‘ Stat-index-spec .-INDEX--(--ALL--)-. >>-+-+------------------+--ǀ correlation-stats-spec ǀ--------+->< ǀ .-,--------------------------------------. ǀ ǀ V ǀ ǀ ‘-INDEX--(----index-name--ǀ correlation-stats-spec ǀ-+--)-‘ Correlation-stats-spec: .-KEYCARD-----. >>-+-------------+------------------------------------------------>

   .-FREQVAL--NUMCOLS--1--COUNT—10-------------------------------------.
>--+-------------------------------------------------------------------+->
   ǀ .---------------------------------------------------------------. ǀ
   ǀ V                                                               ǀ ǀ
   ‘---FREQVAL--NUMCOLS--integer--+--------------------------------+-+-‘
                                  ǀ                      .-MOST--. ǀ
                                  ‘-COUNT--integer-------+-------+-‘
                                                         +-BOTH--+
                                                         ‘-LEAST-‘

              .-NUMCOLS--1--NUMQUANTILES—100----------------.
>--HISTOGRAM--+---------------------------------------------+-->
              ǀ                   .-NUMQUANTILES--100-----. ǀ
              .-NUMCOLS--integer--+-----------------------+-’
                                  ‘-NUMQUANTILES--integer-‘


FROM-TABLE spec

>>-FROM--TABLE--table-name--------------------------------------------------->
>--+--------------------------------------+--------------------------------->< ‘-WHEN--(--selection-condition-spec--)-‘ Selection-condition spec >>-+-predicate-----------+-------------------------------------------------->
   ‘-selection condition-‘
    .--------------------------------------.
    V                                      ǀ
>----+-----------------------------------+-+------------------------------->< ‘-+-AND-+--+-predicate------------+-‘ ‘-OR--’ ‘-selection condition-‘ Predicate >>-+-basic predicate---+--------------------------------------------------->< +-BETWEEN predicate-+ +-IN predicate------+ +-LIKE predicate----+ ‘-NULL predicate----’ Basic predicate >>-column-name--+- = --+---------------------------------------------------->
                +- <> -+
                +- > --+
                +- < --+ +- >= -+
                ‘- < = -‘ >--+-constant--------------------+----------------------------------------->< ‘-labeled-duration-expression-‘ Between predicate >>-column-name--+-----+--BETWEEN-------------------------------------------->
                ‘-NOT-‘
>--+-constant--------------------+--AND------------------------------------->
   ‘-labeled-duration-expression-‘
>--+-constant--------------------+----------------------------------------->< ‘-labeled-duration-expression-‘ IN predicate .-,--------. V ǀ >>-column-name--+-----+--IN--(---constant-+-)------------------------------>< ‘-NOT- ‘ LIKE predicate >>-column-name--+-----+--LIKE--string-constant------------------------------>
                ‘-NOT-‘
>--+-------------------------+--------------------------------------------->< ‘-ESCAPE--string-constant-‘ NULL predicate >>-column-name--IS--+-----+--NULL------------------------------------------>< ‘-NOT-‘ Reorg tablespace options .-UNLDDN--SYSREC-. >>-+----------------+--+-----------------------+---------------------------->
   ‘-UNLDDN--ddname-‘  ‘-SORTDEVT--device-type-‘
>--+------------------+--+-----------+-+-----------------+------------------>
   ‘-SORTNUM--integer-‘  ‘-PREFORMAT-‘ ‘-ROWFORMAT-+-BRF-‘
                                                   ǀ-RRF-ǀ
>--+----------------------------------+------------------------------------>< ‘-RBALRSN_CONVERSION--+-NONE-----+-‘
                         +-BASIC----+
                         ‘-EXTENDED-‘

REPAIR

>>-REPAIR------------------------------------------------------------------->
>--+---------------------------------------------------+-------------------->
   ǀ                             .-------------------. ǀ
   ǀ .-OBJECT-. .-LOG--YES-.     V                   ǀ ǀ
   +-+--------+-+----------+-+---+-set statement-+-+-+-+
   ǀ            ‘-LOG--NO--' ǀ   ‘-locate block--’   ǀ ǀ
   ǀ                         ǀ   ‘-dbd-statement-----’ ǀ
   +-level-id statement--------------------------------+
   +-versions statement--------------------------------+
   ‘-catalog statement---------------------------------+
>--+-------+--------------------------------------------------------------->< ‘-CLONE-‘ Level-id statement >>-LEVELID------------------------------------------------------------------>
>--+-TABLESPACE--+----------------+-table-space-name-+---------------------->
   ǀ             ‘-database-name.-‘                  ǀ
   ‘-index-name-spec---------------------------------’
>--+---------------+------------------------------------------------------->< ‘-PART--integer-‘ Versions statement >>-VERSIONS----------------------------------------------------------------->
>--+-TABLESPACE--+----------------+-table-space-name-+--------------------->< ǀ ‘-database-name.-‘ ǀ ‘-index-name-spec---------------------------------’ Catalog statement >>-CATALOG--TABLESPACE--+----------------+-table-space-name----------------->
                        ‘-database-name.-‘
>--+------+----------------------------------------------------------------->
   ‘-TEST-‘


Index-name spec
>>-+-INDEX-+-------------+-index-name---------------+---------------------->< ǀ ‘-creator-id.-‘ ǀ ‘-INDEXSPACE-+----------------+-index-space-name-‘ ‘-database-name.-‘ Set statement >>-SET--------------------------------------------------------------------------------->

>+-ǀtable-space-specǀ-+---------------+-+-NOCOPYPEND------+-----------------------+---->< ǀ ‘-PART--integer-‘ +-NORCVRPEND------+ ǀ ǀ +-NOCHECKPEND-----+ ǀ ǀ +-NOAUXWARN-------+ ǀ ǀ +-NOAUXCHKP-------+ ǀ ǀ +-NOAREORPENDSTAR-+ ǀ ǀ +-NOAREORPEND-----+ ǀ ǀ +-PRO-------------+ ǀ ǀ +-NOPRO-----------+ ǀ ‘-+-INDEX-+-(index-name-+---------------+-)-+----------- +-+-NOCOPYPEND------+-‘ ǀ ǀ ‘-PART--integer-‘ ǀ ǀ +-NORCVRPEND------+ ǀ ‘-(--ALL--)--ǀ table-space-spec ǀ-‘ ǀ +-NORBDPEND-------+ ‘-INDEXSPACE-+-(-+-----------+-index-space+-----------+)-+-NOCHECKPEND-----+ ǀ ‘-database.-‘ ‘-PART-int’ ǀ +-NOAREORPENDSTAR-+ ‘-(--ALL--)—table-space-spec-------------’ +-NOAREORPEND-----+ +-RBDPEND---------+ ‘-PSRBDPEND-------’ Table-space-spec: >>-TABLESPACE--+----------------+-table-space-name---------------------------->< ‘-database-name.-‘

REPORT

>>-REPORT------------------------------------------------------------------->
                                                 .-INDEX NONE-.
>-+-RECOVERY-+-TABLESPACE+-LIST-listdef-name---+-+-----------+-+-+----+-+-->< ǀ ǀ ‘-tablespace-name-spec’ ‘-INDEX ALL-‘ ǀ ‘info’ ǀ ǀ ‘-index-list-spec---------------------------------’ ǀ ‘-TABLESPACESET--+------------+--table-space-name-spec--+----------+--’ ‘-TABLESPACE-‘ ‘-SHOWDSNS-‘ Index-list-spec >>-+-INDEXSPACE--+-+----------------+-index-space-name-+-+----------------->< ǀ ǀ ‘-database-name.-‘ ǀ ǀ ǀ ‘-LIST—listdef-name-------------------’ ǀ ‘-INDEX--+-+-------------+-index-name-+---------------’ ǀ ‘-creator-id.-‘ ǀ ‘-LIST--listdef-name---------’ Info-options .-DSNUM--ALL-----. >>-+----------------+--+---------+--+---------+----------------------------->
   ‘-DSNUM--integer-‘  ‘-CURRENT-‘  ‘-SUMMARY-‘
                                    .-ARCHLOG--1-------.
>--+-----------+--+--------------+--+------------------+------------------->< ‘-LOCALSITE-‘ ‘-RECOVERYSITE-‘ ‘-ARCHLOG--+-2---+-‘ ‘-ALL-‘ Table-space-name-spec >>-+----------------+--table-space-name------------------------------------>< ‘-database-name.-‘


RESTORE SYSTEM

>>-RESTORE SYSTEM-------------------------------------------------------->
>--+-ǀ non-LOGONLY spec ǀ---------------------------------------+------->< ‘-LOGONLY--+-----------------------------------------------+-‘ ‘-SWITCH VCAT--+--------------------------+-‘ ‘-SYSVALUEDDN(ddname)-‘ Non-LOGONLY spec >>-+-------------------------+------------------------------------------->
   ‘-ALTERNATE_CP(copy-pool)-‘
>--+--------------------------------+------------------------------------>
   ‘-RESTOREBEFORE-- X’byte-string’-‘
>-+--------------------------------------------------------------------+->
  +-FROMDUMP-+-----------------++-----------------++-------------------+-+
  ǀ          ‘-DUMPCLASS-(dcl)-‘’-RSA-(key-label)-‘‘—TAPEUNITS-+-------+-‘
  ǀ                                                            ‘units’   ǀ
  ‘-FLASHCOPY_PPRCP--+-NO-----+------------------------------------------’
                     +-PMNO---+
                     +-PMPREF-+
                     ‘-PMREQ –‘


RUNSTATS

>>-RUNSTATS--TABLESPACE--+-ǀ listdef-spec ǀ-----+----------------------->
                         ‘-ǀ table-space-spec ǀ-‘

   .-ǀ statistics-spec ǀ-. 
>--+---------------------+--------------------------------------------->< ‘-ǀ reset-spec ǀ------’ Listdef-spec .-INVALIDATECACHE NO--. >>-LIST--listdef-name--+---------------------+------------------------->< ‘-INVALIDATECACHE YES-‘ Table-space-spec >>-+----------------+-table-space-name---------------------------------->
   ‘-database-name.-‘

>--+-------------------------------------+------------------------------>
   ǀ                .-FORCEROLLUP--NO--. ǀ
   ‘-PART--integer--+------------------+-‘
                    ‘-FORCEROLLUP--YES-‘

   .-INVALIDATECACHE NO--.
>--+---------------------+--------------------------------------------->< ‘-INVALIDATECACHE YES-‘ Statistics-spec >>-+--------------------------------------------------+----------------->
   ǀ             .-(ALL)-.                            ǀ
   +-TABLE-------+-------+--ǀ all-tables-spec ǀ-------+
   ǀ .-,--------------------------------------------. ǀ
   ǀ V                                              ǀ ǀ
   ‘---TABLE------table-name--ǀ named-tables-spec ǀ-+-‘

>--+-------------------------------------------------------------+-->
   ‘-+-INDEX------(--ALL--)--ǀ correlation-stats-spec ǀ--------+-‘
     +-INDEX--(--*------)--ǀ correlation-stats-spec ǀ----------+
     ǀ           .-,--------------------------------------.    ǀ
     ǀ           V                                        ǀ    ǀ
     ‘-INDEX--(----index-name--ǀ correlation-stats-spec ǀ-+--)-‘
                       
                       .-REGISTER--YES-.
   .-SHRLEVEL--CHANGE -+---------------+-.
   ǀ                   ‘-REGISTER--NO--’ ǀ  .-REPORT--NO--.
>--+-------------------------------------+--+-------------+----->
   ‘-SHRLEVEL--REFERENCE-----------------’  ‘-REPORT--YES-‘

   .-UPDATE--ALL----------------.
>--+----------------------------+----ǀ history-spec ǀ----------->
   ‘---UPDATE--+-ACCESSPATH-+---’
               +-SPACE------+
               ‘-NONE-------’

>--+-----------------------+----------------------------------->< ‘-SORTDEVT--device-type-‘ All-tables-spec >>---+-ǀ sample-spec ǀ--+----------------------+-+------------->< ǀ ‘-ǀ use-profile-spec ǀ-‘ ǀ ‘-DELETE PROFILE----------------------------’ Named-tables-spec >>-+-ǀ sample-spec ǀ----------+-ǀ column-spec ǀ--+-------------------+---+-+->< ǀ ǀ ‘-ǀ colgroup-spec ǀ-‘ ǀ ǀ ǀ ǀ ǀ ǀ ǀ ‘---ǀ use-profile-spec ǀ-----------------’ ǀ +-ǀ column-spec ǀ--+-------------------+--+--------------------------+--+ ǀ ‘-ǀ colgroup-spec ǀ-‘ ǀ ǀ ǀ ǀ ‘-ǀ set-profile-spec ǀ-----’ ǀ ǀ ǀ ‘-DELETE PROFILE--------------------------------------------------------’ Sample-spec >>-+-----------------------------------------------------------------+->< ǀ .-25------. ǀ +-SAMPLE--+---------+---------------------------------------------+ ǀ ‘-integer-‘ ǀ ǀ .-AUTO------------. ǀ ‘-TABLESAMPLE SYSTEM--+-numeric-literal-+--+--------------------+-‘ ‘-REPEATABLE-integer-‘ Use-profile-spec >>-USE PROFILE----------+--------------------+----------------->< ‘-INCLUDE--+-(NPI)-+-‘ ‘-NPI---’ Column-spec: .-COLUMN--(--ALL--)-----------------. >>-+-----------------------------------+------------------------>
   ǀ            .-,---------------.    ǀ
   ǀ            V                 ǀ    ǀ
   ‘-COLUMN--(----column-name-----+--)-‘

>--+------------------+---------------------------------------->< ‘-SORTNUM--integer-‘ Colgroup-spec: .-------------------------------------------------------. ǀ .-,-----------. ǀ V V ǀ ǀ >>---COLGROUP--(----column-name-+--ǀ colgroup-stats-spec ǀ-+->< Colgroup-stats-spec: >>-+-------------------------------------------+--------------->
   ‘-FREQVAL -+------------------------------+-‘
              ǀ                    .-MOST--. ǀ
              ‘-COUNT--integer-----+-------+-‘
                                   +-BOTH--+
                                   ‘-LEAST-‘

>--+--------------------------------------+-------------------->< ǀ .-NUMQUANTILES--100-----. ǀ ‘-HISTOGRAM--+-----------------------+-‘ ‘-NUMQUANTILES--integer-‘ Correlation-stats-spec: >>-+-------------+--------------------------------------------->
   ‘-KEYCARD-----’

   .-----------------------------------------------------------------.
   V .-FREQVAL -NUMCOLS--1--COUNT--10--MOST------------------------. ǀ
>----+-------------------------------------------------------------+-+-->
     ‘-FREQVAL -NUMCOLS--integer--+------------------------------+-‘
                                  ǀ                    .-MOST--. ǀ
                                  ‘-COUNT--integer-----+-------+-‘
                                                       +-BOTH--+
                                                       ‘-LEAST-‘

   .---------------------------------------------------------------------.
   V                                                                     ǀ
>----+-----------------------------------------------------------------+-+->< ǀ .-NUMCOLS--1--NUMQUANTITIES--100-------------------. ǀ ‘-HISTOGRAM--+--------------------------------------------------+-‘ ǀ .-NUMQUANTILES--100-----. ǀ ‘-NUMCOLS--integer-------+-----------------------+-‘ ‘-NUMQUANTILES--integer-‘ Set-profile-spec: >>-+-SET--PROFILE--+-------------------------+-+----------------->< ǀ ǀ (1) ǀ ǀ ǀ ‘-FROM EXISTING STATS-----' ǀ ‘-UPDATE—PROFILE----------------------------’ History-spec .-HISTORY--NONE-----------. >>-----+-------------------------+------------------------------->< ‘-HISTORY--+-ALL--------+-‘
                  +-ACCESSPATH-+
                  ‘-SPACE------’

STOSPACE

                         .-,-------------.
                         V               ǀ
>>-STOSPACE--STOGROUP(-+---stogroup-name-+-+-)--------------------------------->< ‘-+-----------------’


TEMPLATE

>>-TEMPLATE--template-name--DSN—name-expression--------------------------------->
>--+----------------+--+--------------+----------------------------------------->
   ‘-common-options-‘  +-disk-options-+
                       ‘-tape-options-‘
>--+-----------------------------------------+---------------------------------->
   ‘-SUBSYS--name--LRECL--int--RECFM--+----+-‘
                                      +-F--+
                                      +-FB-+
                                      +-V--+
                                      ‘-VB-‘
>--path-expression------------------------------------------------------------->< Name-expression .-.--------------------. V ǀ >>---qualifier-expression-+----------------------------------------------------->
>--+----------------------------+---------------------------------------------->< ‘-(parenthetical-expression)-‘ Qualifier expression .----------------------------------------------------. V ǀ >>---+-character-expression---------------------------+-+---------------------->< ‘-&variable-+---------------------------+-.------' ‘-(start-+---------+-)------' ‘-,length-‘ Common-options .-UNIT--SYSALLDA-. >>-+----------------+--+-----------------+-------------------------------------->
   ‘-UNIT--name-----’  ‘-MODELDB--dsname-‘
   .-BUFNO—30-------.
>--+----------------+--+----------------+--+----------------+------------------->
   ‘-BUFNO--integer-‘  ‘-DATACLAS--name-‘  ‘-MGMTCLAS--name-‘
>--+----------------+--+---------------+---------------------------------------->
   ‘-STORCLAS--name-‘  +-RETPD integer-+
                       ‘-EXPDL’ date’--’
>--+-------------------------+--+-----------------+----------------------------->
   ǀ            .-,------.   ǀ  ‘-VOLCNT--integer-‘
   ǀ            V        ǀ   ǀ
   ‘-VOLUMES--(---volser-+-)-‘
                       .-GDGLIMIT--99------.
>--+----------------+--+-------------------+----------------------------------->
   ‘-UNCNT--integer-‘  ‘-GDGLIMIT--integer-‘
>--+-----------------------------------------------------+--------------------->
   ‘-DISP--(--+-NEW-+--,--+-DELETE--+--,--+-DELETE--+--)-‘
              +-OLD-+     +-KEEP----+     +-KEEP----+
              +-SHR-+     +-CATLG---+     +-CATLG---+
              ‘-MOD-‘     ‘-UNCATLG-‘     ‘-UNCATLG-‘
>--+--------------------------------+--+-----------------+-------------------->< ‘-LIMIT(n-+-CYL-+-,new_template)-‘ ‘-TIME--+-LOCAL-+-‘ +-GB--+ ‘-UTC---’ ‘-MB--' Disk-options .-SPACE—CYL-------------------------------. >>-+-----------------------------------------+--------------------------------->
   ‘-SPACE--+---------------------+--+-CYL-+-‘
            ‘-(primary,secondary)-‘  +-TRK-+
                                     ‘-MB--'
   .-PCTPRIME--100-----.
>--+-------------------+--+-------------------+-------------------------------->
   ‘-PCTPRIME--integer-‘  ‘-MAXPRIME--integer-‘
   .-NBRSECND--10------.
>--+-------------------+--+--------------+------------------------------------->
   ‘-NBRSECND--integer-‘  ‘-DIR--integer-‘
>--+----------------------+--------------------------------------------------->< ‘-DSNTYPE--+-LIBRARY-+-‘ +-PDS-----+ +-HFS-----+ +-NULL----+ +-BASIC---+ +-LARGE---+ +-EXTREQ--+ ‘-EXTPREF-‘ Tape-options .-STACK--NO--. .-TRTCH--NONE-------. >>-+------------+--+----------------+--+-------------------+------------------>< ‘-STACK--YES-‘ ‘-JES3DD--ddname-‘ ‘-TRTCH--+-COMP---+-‘ ‘-NOCOMP-‘ Path-expression >>-PATH—pathname-------------------------------------------------->

.-FILEDATA--RECORD--RECFM--VB--LRECL--32756-------.
>--+-------------------------------------------------+------------>
   ‘-FILEDATA--+-TEXT---+--RECFM--+-VB-+--LRECL--int-‘
               ‘-BINARY-‘         +-V--+
                                  +-FB-+
                                  ‘-F--'

   .-PATHOPTS--(--+-ORDONLY------------+--)-.
   ǀ              ‘-OCREAT,OWRONLY-----'    ǀ
>--+----------------------------------------+--------------------->
   ǀ              .-,-------------.         ǀ
   ǀ              V .-ORDONLY---. ǀ         ǀ
   ‘-PATHOPTS--(----+-OCREAT----+-+--)------’
                    +-OWRONLY---+
                    ‘-ONONBLOCK-‘ 

   .-PATHMODE--(SIRUSR)-------------.
>--+--------------------------------+----------------------------->
   ǀ              .-,----------.    ǀ
   ǀ              V            ǀ    ǀ
   ‘-PATHMODE--(----+-SIRUSR-+-+--)-‘
                    +-SIWUSR-+
                    +-SIXUSR-+
                    +-SIRWXU-+
                    +-SIRGRP-+   
                    +-SIWGRP-+
                    +-SIXGRP-+
                    +-SIRWXG-+
                    +-SIROTH-+
                    +-SIWOTH-+
                    +-SIXOTH-+
                    +-SIRWXO-+

   .-PATHDISP--(KEEP,KEEP)---------------------.
>--+-------------------------------------------+--------------->< ‘-PATHDISP--(--+-KEEP---+--,--+-KEEP---+--)-‘
   ‘-DELETE-‘     ‘-DELETE-‘


UNLOAD

                                    .---------------------.
                                    V                     ǀ
>>-UNLOAD--+-DATA--from-table-spec----+-----------------+-+-+------------------>
           ǀ                          ‘-from-table-spec-‘   ǀ
           ǀ              .---------------------.           ǀ
           ǀ              V                     ǀ           ǀ
           +-source-spec----+-----------------+-+-----------+
           ǀ                ‘-from-table-spec-‘             ǀ
           ‘-LIST--listdef-name-----------------------------’

>--unload-spec--+-------+----------------------------------------------------->< ‘-CLONE-‘ Source-spec >>-TABLESPACE--+----------------+-tablespace-name------------------------------>
               ‘-database-name.-‘
>--+------------------------+-------------------------------------------------->
   ǀ-PART-+-integer-------+-‘
          ‘-int1--:--int2-‘

>-+----------------------------------------------------------------------+->< +-FROMCOPY--data-set-name-+------------------------------------------+-+ ǀ ‘-FROMVOLUME-+-CATALOG-------------------+-‘ ǀ ǀ ‘-vol-ser--+--------------+-‘ ǀ ǀ ‘-FROMSEQNO--n-‘ ǀ ‘-FROMCOPYDDN--ddname--------------------------------------------------’ Unload-spec .-PUNCHDDN--SYSPUNCH----------. >>-+-----------------------------+--------------------------------------------->
   ‘-PUNCHDDN--+-ddname--------+-‘
               ‘-template-name-‘
   .-UNLDDN--SYSREC------------.
>--+---------------------------+--+---------+---------------------------------->
   ‘-UNLDDN--+-ddname--------+-+  +-EBCDIC--+
             ‘-template-name-‘    +-ASCII---+
                                  ‘-UNICODE-‘
                                                      ‘-SPANNED NO--'
>--+----------------------+--+--------+--+-------+----+-------------+--------->
   ǀ        .-,-------.   ǀ  ‘-NOSUBS-‘  ‘-NOPAD-‘    ‘-SPANNED YES-‘
   ǀ        V         ǀ   ǀ
   ‘-CCSID(---integer-+-)-‘
>+-----------------------------------------------------------------------+-->
 ǀ            .-COLDEL--‘,’----.  .-CHARDEL--‘”’-----.  .-DECPT--‘.’---. ǀ
 ‘-DELIMITED--+----------------+--+------------------+--+--------------+-‘
              ‘-COLDEL--coldel-‘  ‘-CHARDEL--chardel-‘  ‘-DECPT--decpt-‘
   .-FLOAT--S390-.  .-MAXERR--1-------.
>--+-------------+--+-----------------+------------------------------------->
   ‘-FLOAT--IEEE-‘  ‘-MAXERR--integer-‘
   .-SHRLEVEL--CHANGE--ISOLATION--CS--+------------------+-.
   ǀ                                  ‘-SKIP LOCKED DATA-‘ ǀ
>--+-------------------------------------------------------+---------------->
   ‘-SHRLEVEL-+-CHANGE--ISOLATION-UR-+---------------------’
>-+--------------------------------------+-+-----------------------------+-->
  ‘-DECFLOAT_ROUNDMODE-+-ROUND_CEILING---’ ‘-IMPLICIT_TZ-timezone-string-‘
                       +-ROUND_DOWN------+
                       +-ROUND_FLOOR-----+
                       +-ROUND_HALF_DOWN-+
                       +-ROUND_HALF_EVEN-+
                       +-ROUND_HALF_UP---+
                       +-ROUND_UP--------+
>--+--------------------------------+---------------------------------------->
   ‘-IMPLICIT_TZ--‘timezone-string’-‘
   .-PARALLEL--0-----------.
>--+-----------------------+------------------------------------------------>< ‘-PARALLEL—num-subtasks-‘ From-table spec >>-FROM--TABLE--table-name--------------------------------------------------->
   .-HEADER--OBID-------------------------.
>--+--------------------------------------+---------------------------------->
   ‘-HEADER--+-NONE---------------------+-‘
             ‘-CONST--+-‘string’------+-‘ 
                      ‘-X’hex-string’-‘
>--+-----------------+--+----------------+----------------------------------->
   ‘-SAMPLE--decimal-‘  ‘-LIMIT--integer-‘
>--+-----------------------------+------------------------------------------->
   ǀ   .-,-------------------.   ǀ
   ǀ   V                     ǀ   ǀ
   ‘-(---field-specification-+-)-‘
>--+-----------------------------+------------------------------------------>< ‘-WHEN--(selection-condition)-‘ Field spec .-POSITION(*)-----. >>-field-name--+-----------------+------------------------------------------>
               ‘-POSITION(start)-‘
>--+-----------------------------------------------------------------+---->< +-CHAR-+----------+-+-------------------------------------------+-+ ǀ ‘-(length)-‘ +-TRUNCATE----------------------------------+ ǀ ǀ ‘-+-BLOBF---+--template-name---+-----------+ ǀ ǀ +-CLOBF---+ ‘-BINARYXML-‘ ǀ ǀ ‘-DBCLOBF-‘ ǀ +-VARCHAR-+----------+-+----------------------------------------+-+ ǀ ‘-(length)-‘ +-strip-spec-----------------------------+ ǀ ǀ ‘-+-BLOBF---+-template-name-+------------+ ǀ ǀ +-CLOBF---+ ‘-BINARYXML-‘ ǀ ǀ ‘-DBCLOBF-‘ ǀ +-GRAPHIC-+----------+-+----------+-+----------+------------------+ ǀ ‘-EXTERNAL-‘ ‘-(length)-‘ ‘-TRUNCATE-‘ ǀ +-VARGRAPHIC-+----------+-strip-spec------------------------------+ ǀ ‘-(length)-‘ ǀ +-SMALLINT--------------------------------------------------------+ +-INTEGER--+-----------------------+------------------------------+ ǀ ‘-EXTERNAL-+----------+-‘ ǀ ǀ ‘-(length)-‘ ǀ +-BIGINT----------------------------------------------------------+ +-BINARY-+----------+-+----------+--------------------------------+ ǀ ‘-(length)-‘ ‘-TRUNCATE-‘ ǀ +-+-VARBINARY------+----------------------------------------------+ ǀ ‘-BINARY VARYING-‘ ǀ +-strip-spec------------------------------------------------------+ ǀ .-PACKED---. ǀ +-DECIMAL--+----------+--+-----------------------+----------------+ ǀ +-ZONED----+ ǀ .-,0-----. ǀ ǀ ǀ ‘-EXTERNAL-‘ ‘-(length)-+--------+-)-‘ ǀ ǀ ‘-,scale-‘ ǀ +-FLOAT-+----------+-+----------+---------------------------------+ ǀ ‘-EXTERNAL-‘ ‘-(length)-‘ ǀ +-DOUBLE----------------------------------------------------------+ +-REAL------------------------------------------------------------+ +-DATE--EXTERNAL--+----------+------------------------------------+ ǀ ‘-(length)-‘ ǀ +-TIME--EXTERNAL--+----------+------------------------------------+ ǀ ‘-(length)-‘ ǀ +-TIMESTAMP--EXTERNAL--+----------+-------------------------------+ ǀ ‘-(length)-‘ ǀ +-TIMESTAMP WITH THE ZONE EXTERNAL----+----------+----------------+ ǀ ‘-(length)-‘ ǀ +-CONSTANT--+-‘string’------+-------------------------------------+ ǀ ‘-X’hex-string’-‘ ǀ +-ROWID-----------------------------------------------------------+ +-BLOB-+----------+-+----------+----------------------------------+ ǀ ‘-(length)-‘ ‘-TRUNCATE-‘ ǀ +-CLOB-+----------+-+----------+----------------------------------+ ǀ ‘-(length)-‘ ‘-TRUNCATE-‘ ǀ +-DBCLOB-+----------+-+----------+--------------------------------+ ǀ ‘-(length)-‘ ‘-TRUNCATE-‘ ǀ ǀ .-(34)-------------------. ǀ +-DECFLOAT--+------------------------+----------------------------+ ǀ +-(16)-------------------+ ǀ ǀ ‘-EXTERNAL--+----------+-+ ǀ ǀ ‘-(length)-‘ ǀ ‘-XML--+-----------+----------------------------------------------’ ‘-BINARYXML-‘ Strip spec >>-+--------------------------------------------+---------------------------->
   ǀ        .-BOTH----.                         ǀ
   ‘-STRIP--+----------+--+-------------------+-‘
            +-TRAILING-+  ǀ                   ǀ
            ‘-LEADING--'  +-‘strip-char’------+
                          ‘-X’strip-char’-----’


Selection-condition spec
>>-+-predicate-----------+--------------------------------------------------->
   ‘-selection condition-‘
    .-------------------------------------.
    V                                     ǀ
>----+----------------------------------+-+--------------------------------->< ‘-+-AND-+--+-predicate-----------+-‘ ‘-OR--' ‘-selection condition-‘ Predicate >>-+-basic predicate---+---------------------------------------------------->< +-BETWEEN predicate-+ +-IN predicate------+ +-LIKE predicate----+ +-NULL predicate----+ Basic predicate >>-column-name--+- = --+------------------------------------------------------>
                +- <> -+
                +- > --+
                +- < --+ +- >= -+
                ‘- < = -‘ >--+-constant--------------------+----------------------------------------->
   ‘-labeled-duration-expression-‘   


IN predicate
                               .-,--------.
                               V          ǀ
>>-column-name--+-----+--IN--(---constant-+-)------------------------------>< ‘-NOT-‘ LIKE predicate >>-column-name--+-----+--LIKE--string-constant----------------------------->
                ‘-NOT-‘
>--+-------------------------+-------------------------------------------->< ‘-ESCAPE--string-constant-‘ NULL predicate >>-column-name--IS--+-----+--NULL----------------------------------------->< ‘-NOT-‘ Labeled-duration-expression >>-+-CURRENT_DATE----------------------------+----------------------------->
   ‘-CURRENT_TIMESTAMP----+----------------+-‘
                          ‘-WITH TIME ZONE-‘	
   .-------------------------------------.
   V                                     ǀ
>----+- + -+--constant--+-YEAR---------+-+-------------------------------->< +-YEARS--------+
                        +-MONTH--------+
                        +-MONTHS-------+
                        +-DAY----------+
                        +-DAYS---------+
                        +-HOUR---------+
                        +-HOURS--------+
                        +-MINUTE-------+
                        +-MINUTES------+
                        +-SECOND-------+
                        +-SECONDS------+
                        +-MICROSECOND--+
                        +-MICROSECONDS-+

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
Aggregate Functions in Db2 12 https://www.bmc.com/blogs/db2-aggregate-functions/ Mon, 01 Apr 2019 20:26:33 +0000 http://s27433.p402.sites.pressdns.com/?p=13202 ARRAY_AGG Ordinary array aggregation: >____ARRAY_AGG(expression_____________________________________________)__>                                 ǀ      <_,________________________ ǀ                                 ǀ                   _ASC___     ǀ ǀ                                 ǀ_ORDER BY_sort-key__ǀ_______ǀ____ǀ_ǀ                                                      ǀ_DESC__ǀ sort-key-expression >_______column-name_______________________________________________________><      ǀ_expression_ǀ Associative array aggregation: >__ARRAY_AGG(index-expression, expression)________________________________> (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) AVG        _ALL______ >__AVG(_ǀ__________ǀ_numeric-expression)__________________________________>        ǀ_DISTINCT_ǀ CORRELATION >_CORRELATION(expression-1, expression-2)_________________________________> COUNT           _ALL_______ >_COUNT(__ǀ__________ǀ__expression___)____________________________________> […]]]>

ARRAY_AGG

Ordinary array aggregation:

>____ARRAY_AGG(expression_____________________________________________)__>
                                 ǀ      <_,________________________  ǀ
                                 ǀ                     _ASC___     ǀ ǀ
                                 ǀ_ORDER BY_sort-key__ǀ_______ǀ____ǀ_ǀ
                                                      ǀ_DESC__ǀ

sort-key-expression

>_______column-name_______________________________________________________><
      ǀ_expression_ǀ

Associative array aggregation:

>__ARRAY_AGG(index-expression, expression)________________________________>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

AVG

         _ALL______
>__AVG(_ǀ__________ǀ_numeric-expression)__________________________________>
        ǀ_DISTINCT_ǀ

CORRELATION

>_CORRELATION(expression-1, expression-2)_________________________________>

COUNT

          _ALL_______
>_COUNT(__ǀ__________ǀ__expression___)____________________________________>
       ǀ  ǀ_DISTINCT_ǀ            ǀ
       ǀ_*________________________ǀ

COUNT_BIG

               _ALL_______
>_COUNT_BIG(___ǀ__________ǀ__expression___)_______________________________>
            ǀ  ǀ_DISTINCT_ǀ            ǀ
            ǀ_*ǀ_______________________ǀ

COVARIANCE or COVARIANCE_SAMP

>____COVARIANCE_______(expression-1, expression-2)________________________>
   ǀ_COVARIANCE_SAMP_ǀ

GROUPING

>__GROUPING(expression____________________________________________________>

LISTAGG

              _ALL______
>_LISTAGG(___ǀ__________ǀ_string-expression_______________)_______________>
             ǀ_DISTINCT_ǀ                  ǀ_,_separator_ǀ
>_________________________________________________________________________>
       ǀ                                <_,________________  ǀ
       ǀ                                       _ASC__      ǀ ǀ
       ǀ_WITHIN GROUP (_ORDER BY_sort-key____ǀ_______ǀ___)_ǀ_ǀ
                                             ǀ_DESC__ǀ

MAX

         _ALL______
>__MAX(_ǀ__________ǀ_expression)_________________________________________>
        ǀ_DISTINCT_ǀ

MEDIAN

>____MEDIAN(numeric-expression)__________________________________________>

MIN

         _ALL______
>__MIN(_ǀ__________ǀ_expression)_________________________________________>
        ǀ_DISTINCT_ǀ

PERCENTILE CONT

>__PERCENTILE_CONT(percentile-expression)________________________________>
                                               _ASC___
>__WITHIN GROUP (_ORDER BY_sort-expression)___ǀ_______ǀ_________)________>
                                              ǀ_DESC__ǀ

STDDEV

            _ALL______
>__STDDEV(_ǀ__________ǀ_expression)______________________________________>
           ǀ_DISTINCT_ǀ

STDDEV_SAMP

                 _ALL______
>__STDDEV_SAMP(_ǀ__________ǀ_expression)_________________________________>
                ǀ_DISTINCT_ǀ

SUM

         _ALL______
>__SUM(_ǀ__________ǀ_expression)_________________________________________>
        ǀ_DISTINCT_ǀ

VARIANCE or VARIANCE SAMP

                        _ALL______
>_____VARIANCE_______(_ǀ__________ǀ_expression)__________________________>
    ǀ_VARIANCE_SAMP_ǀ  ǀ_DISTINCT_ǀ

XMLAGG

>____XMLAGG(XML-expression____________________________________________)__>
                                 ǀ      <_,______________________ ǀ
                                 ǀ                     _ASC___  ǀ ǀ
                                 ǀ_ORDER BY_sort-key__ǀ_______ǀ ǀ_ǀ
                                                      ǀ_DESC__ǀ

sort-key

>________column-name______________________________________________________><
        ǀ_expression_ǀ

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
Updatable Catalog Statistics in Db2 12 https://www.bmc.com/blogs/db2-updateable-catalog-statistics/ Mon, 01 Apr 2019 20:22:22 +0000 http://s27433.p402.sites.pressdns.com/?p=13267 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) Catalog statistics that updatable and used for access path selection Table Statistics SYSIBM.SYSCOLDIST CARDF COLGROUPCOLNO COLVALUE FREQUENCYF HIGHVALUE LOWVALUE NUMCOLUMNS QUANTILENO TYPE SYSIBM.SYSCOLSTATS COLCARD HIGHKEY LOWKEY PARTITION SYSIBM.SYSCOLUMNS COLCARDF HIGH2KEY LOW2KEY SYSIBM.SYSINDEXES CLUSTERRATIOF FIRSTKEYCARDF FULLKEYCARDF NLEAF NLEVELS DATAREPEATFACTORF SYSIBM.SYSINDEXSTATS DATAREPEATFACTORF SYSIBM.SYSKEYTARGETS […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

Catalog statistics that updatable and used for access path selection

Table Statistics
SYSIBM.SYSCOLDIST CARDF
COLGROUPCOLNO
COLVALUE
FREQUENCYF
HIGHVALUE
LOWVALUE
NUMCOLUMNS
QUANTILENO
TYPE
SYSIBM.SYSCOLSTATS COLCARD
HIGHKEY
LOWKEY
PARTITION
SYSIBM.SYSCOLUMNS COLCARDF
HIGH2KEY
LOW2KEY
SYSIBM.SYSINDEXES CLUSTERRATIOF
FIRSTKEYCARDF
FULLKEYCARDF
NLEAF
NLEVELS
DATAREPEATFACTORF
SYSIBM.SYSINDEXSTATS DATAREPEATFACTORF
SYSIBM.SYSKEYTARGETS HIGH2KEY
LOW2KEY
STATS_FORMAT
SYSIBM.SYSKEYTGTDIST CARDF
KEYGROUPKEYNO
KEYVALUE
FREQUENCYF
HIGHVALUE
LOWVALUE
NUMKEYS
QUANTILENO
TYPE
SYSIBM.SYSROUTINES CARDINALITY
INITIAL_INSTS
INITIAL_IOS
INSTS_PER_INVOC
IOS_PER_INVOC
SYSIBM.SYSTABLES CARDF
NPAGES
NPAGESF
PCTROWCOMP
SYSIBM.SYSTABLESPACE NACTIVEF
SYSIBM.SYSTABSTATS CARDF
NPAGES

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
XML Schema Repository Tables in Db2 12 https://www.bmc.com/blogs/db2-xml-schema-repository-tables/ Mon, 01 Apr 2019 20:20:13 +0000 http://s27433.p402.sites.pressdns.com/?p=13265 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) SYSIBM.XSRCOMPONENT Auxiliary table for BLOB column COMPONENT in SYSIBM.SYSXSROBJECTCOMPONENTS Column name Data type Description COMPONENT BLOB(30M) Contents of the XML schema document SYSIBM.XSROBJECTS Contains one row for each registered XML schema Column name Data type Description XSROBJECTID INTEGER Internal identifier of […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

SYSIBM.XSRCOMPONENT

Auxiliary table for BLOB column COMPONENT in SYSIBM.SYSXSROBJECTCOMPONENTS

Column name Data type Description
COMPONENT BLOB(30M) Contents of the XML schema document

SYSIBM.XSROBJECTS

Contains one row for each registered XML schema

Column name Data type Description
XSROBJECTID INTEGER Internal identifier of the XML schema. XSROBJECTID is generated as an identity column
XSROBJECT

SCHEMA

VARCHAR(128) Qualifier of XML schema name. Always set to ‘SYSSXR’
XSROBJECT

NAME

VARCHAR(128) Name of the XML schema
TARGET

NAMESPACE

INTEGER Value of STRINGID column inSYSXMLSTRINGS when target namespace URL of primary XML schema document is stored in SYSXMLSTRINGS
SCHEMA

LOCATION

INTEGER Value of STRINGID column in SYSXMLSTRINGS when schema location URI of primary XML schema document is stored in SYSXMLSTRINGS
ROWID ROWID ID that is used to support BLOB data type values
GRAMMAR BLOB(250M) The internal binary representation of the XML schema
PROPERTIES BLOB(5M) Additional property information of the entire XML schema
CREATEDBY VARCHAR(128) Authorization ID under which the XML schema was created
CREATEDTS TIMESTAMP Time that DB2-supplied stored procedure XSR_REGISTER was executed for XML schema
STATUS CHAR(1) Registration status of the XML schema:

C  Complete

I  Incomplete

T  Temporary

RELCREATED CHAR(1) The release of DB2 that is used to create the object
CHAR(1) Not used
VARHCAR(128) Not used
REMARKS VARCHAR(762) Character string that contains comments about XML schema

SYSIBM.XSROBJECTCOMPONENTS

Contains one row for each component (document) in an XML schema

Column name Data type Description
XSRCOMPONENTID INTEGER Identifier of XML schema document. XSRCOMPONENTID is generated as an identity column
TARGETNAMESPACE INTEGER Value of STRINGID column in SYSXMLSTRINGS when target namespace URI of primary XML schema document is stored in SYSXMLSTRINGS
SCHEMALOCATION INTEGER Value of STRINGID column in SYSXMLSTRINGS when schema location URI of the primary XML schema document is stored in SYSXMLSTRINGS
ROWID ROWID ID that is used to support BLOB data type values
COMPONENT BLOB(30M) Contents of the XML schema document
PROPERTIES BLOB(5M) Additional property information of the XML schema document
CREATEDTS TIMESTAMP Time XML schema document was registered
STATUS CHAR(1) Registration status of the XML schema:

C  Complete

I  Incomplete

RELCREATED CHAR(1) The release of DB2 that is used to create the object

SYSIBM.XSROBJECTGRAMMER

An auxiliary table for the BLOB column GRAMMAR in SYSIBM.SYSXSROBJECTS

Column name Data type Description
GRAMMAR BLOB(250M) Internal binary representation of the XML schema

SYSIBM.XSROBJECTHIERARCHIES

SYSIBM.XSROBJECTHIERARCHIES contains one rule for each component (document) in an XML schema to record the XML schema document hierarchy relationships

Column name Data type Description
XSROBJECTID INTEGER Internal identifier of the XML schema
XSRCOMPONENTID INTEGER Internal identifier of the XML schema document
HTYPE CHAR(1) Hierarchy type:

D  Document

P  Primary document

TARGETNAMESPACE INTEGER Value of STRINGID column in SYSXMLSTRINGS when target namespace URI of primary XML schema document is stored in SYSXMLSTRINGS
SCHEMALOCATION INTEGER Value of STRINGID column in SYSXMLSTRINGS when schema location URI of primary XML schema document is stored in SYSXMLSTRINGS
RELCREATED CHAR(1) The release of DB2 that is used to create the object

SYSIBM.XSROBJECTPROPERTY

An auxiliary table for the BLOB column PROPERTIES in SYSIBM.SYSXSROBJECTS

Column name Data type Description
PROPERTIES BLOB(5M) Contents of the additional property information of the entire XML schema

SYSIBM.XSRPROPERTY

Auxiliary table for BLOB column PROPERTIES in SYSIBM.SYSXSROBJECTCOMPONENTS

Column name Data type Description
PROPERTIES BLOB(5M) Contents of additional property information of the XML schema document

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>
Catalog Tables in Db2 12 https://www.bmc.com/blogs/db2-catalog-tables/ Mon, 01 Apr 2019 19:51:48 +0000 http://s27433.p402.sites.pressdns.com/?p=13263 Check out the interactive Db2 12 for z/OS Catalog Tables index (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) SYSIBM.IPLIST Allows multiple IP addresses to be specified for a given LOCATION Column name Data type Description LINKNAME VARCHAR(24) Associated with value specified in LINKNAME column in LOCATIONS table and […]]]>

Check out the interactive Db2 12 for z/OS Catalog Tables index

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

SYSIBM.IPLIST

Allows multiple IP addresses to be specified for a given LOCATION

Column name Data type Description
LINKNAME VARCHAR(24) Associated with value specified in LINKNAME column in LOCATIONS table and IPNAMES table. Values of other columns in IPNAMES table apply to server identified by LINKNAME
IPADDR VARCHAR(254) Contains an IPv4 or IPv6 address, or domain name of a remote TCP/IP host of server
IBMREQD CHAR(1) A value of Y means row came from MRM tape

SYSIBM.IPNAMES

Defines the remote DRDA servers DB2 can access using TCP/IP

Column name Data type Description
LINKNAME VARCHAR(24) Value specified must value specified in LINKNAME column of associated role in LOCATIONS
SECURITY_OUT CHAR(1) DRDA security option used when local DB2 SQL applications connect to remote server associated with this TCP/IP host:

A “already verified”

D “userid and security sensitive data encryption”

E “userid, password and security sensitive data    encryption”

R “RACF PassTicket”

p “password”

USERNAMES CHAR(1) Controls outbound auth ID translation. Performed when an auth ID is sent by DB2 to a remote server:

O    An outbound ID is subject to translation.   USERNAMES table are used to perform ID translation. No translation or ‘come from’ checking is performed an inbound IDs.

S    USERNAMES table is used to obtain system

AUTHID used to establish a trusted connection Blank No translation occurs

IBMREQD CHAR(1) Y indicates row came a MRM tape
IPADDR VARCHAR(254) IP address or domain name of a remote TCP/IP host

SYSIBM.LOCATIONS

Contains a row for every accessible remote server

Column name Data type Description
LOCATION VARCHAR(128) A unique location name for accessible server. Name by which the remote server is known to local DB2 SQL applications
LINKNAME VARCHAR(128) Identifies VTAM or TCP/IP attributes associated with this location
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
PORT VARCHAR(96) TCP/IP is used for outbound DRDA connections when following statements is true: Row exists in IPNAMES, where LINKNAME column matches value specified in LOCATIONS LINKNAME column
TPN VARCHAR(192) Used only when local DB2 begins an SNA conversation with another server
DBALIAS VARCHAR(128) Database alias. Name associated with server. Name is used to access a remote database server
TRUSTED CHAR(1) Connection to remote server can be trusted. Restricted to TCP/IP only. Ignored for connections using SNA.

Y  Location is trusted. Access to remote location  requires trusted context defined at remote location

N  Location is not trusted

SECURE CHAR(1) Use Secure Socket Layer (SSL) protocol for outbound DRDA connections when local DB2 applications connects to remote database server using TCP/IP

Y   Secure connection using SSL required for outbound DRDA

N   Secure connection is not required for outbound DRDA

SYSIBM.LULIST

Allows multiple LU names to be specified for a given LOCATION

Column name Data type Description
LINKNAME VARCHAR(24) Value of LINKNAME column LOCATIONS with which this row is associated. Also value of LUNAME column in LUNAMES table. Values of other columns in LUNAMES row apply to LU identified by LUNAME column in this row of LULIST
LUNAME VARCHAR(24) VTAM logical unit name (LUNAME) of remote database system. LUNAME must not exist in LUNAME column of LUNAMES
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.LUMODES

Provides VTAM w/conversation limits for a specific combination of LUNAME and MODENAME

Column name Data type Description
LUNAME VARCHAR(24) LU name of the server involved in the CNOS processing
MODENAME VARCAHR(24) Name of a logon mode description in the VTAM logon mode table
CONVLIMIT SMALLINT Maximum number of active conversations between local DB2 and other system for this mode. Used to override number in the DSESLIM parameter of the VTAMAPPL definition statement for this mode
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.LUNAMES

Contains a row for each remote SNA client or server that communicates with DB2

Column name Data type Description
LUNAME VARCHAR(24) Name of LU for one or more accessible systems
SYSMODENAME VARCHAR(24) Mode used to establish inter-system conversations
SECURITY_IN CHAR(1) Define security options when an SNA client connects to DB2:

V ‘verify’

A ‘already verified’

SECURITY_OUT CHAR(1) Defines security option used when local DB2 SQL applications connect to any remote server associated with this LUNAME

A  ‘already verified’

R  ‘RACF PassTicket’

P  ‘password’

ENCRYPTPSWDS CHAR(1) Only applies to DB2 for z/OS partners. Provided to support connectivity to prior releases of DB2 unable to support RACF PassTickets

N Passwords are not in internal RACF encrypted format(default)

Y For outbound requests, encrypted password is extracted from RACF and sent to the server. For inbound requests, the password is treated as encrypted

MODESELECT CHAR(1) Use MODESELECT table:

N Use default modes: IBMDB2LM (DB2 private protocol) and IBMRDB (DRDA)

Y Searches MODESELECT for appropriate mode name

USERNAMES CHAR(1) Controls inbound and outbound authorization ID translation, and ‘come from’ checking. Inbound translation and ‘come from’ checking are performed when an authorization ID is received from a remote client. Outbound translation is performed when an authorization ID is sent by DB2 to a remote server. When I, O, or B is specified in this column, rows in USERNAMES are used to perform ID translation.

I  An inbound ID is subject to translation and ‘come from’ checking. No translation is performed on outbound IDs

O  No translation or ‘come from’ checking is performed on inbound IDs. An outbound ID is subject to translation.

B  An inbound ID is subject of translation and ‘come from’ checking. An outbound ID is subject to translation

Blank  No translation occurs

GENERIC CHAR(1) DB2 should use its real LU name or generic LU name to identify itself to the partner LU, which is identified by this row

N  Real VTAMLU name of this DB2 subsystem

Y  VTAM generic LU name of this DB2 subsystem

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.MODESELECT

Associates a mode name with any conversation created to support an outgoing SQL request

Column name Data type Description
AUTHID VARCHAR(128) Auth ID of SQL request. Blank (default) =  MODENAME specified for row is to apply to all authorization IDs
PLANNAME VARCHAR(24) Plan name associated with SQL request. Blank (default)= MODENAME specified is to apply to all plan names
LUNAME VARCHAR(24) LU name associated with SQL request
MODENAME VARCAHR(24) Name of logon mode in VTAM logon mode table to be used in support of the outgoing SQL request. If blank, IBMDB2LM is used for DB2 private protocol and IBMRDB is used for DRDA
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.AUDITPOLICIES

Contains one row for each order policy

Column name Data type Description
AUDITPOLICY

NAME

VARCHAR(128) Name of audit policy

 

OBJECTSCHEMA VARCHAR(128) Schema of audited object. Object schema only applies to categories. OBJMAINT and EXECUTE
OBJECTNAME VARCHAR(128) Name of object
OBJECTTYPE CHAR(1) Type of object for categories OBJMAINT and EXECUTE:

A  Alias

C  Clone table

P  Implicit table created for XML columns

T  Table

blank  All the above object types

CREATEDTS TIMESTAMP Time when the row was inserted
ALTERDTS TIMESTAMP Time when the row was last updated
CHECKING CHAR(1) Authorization and authentication failures are audited:

A  Audit all failures (authorization and authentication)

Blank Audit none

VALIDATE CHAR(1) Auditing is enabled for when a trusted connection is established or used by different user:

A  Audit all

Blank  Audit none

OBJMAINT CHAR(1) Auditing is enabled for when table identified by OBJECTSCHEMA, OBJECTNAME and OBJECTTYPE columns is altered or dropped:

A  Audit when specified table is altered or dropped

Blank  Audit none

EXECUTE CHAR(1) Auditing is enabled for when table identified by OBJECTSCHEMA, OBJECTNAME and OBJECTTYPE columns is accessed during first operation performed by each unit of work. Records bind time information about SQL statements that involve tables identified by the OBJECTSCHEMA, OBJECTNAME, and OBJECTTYPE

A  Audit when specified table is accessed during the first operation of any kind performed by each unit of work a utility or application process

C  Audit when specified table is accessed during first insert, update or delete operation performed by each unit of work

Blank  Audit none

CONTEXT CHAR(1) If auditing is enabled for start of a utility, a change to a utility object or phase, and end of utility:

A  Audit all utilities

Blank  Audit none

SECMAINT CHAR(1) If auditing is enabled for when a grant or revoke is made or a trusted context is created or altered:

A  Audit all utilities

Blank  Audit none

SYSADMIN VARCHAR(128) If auditing is enabled for when an operation is performed using administrative authority to perform system administration tasks:

Blank  Audit none

*      Audit all the authorities

I      Installation SYSADM

L      SYSCTRL

O      SYSOPR

R      Installation SYSOPR

S      SYSADM

Can be concantenated string of all supported values

DBADMIN VARCHAR(128) Indicates if auditing is enabled for when an operation is performed using an administrative authority to perform database administration tasks:

Blank    Audit none

*        Audit all the authorities

B        System DBADM

C        DBCTRL

D        DBADM

E        SECADM

      ACCESSCTRL

K        SQLADM

M        DBMAINT

P        PACKADM

T        DATAACCESS

Can be a concantenated string of all supported values

DBNAME VARCHAR(24) Database name
COLLID VARCHAR(128) Name of package collection
DB2START CHAR(1) Indicates if audit policies are to be started automatically during DB2 start up. Up to 8 audit policies can be specified

Y  Audit policy will be started automatically

N  Audit policy will not be started automatically

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSAUTOALERTS

Contains one row for each recommendation from autonomic procedures

Column name Data type Description
ALERT_ID BIGINT ID of alert
HISTORY_ENTRY_ID BIGINT ID of entry in ADMIN_UTLPROCEDURES_HIST procedure that produced this alert
ACTION VARCHAR(32) Type of action requested by this alert
TARGET_QUALIFER VARCHAR(128) Qualifier of object (database name) to which alert applies
TARGET_OBJECT VARCHAR(128) Name of object (tablespace name) to which alert applies
TARGET_PARTITION SMALLINT Partition number of DB2 object to which alert applies. 0, if it applies to all partitions or if object is not partitioned
OPTIONS VARCHAR(4000) Options specified and corresponding action is run:

USE PROFILE   use options specified in profile

TABLE         Options only apply for this table

COLUMNS       Options only apply for these columns

SAMPLE        Sampling is allowed

CREATEDTS TIMESTAMP Timestamp when alert was issued
DURATION INTEGER Estimate of time, in seconds, to run corresponding action
STATUS VARCHAR(32) Status od actual planned task

OPEN          Alert is not yet resolved

IN PROGRESS   Alert execution is in progress

COMPLETED     Alert execution is complete

STARTTS TIMESTAMP Timestamp for when alert execution started
ENDTS TIMESTAMP Timestamp for when alert execution ended
RETURN_CODE INTEGER Return code written directly by autonomic stored procedure that resolved alert
ERROR_MESSAGE VARCHAR(1331) Error message that indicates why alert was not resolved successfully
OUTPUT CLOB(2M) Output written directly by the autonomic stored procedure that executes the planned task
ROWID ROWID ROWID value for CLOB column of this table

SYSIBM.SYSAUTOALERTS_OUT

An auxiliary table for OUTPUT column of the SYSIBM.SYSAUTOALERTS table

Column name Data type Description
OUTPUT CLOB(2M) The output of the autonomic stored procedure

SYSIBM.SYSAUTORUNS_HIST

Contains one row for each time an autonomic procedure has been run

Column name Data type Description
HISTORY_ENTRY_ID BIGINT ID of the entry in history table
PROC_NAME VARCHAR(128) Name of autonomic stored procedure that produced entry
STARTTS TIMESTAMP Timestamp when autonomic stored procedure started
ENDTS TIMESTAMP Timestamp when autonomic stored procedure ended
OUTPUT CLOB(2M) Output of autonomic stored procedure
ERROR_MESSAGE VARCHAR(1331) An error message that indicates why the autonomic stored procedure was not successful
RETURN_CODE INTEGER Return code written directly by autonomic stored procedure
ROWID ROWID ROWID value for OUTPUT column of this table

SYSIBM.SYSAUTORUNS_HISTOU

An auxiliary table for the OUTPUT column of the SYSIBM.SYSAUTORUNS_HIST table

Column name Data type Description
OUTPUT CLOB(2M) The output of the autonomic stored procedure

SYSIBM.SYSAUTOTIMEWINDOWS

Contains one row for each time period during which autonomic procedures can be run

Column name Data type Description
WINDOW_ID BIGINT ID of time window described in this row
DB2_SSID CHAR(4) DB2 member name on which planned tasks have to be run
MONTH_WEEK CHAR(1) How value of DAY column is interpreted:

M   Value of DAY column is interpreted as day of month

W   Value of DAY column is interpreted as day of week

MONTH INTEGER Month in which time window applies
DAY INTEGER Day of the month or day of the week for which the time window applies
FROM_TIME TIME Time of day at which time window applies
TO_TIME TIME Time of day at which time window ends
ACTION VARCHAR(256) Comma-separated list of actions allowed during this time window
MAX_TASKS INTEGER Number of concurrent actions allowed during time window

SYSIBM.SYSAUXRELS

Contains one row for each auxiliary table created for a LOB column

Column name Data type Description
TBOWNER VARCHAR(128) Schema of base table
TBNAME VARCHAR(128) Name of base table
COLNAME VARHCAR(128) Name of LOB column in base table
PARTITION SMALLINT Partition number if base tablespace is partitioned. Else, 0
AUXTBOWNER VARCHAR(128) Schema of owner of the auxiliary table
AUXTBNAME VARCHAR(128) Name of auxiliary table
AUXRELOBID INTEGER Internal identifier relationship between base and auxiliary table
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
RELCREATED CHAR(1) Release of DB2 was used to create object. Blank if pre-9

SYSIBM.SYSCHECKDEP

Contains one row for each reference to a column in a table check constraint

Column name Data type Description
TBOWNER VARCHAR(128) Schema of owner of table on which check constraint is defined
TBNAME VARCHAR(128) Name of table on which the check constraint is defined
CHECKNAME VARCHAR(128) Name of check constraint
COLNAME VARCHAR(128) Name of column that the table check constraint refers to
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSCHECKS

Contains one row for each table check constraint

Column name Data type Description
TBOWNER VARCHAR(128) Schema of owner of table on which constraint is defined
CREATOR VARCHAR(128) Authorization ID of the creator of the table check constraint
DBID SMALLINT Internal identifier of the database for the table check constraint
OBID SMALLINT internal identifier of the table check constraint
TIMESTAMP TIMESTAMP Time table check constraint was created
RBA CHAR(10) Log RBA when table check constraint was created
IBMREQD CHAR(1) Y indicates row came from the basic (MRM) tape
TBNAME VARCHAR(128) Name of table on which check constraint is defined
CHECKNAME VARCHAR(128) Table check constraint name
CHECKCONDITION VARCHAR(7400) Text of table check constraint
RELCREATED CHAR(1) Release of DB2 is used to create the object. Blank if pre-9
ENVID INTEGER Internal environment identifier
PERIOD CHAR(1) Type of business associated with check constraint:

B: BUSINESS_TIME check constraint

S: SYSTEM_TIME check constraint

Blank: not applicable

SYSIBM.SYSCHECKS2

Contains one row for each table check constraint

Column name Data type Description
TBOWNER VARCHAR(128) Schema of owner of table on which constraint is defined
TBNAME VARCHAR(128) Name of the table on which the check constraint is defined
CHECKNAME VARCHAR(128) Table check constraint name
PATHSCHEMA VARCHAR(2048) SQL path at time check constraint was created
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
RELCREATED CHAR(1) Release of DB2 is used to create the object. Blank if pre-9

SYSIBM.SYSCOLAUTH

UPDATE or REFERENCES privileges held by users on individual columns of table or view

Column name Data type Description
GRANTOR VARCHAR(128) Auth ID of user who granted privileges. Can be PUBLIC or PUBLIC*
GRANTEE VARCHAR(128) Authorization ID of user who holds privilege or name of plan or package that uses privilege
GRANTEETYPE CHAR(1) Type of grantee:

Blank: An authorization ID

L: Role

P: An application plan or package. Grantee is a package if COLLID is not blank

CREATOR VARCHAR(128) Schema of owner of table or view on which update privilege is held
TNAME VARCHAR(128) Name of table or view
COLNAME VARCHAR(128) Name of columns to which UPDATE privilege applies
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
COLLID CHAR(128) If GRANTEE is a package, its collection name. Else, blank
CONTOKEN CHAR(8) If GRANTEE is a package, consistency token of DBRM from which package was derived. Else, blank
PRIVILEGE CHAR(1) Privileged row describes:

R      REFERENCES privilege

Blank  UPDATE privilege

GRANTEDTS TIMESTAMP Time when GRANT was executed
GRANTEDORTYPE CHAR(1) Type of grantor

L       Role

Blank   Authorization ID that is not a role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSCOLDIST

Rows for cardinality, frequency, and histogram statistics for single column or a column group

Column name Data type Description
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
TBOWNER VARCHAR(128) Schema of table that contains column
TBNAME VARCHAR(128) Name of table that contains column
VARCAHR(128) Name of column
COLVALUE VARCHAR(2000) Data of a frequently occurring value
TYPE CHAR(1) Type of statistics gathered:

C   Cardinality

F   Frequent value

H   Histogram statistics

N   Nonpadded frequent value

CARDF FLOAT TYPE=’C’, number of distinct values for column group

TYPE=’H’, number of distinct values for column group in a quantile indicated by QUANTILENO

COLGROUPCOLNO VARCHAR(254) Set of columns associated with statistics
NUMCOLUMNS SMALLINT Number of columns associated with the statistics
FREQUENCYF FLOAT Percentage of rows in table with value specified in COLVALUE when the number is multiplied by 100
QUANTILENO SMALLINT Ordinary sequence number of quantile in whole consecutive value range, from low-to-high. Not updatable
LOWVALUE VARCHAR(2000) TYPE=’H’, lower bound for quantile in QUANTILENO. Not used if type is not ‘H’. Not updatable
HIGHVALUE VARCHAR(2000) TYPE=’H’, higher bound for quantile in QUANTILENO. Not used if type is not ‘H’. Not updatable

SYSIBM.SYSCOLDISTSTATS

Rows per partition for cardinality, frequency, and histogram statistics

Column name Data type Description
SMALLINT Not used
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
PARTITION SMALLINT Partition number for tablespace that contains table in which column is defined
TBOWNER VARCHAR(128) Schema of owner of table that contains column
TBNAME VARCHAR(128) Name of table that contains column
NAME VARCHAR(128) Name of column
COLVALUE VARCHAR(2000) Data of a frequently occurring value. FOR BIT DATA value has non-character data type, data may not be printable
TYPE CHAR(1) Type of statistics gathered:

C    Cardinality

F    Frequent value

H    Histogram statistics

N    Non-padded frequent value

CARDF FLOAT TYPE=C, number of distinct values for column group.

TYPE=N or F, number of rows or keys in partition for which FREQUENCYF value applies. TYPE=H, number of distinct values of column group in a quantile in QUANTILENO

COLGROUPCOLNO VARCHAR(254) Set of columns associated with statistics
NUMCOLUMNS SMALLINT Number of columns associated with the statistics
FREQUENCYF FLOAT Percentage of rows in table with value specified and COLVALUE when number is multiplied by 100
QUANTILENO SMALLINT Ordinary sequence number of a quantile in the whole consecutive value range, from low to high. Not updatable
LOWVALUE VARCHAR(2000) For TYPE=’H’, lower bound for quantile indicated by QUANTILENO. Not used if TYPE is not ‘H’. Not updatable
HIGHVALUE VARCHAR(2000) For TYPE=’H’, higher bound for quantile indicated by QUANTILENO. Not used if type is not ‘H’. Not updatable

SYSIBM.SYSCOLDIST_HIST

Contains rows from SYSCOLDIST

Column name Data type Description
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
TBOWNER VARCHAR(128) Schema of table that contains column
TBNAME VARCHAR(128) Name of table that contains column
NAME VARCHAR(128) Name of column. If NUMCOLUMNS is greater than 1, first column name of set of columns associated with statistics
COLVALUE VARCHAR(2000) Contains data of a frequently occurring value
TYPE CHAR(1) Type of statistics gathered:

C      Cardinality

F      Frequent value

H      Histogram statistics

N      Non-padded frequent value

CARDF FLOAT(8) TYPE=’C’, number of distinct values for column group

TYPE=’H’, number of distinct values for column group in quantile in QUANTILENO. -1 if statistics not gathered

COLGROUPCOLNO VARCHAR(254) Set of columns associated with statistics
NUMCOLUMNS SMALLINT Number of columns associated with statistics
FREQUENCYF FLAOT(8) Percentage of rows in table, value specified in COLVALUE when number is multiplied by 100
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
QUANTILENO SMALLINT Ordinary sequence number of a quantile in the whole consecutive value range, from low to high. Not updatable
LOWVALUE VARCHAR(2000) TYPE=’H’, the lower bound for the quantile indicated by QUANTILENO. Not used if TYPE is not ‘H’. Not updateable
HIGHVALUE VARCHAR(2000) TTYPE=’H’, the higher bound for the quantile indicated by QUANTILENO. Not used if type is not ‘H’. Not updatable

SYSIBM.SYSCOLSTATS

Contains partition statistics with selected columns

Column name Data type Description
HIGHKEY VARCHAR(2000) Highest value of column within partition
HIGH2KEY VARCHAR(2000) Second highest value of column within partition
LOWKEY VARCHAR(2000) Lowest value of column within partition
LOW2KEY VARCHAR(2000) Second lowest value of the column within the partition
COLCARD INTEGER Number of distinct column values in the partition
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
PARTITION SMALLINT Partition number for tablespace that contains table on which column is defined
TBOWNER VARCHAR(128) Schema or qualifier of the table that contains the column
TBNAME VARCHAR(128) Name of the table that contains the column
NAME VARCHAR(128) Name of the column
COLCARDDATA VARCHAR(1000) Internal use only
STATSFORMAT CHAR(1) Table statistics gathered:

Blank    Statistics have not been collected or varchar column statistical values are padded

N        VARCHAR column statistical values are not padded

An updateable column

SYSIBM.SYSCOLUMNS

Contains one row for every column in a table or view

Column name Data type Description
NAME VARCHAR(128) Name of the column
TBNAME VARCHAR(128) Name of the table or view that contains the column
TBCREATOR VARCHAR(128) Schema of the table or view that contains the column
COLNO SMALLINT Numerical place of the columns in the table or view
COLTYPE CHAR(8) Type of the column specified in the definition of the column
LENGTH SMALLINT length of column
SCALE SMALLINT If column type is DECIMAL, value represent scale
NULLS CHAR(1) Column contain null values:

N = no

Y = yes

Can be N for a view column derived from an expression or a function. Allows nulls when an outer select list refers to it

HIGH2KEY VARCHAR(2000) Second highest value of column
LOW2KEY VARCHAR(2000) Second lowest value of column
UPDATES CHAR(1) Whether the column can be updated:

N = no

Y = yes

The values is N the column is:

* Derived from a functional or expression

* A column that is defined with AS IDENTITY and GENERATED ALWAYS attributes.

Value can be Y for columns of a read-only view

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
REMARKS VARCHAR(72) A character string provided by user with COMMENT ON
DEFAULT CHAR(1) Meaningful only if TYPE column for associated SYSTABLES row indicates a Table(T)or a created temporary table (G)
KEYSEQ SMALLINT Column’s numeric position within primary key. 0 if not part of a primary key
FOREIGNKEY CHAR(1) Applies to character or CLOB columns, indicates subtype of data:

B   BIT data

M   MIXED data

S   SBCS data

Blank

FLDPROC CHAR(1) Column has a field procedure:

N      No

Y      Yes

Blank  For a view defined prior to V7

LABEL VARCHAR(90) Column label provided by user with a LABEL ON; else blank
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
DEFAULTVALUE VARCHAR(1536) Meaningful only if column being described is for a table (TYPE column of associated SYSTABLES row is T for table or G for created temporary table)
COLCARDF FLOAT Estimated number of distinct values in column
COLSTATUS CHAR(1) Status of definition of a column:

I      Definition is incomplete because a LOB tablespace, auxiliary table or index on an auxiliary table not created

Blank  Definition of complete

LENGTH2 INTEGER Maximum length of the data retrieved from the column:

0   Not a LOB  or ROWID column

40  For a ROWID column, the length of the returned value

1 to 2 147 483 647 bytes

For a LOB column, the maximum length

DATATYPEID INTEGER For a built-in data type, internal ID of built-in type. For a distinct type, internal ID of distinct type. If created prior to V6, value is 0
SOURCETYPEID INTEGER For a built-in data type, 0. For a distinct type, internal ID of distinct type upon which distinct type is based. If created prior to V6, value is 0
TYPESCHEMA VARCHAR(128) If COLTYPE is DISTINCT, schema of distinct type. Else SYSIBM
TYPENAME VARCHAR(128) If COLTYPE is DISTINCT, name of the distinct type. Else, value is same as value of COLTYPE column
CREATEDTS TIMESTAMP Timestamp when column was created
STATS_FORMAT CHAR(1) Type of statistics gathered:

Blank     Statistics have not been collected or varchar column statistical columns are padded

N         Varchar column statistical values are padded

An updatable column

PARTKEY_COLSEQ SMALLINT Numeric position of column within partitioning key of table. 0 if it is not part of partitioning key. Applicable only if table uses table controlled partitioning
PARTKEY_

ORDERING

CHAR(1) Order of column in partitioning key

A     Ascending

D     Descending

Blank Column is not used as part of a partitioning key

ALTERDTS TIMESTAMP Time stamp when the alter occurred
CCSID INTEGER CCSID of column
HIDDEN INTEGER Column is hidden

P      Partially hidden

N      Not hidden

RELCREATED CHAR(1) Release of DB2 that is used to create the object
CONTROL_ID INTEGER Internal identifier of column across control mask defined for this column. 0 if no column access control mask is defined for column
XML_

TYPEMOD_ID

INTEGER Idea of the XML type modifier

 

PERIOD CHAR(1) Indicates whether the column is the start or the end of the period for a SYSTEM_TIME or BUSINESS_TIME period:

B     Start of period BUSINESS_TIME

C     End of period BUSINESS_TIME with exclusive period

I     End of period BUSINESS_TIME with inclusive period

S     Start of period SYSTEM_TIME

T     End of period SYSTEM_TIME

Blank Not used as start or the end of a period

GENERATE_

ATTR

CHAR(1) Indicates column generated attribute:

A      Defined as GENERATED_ALWAYS

B      Defined as GENERATEDBY_DEFAULT

blank  Not applicable or value of DEFAULT column is A, D, E, F, I or J or defined from a prior release of DB2

HASHKEY_

COLSEQ

SMALLINT Contains numeric position within tables hash key
ENCODING_

SCHEME

CHAR(1) Encoding scheme of column.

A     ASCII

E     EBCDIC

U     UNICODE

SYSIBM.SYSCOLUMNS_HIST

Contains rows from SYSCOLUMNS.

Column name Data type Description
NAME VARCHAR(128) Name of column
TBNAME VARCHAR(128) Name of table or view that contains the column
TBCREATOR VARCHAR(128) Schema or qualifier of the table or view that contains the column
COLNO SMALLINT Numeric place of the column in the table or view
COLTYPE CHAR(8) Type of column specified in definition of column
LENGTH SMALLINT Length of column
LENGTH2 INTEGER Maximum length of the data retrieved from the column

0    Not a LOB or ROWID column

40   For a ROWID column, length of the returned value

2 to 2 147 483 647 bytes. For a LOB column, maximum length

NULLS CHAR(1) Column can contain null values: N=No, Y=Yes
HIGH2KEY VARCHAR(2000) Second highest value of the column
LOW2KEY VARCHAR(2000) Second lowest value of the column
STATSTIME TIMESTAMP Date and time when RUNSTATS updated statistics
COLCARDF FLOAT Estimated number of distinct values in column
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
STATS_FORMAT CHAR(1) Type of statistics gathered

SYSIBM.SYSCONSTDEP

Records dependencies on check constraints or user-defined defaults for a column

Column name Data type Description
BNAME VARCHAR(128) Name of the object on which the dependency exists
BSCHEMA VARCHAR(128) Schema of the object on which the dependency exists
BTYPE CHAR(1) Type of object on which the dependency exists:

F=Function instance

DTBNAME VARCHAR(128) Name of the table to which the dependency applies
DTBCREATOR CHAR(8) Schema of the owner of the table to which dependency applies
DCONSTNAME VARCHAR(128) If DTYPE=’C’, unqualified name of check constraint. If DTYPE=’D’, a column name
DTYPE CHAR(1) Type of object:

C       Check constraint

D       User-defined default constraint

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
DTBOWNER VARCHAR(128) Auth ID of owner of table or a zero if created prior to V9
OWNERTYPE CHAR(1) Type of owner:

blank   Authorization ID

R       Role

SYSIBM.SYSCONTEXT

Contains one row for each trusted context

Column name Data type Description
NAME VARCHAR(128) Name of the trusted context
CONTEXTID INTEGER Internal context ID
DEFINER VARCHAR(128) Authorization ID or role that defined the trusted context
DEFINERTYPE CHAR(1) Type of the definer:

L        Role

Blank    Authorization ID

SYSTEMAUTHID VARCHAR(128) Primary authorization ID used to establish connection
DEFAULTROLE VARCHAR(128) Name of the trusted context default role
OBEJECTOWNERTYPE CHAR(1) ROLE AS OBJECT OWNER on the trusted context

L     ROLE AS OBJECT OWNER is specified

Blank ROLE AS OBJECT OWNER not specified

CREATEDTS TIMESTAMP Time when the trusted context is created
ALTEREDTS TIMESTAMP Time when the trusted context is last altered
ENABLED CHAR(1) Status of the trusted context:

Y    Enabled

N    Disabled

ALLOWPUBLIC CHAR(1) Connection is allowed to be reused for PUBLIC:

Y    Connection reuse is allowed

N    Connection reuse is not allowed

AUTHENTICATEPUBLIC CHAR(1) Authentication required for PUBLIC
RELCREATED CHAR(1) Release of DB2 that is used to create object
IBMREQD CHAR(1) Y indicates row camp from basic (MRM) tape
REMARKS VARCHAR(762) A character string that is provided COMMENT statement
DEFAULT_

SECURITYLABEL

VARCHAR(24) Name of the context default RACF security label
SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSCONTEXTAUTHIDS

Contains one row for each authorization ID with which the trusted context can be used

Column name Data type Description
CONTEXTID INTEGER Internal trusted context ID
AUTHID VARCHAR(128) Primary auth ID that can be reuse a connection
AUTHENTICATE CHAR(1) Authentication is required for auth ID in AUTHID column:

Y       Authentication token is required for auth ID. For local requests, token is the password. For remote requests, token can be password, a RACF passticket or a KERBEROS token

N       Authentication is not required

ROLE VARCHAR(128) Role for the auth ID in AUTHID. Role supersedes default role defined for the trusted context
CREATEDTS TIMESTAMP Time when auth ID is added to the trusted context
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
SECURITYLABEL VARCHAR(24) RACF security label for AUTHID. Security label supersedes the default security label defined for context
SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSCONTROLS

Contains one row for each row permission and column mask

Column name Data type Description
SCHEMA VARCHAR(128) Schema of row permission or column mask
NAME VARCHAR(128) Name of row permission or column mask
OWNER VARCHAR(128) Owner of row permission or column mask
OWNERTYPE CHAR(1) Type of the owner:

blank  authorization ID

L      Role

TBSCHEMA VARCHAR(128) Schema of table for which row permission or column mask is defined
TBNAME VARCHAR(128) Name of table for which row permission or column mask is defined
TBCORRELATION VARCHAR(128) If specified, correlation name of table for which row permission or column mask is defined. Else, empty
COLNAME VARCHAR(128) Column name for which column mask is defined
COLNO SMALLINT Column number for which column mask is defined
CONTROL_ID INTEGER Internal access control ID
CONTROL_TYPE CHAR(1) Type of access control object:

R  Row permission

M  Column mask

ENFORCED CHAR(1) Type of access enforced by row permission. Column mask always has a value of ‘A’.

A   All Access

IMPLICIT CHAR(1) Row permission was implicitly created:

N   Row permission was explicitly created or is a column mask

Y   Row permission was implicitly created

ENABLE CHAR(1) Row permission or column mask is enabled:

N   Not enabled

Y   Enabled

STATUS CHAR(1) Status of row permission or column mask definition:

Blank Definition is complete

R     Error occurred where an attempt was made to regenerate row permission or column mask

CREATEDTS TIMESTAMP Timestamp row permission or column mask was created
RELCREATED CHAR(1) Release of DB2 when row permission or column mask was created
ALTEREDTS TIMESTAMP Timestamp when row permission or column mask was last changed
REMARKS VARCHAR(762) Character string provided by COMMENT ON statement
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
ENVID INTEGER Internal identifier of the environment
ROWID ROWID Row identifier to support LOB columns in the table
RULETEXT CLOB(2M) Source text of search condition or expression portion of CREATE PERMISSION or CREATE MASK
DESCRIPTOR BLOB(2M) Internal description of row permission or column mask
SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value
REGENERATET TIMESTAMP(12) Time when object was regenerated

SYSIBM.SYSCOPY

Contains information needed for recovery

Column name Data type Description
DBNAME CHAR(8) Name of database
TSNAME CHAR(8) Name of the target tablespace or index space
DSNUM INTEGER Data set number with in tablespace
ICTYPE CHAR(1) Type of operation:

A        ALTER

B        REBUILD INDEX

C        CREATE

D        CHECK DATA LOG(NO) (no log records for the range are available for RECOVER utility)

E        RECOVER (to current point)

F        COPY FULL YES

I        COPY FULL NO

J        RECORD TABLESPACE or LOAD REPLACE compression dictionary write to log

L        SQL (type of operation)

M        MODIFY RECOVERY utility

P        RECOVER TO COPY or RECOVER TORBA (partial recovery point)

Q        QUIESCE

R        LOAD REPLACE LOG(YES)

S        LOAD REPLACE LOG(NO)

V        REPAIR VERSIONS utility

W        REORG LOG(NO)

X        REORG LOG(YES)

Y        LOAD LOG(NO)

Z        LOAD LOG(YES)

T        TERM UTILITY command (terminated utility)

START_RBA CHAR(10) 80-bit positive integer for RBA/LRSN of a point in recovery log
FILESEQNO INTEGER Tape file sequence number of the copy
DEVTYPE CHAR(8) Device type the copy is on
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
DSNAME CHAR(44) For ICTYPE=’P’ (RECOVER TOCOPY only), ‘I’, or ‘F’, contains data set name
SHRLEVEL CHAR(1) SHRLEVEL parameter on COPY for (ICTYPE F or I only):

C   Change

R   Reference

blank Does not describe an image copy or was from V 1.1

DSVOLSER VARCHAR(1784) Volume serial numbers of the data set
TIMESTAMP TIMESTAMP Date and time row was inserted
ICBACKUP CHAR(2) Type of image copy contained in data set:

Blank     LOCALSITE primary copy

FC        FlashCopy copy

LB        LOCALSITE backup copy

RP        RECOVERYSITE primary copy

RB        RECOVERYSITE backup copy

ICUNIT CHAR(1) Media that image copy data set is stored on:

D         DASD

T         Tape

Blank

STYPE CHAR(1) When ICTYPE=A

A     Partition was added to a table

B     MEMBER CLUSTER was changed

C     Column was added to a table and an index in different commit scopes, or column was dropped from a table

D     DSSIZE attribute of the table space was altered

E     Data set numbers of a base table and its associated clone table are exchanged

F     Page size attribute of table space or index was altered

G     Index was regenerated

I     Inline attribute of LOB column was altered by REORG

L     Logging attribute was altered to NOT LOGGED

M     MAXPARTITIONS attribute was altered

N     An index was altered to not padded

O     Logging attribute was altered to NOT LOGGED P     Index was altered to padded

R     Table was altered to rotate partitions

S     SEGSIZE attribute of the table space was altered

V     Column was altered for numeric data type change and the column is in an index

X     REORG dropped one or more empty partitions from the related table space

Z     Column in key of an index that was versioned prior to DB2 V8 was altered

When ICTYPE=C:

L     Logging attribute was altered to LOGGED

O     Logging attribute was altered to NOT LOGGED

When ICTYPE=E:

B     RECOVER utility with BACKOUT

blank RECOVER utility without BACKOUT

When ICTYPE=F, the values are:

C     DFSMS concurrent copy (‘I’ instance of table space)

J     DFSMS concurrent copy (‘J’ instance of tablespace)

   A FlashCopy copy is not consistent

Q     Sequential copy is consistent

S     LOAD REPLACE(NO)

T     FlashCopy is consistent

U     Sequential copy is not consistent

V     ALTER INDEX NOT PADDED

W     REORG LOG(NO)

X     REORG LOG(YES)

blank DB2 image copy

When ICTYPE=L

M     Mass DELETE, TRUNCATE TABLE, or DROP TABLE. LOWDSNUM contains table OBID of affected table

B     Recover to a point in time with BACKOUT YES option ran

C     Recover to a point in time without logonly with consistency

L     Recover to a point in time logonly without consistency

M     Recover to a point in time using logonly with consistency

blank Recover to a point in time without logonly without consistency

When ICTYPE=R or S, the values are:

A     Resetting REORG pending status

T     First materialized default value for a row change timestamp column

F     COPY FULL YES

I     COPY FULL NO

When ICTYPE=W or X:

A     Restting REORG pending status or REBALANCE

H     Hash organization attributes of the table were altered

T     First materializing the default value for a row change timestamp column

For other values ICTYPE, the value is blank

PIT_RBA CHAR(10) ICTYPE=P, contains LRSN for point in DB2 log
GROUP_NAME CHAR(8) Member name of DB2 subsystem that performed the operation
OTYPE CHAR(1) Type object at the recovery information is for:

I  Index space

T  Tablespace

LOWDSNUM INTEGER Partition number of lowest partition in range for SYSCOPY records created for REORG and LOAD REPLACE for resetting a REORG pending status
HIGHDSNUM INTEGER Partition number of highest partition in range
COPYPAGESF FLOAT(8) Number of pages written to copy data set
NPAGESF FLOAT(8) Number of pages in table space or index at time of COPY
CPAGESF FLOAT(8) Total number of changed pages
JOBNAME CHAR(8) Job name of the utility
AUTHID CHAR(8) Authorization ID of the utility
OLDEST_VERSION SMALLINT When ICTYPE= B, F, I, S, W, or X, version number of oldest format of data for an object. Else, value -1
LOGICAL_PART INTEGER Logical partition number
LOGGED CHAR(1) Logging attribute of table space at time SYSCOPY record is written:

Y    LOGGED

N    NOT LOGGED

Blank Row was inserted prior to VP

TTYPE CHAR(8) When ICTYPE=A and STYPE=B, indicates if previous value for the MEMBER CLUSTER attribute is being used:

Y    Previous member cluster attribute is used

N    Previous member cluster attribute is not being used

When ICTYPE=A and STYPE=C, indicates if a column is added or dropped from a table:

blank  A column was added to a table

D      A column was dropped from a table

CMP=N  index compression activated

CMP=Y  index compression deactivated

When ICTYPE=A and STYPE=I

D      REORG decremented the inline length of LOB column

I      REOG incremented the inline length of LOB column

n     Previous value of MAXPARTITIONS attribute for table space

S     Table space was converted from single-table segmented table space to a partition-by-growth universal table space

When ICTYPE=A and STYPE=P

ABSOLUTE – table space converted from absolute to relative page numbering.

When ICTYPE=A and STYPE=S

n    Previous value of SEGSIZE attribute for table space

P    Table space was converted from a partitioned table space to a range-partitioned universal table space

When ICTYPE=E

blank  Full recovery reset the object

N      Full recovery did not reset the object

When ICTYPE=F and STYPE=N, Q, T, or U,

A   LOAD RESUME LOG NO

B   REBUILD

C   COPY

D   LOAD RESUME LOG YES

E   LOAD SHRLEVEL CHANGE

L   LOAD

P   REPAIR

R   LOAD RPELACE LOG YES

S   LOAD REPLACE LOG NO

T   COPYTOCOPY

W   REORG TABLESPACE LOG NO

X   REORG TABLESPACE LOG YES

When ICTYPE=P, R, S, W, X

B     RBA or LRSN format changed to 6-byte format

BRF   Basic row format

BRF I Basic row format, and FORMAT INTERNAL used

E     RBA or LRSN format changed to extended 10-byte

F     REORG utility was run with

RRF   Reordered row format

RRF I Reordered row format and FORMAT INTERNAL used

S     REORG utility was run with FASTSWITCH NO option

When ICTYPE=M and STYPE=R

blank MODIFY RECOVERY deleted rows from SYSLGRRNX

N   MODIFY RECOVERY did not delete rows from SYSLGRNX

ICTYPE=T, TTYPE of B

ICTYPE=W or X and STYPE=H

ICTYPE=Y or Z

Blank  indicates that the FORMAT INTERNAL option was not specified during LOAD

I      indicates that the FORMAT INTERNAL option was specified during LOAD

ICTYPE=A-A, A-R, B, C, P, R, S, W, or X

B     Page format was converted to basic page format with 6 byte RBA or LRSN values

E     Page format was converted to extended page format with 10-byte RBA or LRSN values

When ICTYPE=A and STYPE=A or R:

B    Page format was converted to basic page format with 6 byte RBA or LRSN values

E    Page format was converted to extended page format with 10-byte RBA or LRSN values

INSTANCE SMALLINT When STYPE=E and ICTYPE=A, INSTANCE indicates data set instance number of a base object after an EXCHANGE statement completes
RELCREATED CHAR(1) Release used to create the object. blank if created prior to V9
MODECREATED CHAR(2) Latest mode to which DB2 subsystem had been migrated when the SYSCOPY record was written:

C    Conversion mode

E    Enabling-new-function mode

N    New-function mode

SYSIBM.SYSCTXTTRUSTATTRS

Contains one row for each list of attributes for a given trusted context

Column name Data type Description
CONTEXTID INTEGER Internal trusted context ID
NAME VARCHAR(128) Name of trust attribute
VALUE VARCHAR(254) Value of trust attribute
CREATEDTS TIMESTAMP Time when the attribute is created
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
SYS_START TIMESTAMP(12) Start time associated with the most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSDATABASE

Contains one row for each database, except for database DSNDB01

Column name Data type Description
NAME VARCHAR(24) Database name
CREATOR VARCHAR(128) Authorization ID of the owner of the database
STGROUP VARCHAR(128) Name of default storage group of database
BPOOL CHAR(8) Name of default buffer pool of tablespace
DBID SMALLINT Internal identifier of database
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
CREATEDBY VARCHAR(128) Prime authorization ID of user who created database
TYPE CHAR(1) Type of database:

blank   Not a work file database or a TEMP database

W        A work file database. Database is DSNDB07, or it was created with WORKFILE clause and used as a work file database by a data-sharing member

GROUP_MEMBER VARCHAR(24) Member name of DB2 subsystem using the work file database
CREATEDTS TIMESTAMP Time when CREATE statement is executed
ALTEREDTS TIMESTAMP Time when most recent ALTER DATABASE statement was applied
ENCODING_

SCHEME

CHAR(1) Default encoding scheme for database:

E     EBCDIC

A     ASCII

U     UNICODE

blank For DSNDB04, a work file database and a TEMP database

SBCS_CCSID INTEGER Default SBCS CCSID for the database
DBCS_CCSID INTEGER Default DBCS CCSID for the database
MIXED_CCSID INTEGER Name of the default buffer pool for indexes
INDEXBP CHAR(8) Database was implicitly created:

Y   Implicitly created

N   Explicitly created

CREATORTYPE CHAR(1) Type of creator:

Blank   Authorization ID

L       Role

RELCREATED CHAR(1) Release of DB2 that is used to create the object

SYSIBM.SYSDATATYPES

Contains one row for each user defined-type defined to the system

Column name Data type Description
SCHEMA VARCHAR(128) Schema of the data type
OWNER VARCHAR(128) Owner of the data type
NAME VARCHAR(128) Name of the data type
CREATEDBY VARCHA(128) Primary authid under which the data type was created
SOURCESSCHEMA VARCHAR(128) Schema of the source data type
SOURCETYPE VARCHAR(128) Name of the source type
METATYPE CHAR(1) Class of data type:

A    User-defined ordinary array type

L    User-defined associative array type

T    Distinct type

DATATYPEID INTEGER Internal identifier of the data type
SOURCETYPEID INTEGER Internal ID of the built-in data type upon which the distinct type or array elements are based
LENGTH INTEGER Maximum length of a data type based on DECIMAL data type. Can be distinct type or an array type
SCALE SMALLINT Scale of decimal data type
SUBTYPE CHAR(1) Sub type of data type, if source type is one of the character types. Data type can be distinct type or array type

B     FOR BIG DATA

S     FOR SBCS DATA

M     FOR MIXED DATA

Blank Source type is not a character type

CREATEDTS TIMESTAMP Time when the data type was created
ENCODING_SCHEME CHAR(1) Encoding scheme of the distinct type:

A    ASCII

E    EBCDIC

U    UNICODE

IBMREQD CHAR(1) Y indicates the row came from the (MRM) tape
REMARKS VARCHAR(762) A character string provided by ser with COMMENT ON
OWNERTYPE CHAR(1) Type of owner:

blank   Authorization ID

L       Role

RELCREATED CHAR(1) Release of DB2 that is used to create the object
INLINE_LENGTH INTEGER In line length attribute of type if based on LOB source type:

-1    Type does not specify INLINE LENGTH

greater than or equal to 0

Inline length attribute (in byte) of the type if it is based on LOB source type

ARRAYLENGTH BIGINT Maximum cardinality, if data type is an array type. For all other data types value is 0
ARRAYINDEXTYPEID INTEGER Data type of index, if the data type is an associative array type. For all other data types, value is 0
ARRAYINDEXTYPELEN BIGINT Max length of an array index, if data types is an associative
ARRAYINDEXSUBTYPE CHAR(1) Subtype of the array index:

B    FOR BIT DATA

S    FOR SBCS DATA

M    FOR MIXED DATA

blank Array index is not a character type

SYSIBM.SYSDAUTH

Records the privileges that are held by users over databases

Column name Data type Description
GRANTOR VARCHAR(128) Auth ID or role of user who granted privileges
GRANTEE VARCHAR(128) Application ID of user who holds privileges
NAME VARCHAR(24) Database name
GRANTEETYPE CHAR(1) Type of owner:

blank    Authorization ID

L        Role

AUTHHOWGOT CHAR(1) Authorisation level of user from whom privileges were received. Not necessarily highest authorization level of grantor.

Blank Not applicable

C    DBCTL

D    DBADM

E    SECADM

G    ACCESSCTRL

L    SYSCTRL

M    DBMAINT

S    SYSADM

CREATETABAUTH CHAR(1) GRANTEE can create tables within the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

CREATETSAUTH CHAR(1) GRANTEE can create tablespaces within the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

DBADMAUTH CHAR(1) GRANTEE can has DBADM authority over database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

DBCTRLAUTH CHAR(1) GRANTEE can has DBCTRL authority over database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

DBMAINTAUTH CHAR(1) GRANTEE can has DBMAINT authority over database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

DISPLAYDBAUTH CHAR(1) GRANTEE can issue the DISPLAY command for the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

DROPAUTH CHAR(1) GRANTEE can issue ALTER and DROP DATABASE statement:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privilege is held without the GRANT option

IMAGCOPYAUTH CHAR(1) GRANTEE can use the COPY, MERGECOPY, MODIFY and QUIESCE utilities on the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

LOADAUTH CHAR(1) GRANTEE can use LOAD utility to load tables in the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

REORGAUTH CHAR(1) GRANTEE can use the REORG utility to reorganize tablespaces an indexes on the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

RECOVERDBAUTH CHAR(1) GRANTEE can use the RECOVER and REPORT utilities on tablespaces in the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

REPAIRAUTH CHAR(1) GRANTEE can use the DIAGNOSE and REPAIR utilities on tablespaces and indexes in the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

STARTDBAUTH CHAR(1) GRANTEE can use START command against the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

STATSAUTH CHAR(1) GRANTEE can use CHECK and RUNSTATS utilities against the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

STOPAUTH CHAR(1) GRANTEE can issue the STOP command against the database:

blank  Privilege is not held

G      Privilege held with the GRANT option

Y      Privileges held without the GRANT option

IBMREQD CHAR(1) Y indicates row came from (MRM) tape
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
GRANTORTYPE CHAR(1) Indicates the type of owner:

Blank   Authorization ID

L       Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Delete time deleted from system period temporal table
TRANS_START TIMESTAMP(12) Unique timestamp per transaction or null value

SYSIBM.SYSDBRM

Contains one row for each DBRM of each application plan

Column name Data type Description
NAME VARCHAR(24) Name of the DBRM
TIMESTAMP CHAR(8) Consistency token
PDSNAME CHAR(132) Name of the partitioned data set of which the DBRM is a member
PLNAME VARCHAR(24) Name of the application plan of which this DBRM is a part
PLCREATOR VARCHAR(128) Authorization ID of the owner of the application plan
QUOTE CHAR(1) SQL string delimiter for the SQL statements in the DBRM:

N Apostrophe

Y Quotation mark

COMMA CHAR(1) Decimal point representation for SQL statements in the DBRM:

N Period

Y Comma

HOSTLANG CHAR(1) The host language used:

B  Assembler language

C  OS/VS COBOL

D  C

F  Fortran

P  PL/I

2  VS COBOL II or IBM COBOL R1

3  IBM COBOL (Release 2 or subsequent releases)

4  C++

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
CHARSET CHAR(1) System CCSID for SCBS data was 290 (Katakuna) when program was precompiled:

A   No

 Yes

MIXED CHAR(1) Mixed data was in effect when program was precompiled

N   No

Y   Yes

DEC31 CHAR(1) DEC31 was in effect when program was precompiled

Blank  No

Y      Yes

VERSION VARCHAR(122) Version identifier for the DBRM
PRECOMPTS TIMESTAMP Time when DBRM was precompiled
PLCREATOR

TYPE

CHAR(1) Indicates the type of creator:

Blank  Authorization ID

L      Role

RELCREATED CHAR(1) The release of DB2 that is used to create the object

SYSIBM.SYSDEPENDENCIES

Records the dependencies between objects

Column name Data type Description
BNAME VARCHAR(128) Name of the object on which another object is dependent
BSCHEMA VARCHAR(128) Schema/qualifier of object on which another object is dependent
BCOLNAME VARCHAR(128) Column name of object on which another object is dependent
BCOLNO SMALLINT Column number of object on which another object is dependent
BTYPE CHAR(1) The type of object that is identified by BNAME, BSCHEMA, and BCOLNAME:

C Column

E INSTEAD OF trigger

F Function

G Global temporary table

I Index

M Materialized query table

O Procedure

P Partitioned table space

Q Sequence

R Table space

S Synonym

T Table

U Distinct type

V View

W SYSTEM_TIME period

Z BUSINESS_TIME period

0 zero

BOWNER VARCHAR(128) Auth ID of owner of object on which another object is dependent
BOWNERTYPE CHAR(1) Type of creator of object on which another object is dependent:

L     Role

Blank Authorization ID that is not a role

DNAME VARCHAR(128) Name of the object that has dependencies on another object
DSCHEMA VARCHAR(128) Schema or qualifier of object that has dependencies on another
DVERSION VARCHAR(122) Version identifier of object identified by DSCHEMA and DNAME if the object has a version
DCOLNAME VARCHAR(128) Column name of object that has dependencies on another object
DCOLNO SMALLINT Column number of object that has dependencies on another
DTYPE CHAR(1) Type of object identified by DNAME, DSCHEMA, DCOLNAME:

B Trigger package for basic trigger

C Generated column

F Function

I Index

M Materialized query table

O Procedure

V View

X Row permission

Y Column mask

1 Trigger package for advanced trigger

DOWNER VARCHAR(128) Auth ID of owner of object with dependencies on another object
DOWNERTYPE CHAR(1) Type of creator of object with dependencies on another object:

L      Role

Blank  Authorization ID

IBMREQD CHAR(1) Y indicates row came from basis (MRM) tape
BAUTH SMALLINT Privilege held on object on which another object is dependent

SYSIBM.SYSDUMMY1

Contains one row in an EBCDIC table space

Column name Data type Description
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSDUMMYA

Contains one row in ASCII table space

Column name Data type Description
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSDUMMYE

Contains one row in EBCDIC table space

Column name Data type Description
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSDUMMYU

Contains one row in a UNICODE table space

Column name Data type Description
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSDYNQRY

Contains information for stabilization of access path for dynamic SQL statement

Column name Data type Description
SDQ_STMT_ID BIGINT Identifier of stabilized dynamic query
STBLGRP VARCHAR(128) Name of stabilization group
COPYID SMALLINT Copy type of stabilized runtime structures for query

0 Current copy

4 Invalid copy

CURSQLID VARCHAR(128) Current SQLID for stabilized dynamic query
CURSCHEMA VARCHAR(128) Current schema for stabilized dynamic query
CURAPPLCOMPAT VARCHAR(10) Current application compatibility for stabilized dynamic query
QUERY_HASH CHAR(16) Hash key generated by SQL statement text for stabilized dynamic query
QUERY_HASH_

VERSION

INTEGER Version of the query hash
VALID CHAR(1) Whether stabilized dynamic query is valid

A – ALTER changed table or base table of view

H – ALTER of object created prior to DB2 V5

N – Stabilized access path is not valid

Y – Stabilized access path for dynamic query is valid

LASTUSED DATE Date query that uses stabilized runtime structures was last run
RELBOUND CHAR(1) DB2 release when query was stabilized
GROUP_MEMBER VARCHAR(24) Date sharing member name that updates row
STBLTIME TIMESTAMP Timestamp when statement was stabilized
ROWID ROWID Internal use
STMTTEXT CLOB(2M) Text of SQL statement and any attribute string
FUNCTION_LVL VARCHAR(10) Function level of query when row was inserted

SYSIBM.SYSDYNQRYDEP

Contains information for dependencies for dynamic query packages

Column name Data type Description
SDQ_STMT_ID BIGINT Identifier of stabilized dynamic query
COPYID SMALLINT Copy type of stabilized runtime structures for query

0    Current copy

1    Previous copy

2    Original copy

BQUALIFIER VARCHAR(128) Valued depends on type of object

BTYPE=R – value is database

BTYPE=B or C – value is table

BTYPE=F, O or Q – value is schema name

Blank if BNAME is role

Else value is schema of BNAME

BNAME VARCHAR(128) Name of object query depends on
BTYPE CHAR(1) Type of object

B BUSINESS_TIME

C SYSTEM_TIME

E INSTEAD OF trigger

F UDF or cast function

G Global temporary table

I Index

M materialized query table

O Stored procedure

P Partitioned tablespace with LARGE or DSSIZE

Q Sequence object

R Table space

S Synonym

T Table

U Distinct type

V View

W SYSTEM_TIME period

Z BUSINESS_TIME period

0 Alias

CLASS CHAR(1) A Authorization dependency

D DDL dependency

BAUTH SMALLINT Privilege held on object if CLASS = A

50 SELECTAUTH

51 INSERTAUTH

52 DELETEAUTH

53 UPDATEAUTH

64 EXECUTE AUTH

263 USAGEAUTH

291 READAUTH

292 WRITEAUTH

0 not used – CLASS = D

AUTHID_TYPE CHAR(1) Type of authorization

Blank Value of CLASS = D or CLASS = A (authid)

L     AUTHID contains name of role

AUTHID VARCHAR(128) Owner of privilege on object query is dependent
DBNAME VARCHAR(128) Database on which user or role holds DBADM authority
BADMINAUTH VARCHAR(128) Authority that allowed access on object

B SDBAMAUTH

D DBADMAUTH

G ACCESSCTRLAUTH

K SQL ADMCUTH

L SYSCTRLAUTH

S SYSADMAUTH

T DATAACCESSAUTH

Blank authority not held

PUBLICAUTH CHAR(1) Y privilege held by public

Blank privilege not held by public or CLASS = D

ALLOBJAUTH CHAR(1) Y privilege held on all objects within schema

Blank privilege not held on all objects or CLASS = D

QUERYHASH BINARY(16) Hash key of statement text if CLASS = D

SYSIBM.SYSDYNQRY_EXPL

Contains internal information for stabilized dynamic SQL statement

Column name Data type Description
DATA2 BLOB(2G) Internal use only

SYSIBM.SYSDYNQRY_OPL

Contains internal information for stabilized dynamic SQL statement

Column name Data type Description
DATA4 BLOB(2G) Internal use only

SYSIBM.SYSDYNQRY_SHTEL

Contains internal information for stabilized dynamic SQL statement

Column name Data type Description
DATA3 BLOB(2G) Internal use only

SYSIBM.SYSDYNQRY_SPAL

Contains internal information for stabilized dynamic SQL statement

Column name Data type Description
DATA1 BLOB(2G) Internal use only

SYSIBM.SYSDYNQRY.TXTL

Contains internal information for stabilized dynamic SQL statement

Column name Data type Description
STMTTEXT CLOB(2M) Text of SQL statement

SYSIBM.SYSENVIRONMENT

Records the environment variables when an object is created

Column name Data type Description
ENVID INTEGER Internal identifier of the environment
CURRENT_SCHEMA VARCHAR(128) The current schema
RELCREATED CHAR(1) The release when the environment information is created
PATHSCHEMAS VARCHAR(2048) The schema path
APPLICATION_

ENCODING_CCSID

INTEGER The CCSID of the application environment
ORIGINAL_

ENCODING_CCSID

INTEGER The original CCSID of the statement text string
DECIMAL_POINT CHAR(1) The decimal point indicator:

C  Comma

P  Period

MIN_DIVIDE_

SCALE

CHAR(1) The minimum divide scale:

N  The usual rules apply for decimal division in SQL

Y  Retain at lease three digits to the right of the decimal point after any decimal division

STRING_

DELIMITER

CHAR(1) The string delimiter that is used in COBOL string constraints:

A  Apostrophe (‘)

Q  Quote (“)

SQL_STRING_

DELIMITER

CHAR(1) The SQL string that is used in string constraints:

A  Apostrophe (‘)

Q  Quote (“)

MIXED_DATA CHAR(1) Uses mixed DBCS data:

N  No mixed data

Y  Mixed data

DECIMAL_

ARITHMETIC

CHAR(1) Rules used for CURRENT PRECISION and when both operands in decimal operation have precision of 15 or less:

1    DEC15 specifies that the rules do not allow a precision greater than 15 digits

2    DEC31 specifies that the rules allow a precision of up to 31 digits

DATE_FORMAT CHAR(1) The date format:

I   ISO-yyyy-mm-dd

J   JIS-yyyy-mm-dd

U   USA-mm/dd/yyyy

E   EUR-dd.mm.yyyy

L   Locally defined by an installation exit routine

TIME_FORMAT CHAR(1) The time format:

I   ISO-hh.mm.ss

J   JIS-hh.mm.ss

U   USA-hh:mm AM or hh:mm PM

E   EUR-hh.mm.ss

L   Locally defined by an installation exit routine

FLOAT_FORMAT CHAR(1) The floating point format:

I   IEEE floating point format

S   System/390 floating point format

HOST_LANGUAGE CHAR(8) The host language: ASM,C,CPP,IBMCOB,PLI,FORTRAN
CHARSET CHAR(1) The character set:

A   Alphanumeric

FOLD CHAR(1) Applicable when HOST_LANGUAGE is C or CPP

N   Lower case letters in SBCS ordinary identifiers are not folded to uppercase

Y   Lower case letters in SBCS ordinary identifiers are folded to uppercase

Blank Not applicable

IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
ROUNDING CHAR(1) Rounding mode that is used when arithmetic and casting operations are performed on DECFLOAT data:

C   ROUND_CEILING

D   ROUND_DOWN

F   ROUND_FLOOR

G   ROUND_HALF_DOWN

E   ROUND_HALF_EVEN

H   ROUND_HALF_UP

U   ROUND_UP

CREATEDTS TIMESTAMP Time the row was created
APPLCOMPAT VARCHAR(10) Application compatibility associated with the environment

SYSIBM.SYSFIELDS

Contains one row for every column that has a field procedure

Column name Data type Description
TBCREATOR VARCHAR(128) Schema or qualifier the table that contains the column
TBNAME VARCHAR(128) Name of the table that contains the column
COLNO SMALLINT Numeric place of this column in the table
NAME VARCHAR(128) Name of a column
FLDTYPE VARCHAR(24) Data type of the encoded values in the field
LENGTH SMALLINT Length attribute field; or, for a decimal field, its prescision
SCALE SMALLINT Scale if FLDTYPE is DECIMAL; otherwise the value is 0
FLDPROC VARCHAR(24) For field procedure, name of the procedure
WORKAREA SMALLINT For field procedure, the size, in bytes, of the work area
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape
EXITPARML SMALLINT Length of the field procedure parameter value block
PARMLIST VARCHAR(735) Parameter list following FIELDPROC
EXITPARM VARCHAR(1530) Parameter value block of field procedure

SYSIBM.SYSFOREIGNKEYS

Contains one row for every column of every foreign key

Column name Data type Description
CREATOR VARCHAR(128) Authorization ID of the owner of the table that contains the column
TBNAME VARCHAR(128) Name of the table that contains the column
RELNAME VARCHAR(128) Constraint name for constraint which column is part of foreign key
COLNAME VARCHAR(128) Name of the column
COLNO SMALLINT Numeric place of the column in its table
COLSEQ SMALLINT Numeric place of the column in the foreign key
IBMREQD CHAR(1) Y indicates row came from basic (MRM) tape

SYSIBM.SYSINDEXCONTOL

Contains one row time windows to control the use of memory allocated for an index

Column name Data type Description
SSID CHAR(4) DBb2 subsystem. If data showing value is null and applies to all
PARTITION SMALLINT Partition number. Null applies to all
IXNAME VARCHAR(128) Name of index
IXCREATOR VARCHAR(128) Schema of index
TYPE CHAR(1) Purpose for which memory is used

F Fast Index Traversal(FTB)

ACTION CHAR(1) Action been performed

F Force FTB creation

D Disable FTB creation

A Automatic FTB creation

MONTH_WEEK CHAR(1) Meaning of value of DAY column

M Day of month

W Day of week

MONTH SMALLINT Months during which time window applies. Values 1-12
DAY SMALLINT Day of month or day of week for which time window applies
FROM_TIME TIME Time of day at which time window begins
TO_TIME TIME Time of day at which time window ends

SYSIBM.SYSINDEXCLEANUP

Specifies the time windows to control index cleanup processing

Column name Data type Description
DBNAME VARCHAR(24) The name of the database that contains the index space
INDEXSPACE VARCHAR(24) The name of the index space
ENABLE_DISABLE CHAR(1) Enables or disables cleanup for the specified index space

‘E’ Enabled

‘D’ Disabled

MONTH_WEEK CHAR(1) Indicates meaning of the value of the DAY column

‘M’ Day of the month

‘W’ Day of the week

MONTH SMALLINT Month in which time window applies. 1-12 = January-December..

G  Yes, and it is an index used to enforce the uniqueness of values in a column defined as ROWID GENERATED BY DEFAULT

X  Yes, and it is an index used to enforce the uniqueness of values in a column that contains XML data

DAY SMALLINT Day of month or day of the week for which time window applies, as specified by value of MONTH_WEEK
START_TIME TIME Local time at beginning of the time window specified by row
END_TIME TIME Local time at end of the time window specified by the row

SYSIBM.SYSINDEXES

Contains one row for every index

Column name Data type Description
NAME VARCHAR(128) Name of the index
CREATOR VARCHAR(128) Schema of the index
TBNAME VARCHAR(128) Name of the table on which the index is identified
TBCREATOR VARCHAR(128) Schema of the table
UNIQUERULE CHAR(1) Whether the index is unique:

C  Yes, and it is used to enforce uniquenessof a UNIQUE constraint or hash key columns

D  No (duplicates are allowed)

U  Yes

P  Yes, and it is a primary index

C  Yes, it is an index used to enforce UNIQUE constraint

N  Yes, and it is defined with UNIQUE WHERE

R  Yes, it is an index used to enforce uniqueness of a non-primary parent key

G  Yes, and it is as an index used to enforce the uniqueness of values in a column defined as ROWID GENERATED BY DEFAULT

X  Yes, and it is an index used to enforce the uniqueness of values in a column that contains XML data

COLCOUNT SMALLINT The number of columns in the key
CLUSTERING CHAR(1) Whether CLUSTER was specified when index was created:

N No

Y Yes

CLUSTERED CHAR(1) Whethere the table is actually clustered by the index:

N     A significant number of rows are not in clustering order, or statistics have not been gathered

   Most of the rows are in clustering order

blank Not applicable

An updateable column that can be changed by RUNSTATS.

For sparse index, is based on actual contents of index

DBID SMALLINT Internal identifier of the database
OBID SMALLINT Internal identifier of the index fan set descriptor
ISOBID SMALLINT Internal identifier of the index page set descriptor
DBNAME VARCHAR(24) Name of the database that contains the index
INDEXSPACE VARCHAR(24) Name of the index space
NLEAF INTEGER Number of active leaf pages in the index
NLEVELS SMALLINT Number of levels in the index tree. An updatable column
BPOOL CHAR(8) Name of the buffer pool used for the index
PGSIZE SMALLINT Size, in KB, of the leaf pages in the index. 4, 8, 16 or 32
ERASERULE CHAR(1) Data sets are erased when dropped. Meaningless if the index is partitioned: N No, Y Yes
CLOSERULE CHAR(1) Data sets are candidates for closure when limit on number of open data sets is reached: N No, Y Yes
SPACE INTEGER Number of kilobytes of DASD storage allocated to the index, as determined by the last execution of the STOSPACE utility
IBMREQD CHAR(1) Y indicates row came MRM tape
CLUSTERRATIO SMALLINT Percentage of rows in clustering order
CREATEDBY VARCHAR(128) Primary authorization ID of the user who created the index
STATSTIME TIMESTAMP Date and time when last invocation of RUNSTATS
INDEXTYPE CHAR(1) 2      Type 2 index or hash overflow index on non-partitioned tables

blank  Type 1 index

D      Data partition secondary index

P      Both partitioned and is a partitioning index

FIRSTKEYCARDF FLOAT Number of distinct values  of first key column. Is an estimate if updated while collecting statistics on a single partition. -1 if statistics have not been gathered. An updateable column. For sparse index, is based on actual contents of index
FULLKEYCARDF FLOAT Number of distinct values of key
CREATEDTS TIMESTAMP Time when CREATE was executed for index
ALTEREDTD TIMESTAMP Time when most recent ALTER INDEX was executed
PIECESIZE INTEGER Maximum size of a data set in kilobytes for NPIs
COPY CHAR(1) COPY YES was specified for index. Index can be copied and SYSLGRNX recording is enabled for the index

N No

Y Yes

COPYLRSN CHAR(10) Value can be either an RBA or LRSN
CLUSTERRATIOF FLOAT Percentage of rows that are in clustering order (x 100)
SPACEF FLOAT(8) Kilobytes of DASD storage
REMARKS VARCHAR(762) A character field string provided by user with COMMENT ON
PADDED CHAR(1) Whether keys within index will be padded for varying-length column data

Y     Index is padded

N     Index is not padded

Blank Index does not contain varying length or graphic data

VERSION SMALLINT Version of data row format for this index
OLDEST_VERSION SMALLINT Version number describing the oldest format of the data in the index space and any image copies of the index
CURRENT_

VERSION

SMALLINT Version number describing the newest format of data in the index space
RELCREATED CHAR(1) Release of DB2 use to the object. Blank if before V8
AVGKEYLEN INTEGER Average key length within the index
KEYTARGET_

COUNT

SMALLINT Number of key-targets for an extended index
UNIQUE_COUNT SMALLINT Number of columns or key targets that make up the unique constraint if an index, when other non-constraint enforcing columns or key-targets exist. Otherwise value is 0
IX_EXTENSION_

TYPE

CHAR(1) Identifies the type of extended index:

blank Simple index

S     Index on a scalar expression

N     Node ID index

T     Spatial index

V     XML index

COMPRESS CHAR(1) Indicates for the index compression is active:

N  Index compression is not active

Y  Index compression is active

OWNER VARCHAR(128) Authorization ID of the owner of the index
OWNERTYPE CHAR(1) Indicates the type of owner:

blank Authorization ID

   Role

DATAREPEAT

FACTOROF

FLOAT Anticipated number of data pages that will be touched following an index key order
ENVID INTEGER Internal environment identifier
HASH CHAR(1) Hash overflow index for a hash table

N  No. (default)

Y  Yes

SPARSE CHAR(1) Index is sparse or not

N  No. (default) Every data row has an index entry

Y  Yes. Index might not have an entry for each data row in the table

X  Excluded, Index will not have an index entry when every data row for a key column contains the NULL value

ROWID ROWID ROWID column, created for the lob columns in this table
DSSIZE INTEGER Maximum size in KB of partitioned index data set. 0 for NPI
PAGENUM CHAR(1) Format of page numbers for index

A Absolute

R Relative

PARTKEYCOLUMN SMALLINT Not used
STATUS CHAR(1) Not used
INDEXSTATUS SMALLINT Not used
PARTITIONS VARCHAR(765) Not used
PQTY INTEGER For user managed data sets. Value is primary space allocation
STORTYPE CHAR(1) Type of storage allocation

E Explicit(storage group not used)

I Implicit(storage group used)

STORNAME VARCHAR(128) Name of storage group used for space allocation
VCATNAME VARCHAR(24) Name of ICF catalogue used for space allocation
FREEPAGE SMALLINT Number of pages loaded before page is left free
PCTFREE SMALLINT Percentage of each page left as free space
GBPCACHE CHAR(1) Group bufferpool cache option

blank Only changed pages

A     Changed and unchanged pages

N     No data is cached

SECQTY1 INTEGER Secondary space allocation for user managed data sets
ENFORCED_CONS CHAR(1) Whether index enforces a non-unique constraint

Blank Does not enforce a non-unique constraint

F     Enforces a foreign key for a temple referential constraint

IMPLICIT CHAR(1) Whether index was implicitly created

Blank n/a

N     Explicitly created

Y     Implicitly created

REGENERATETS TIMESTAMP(12) Time when the object was regenerated

SYSIBM.SYSINDEXES_HIST

Contains rows from SYSINDEXES

Column name Data type Description
NAME VARCHAR(128) Name of the index
CREATOR VARCHAR(128) Schema of the index
TBNAME VARCHAR(128) Name of the table on which the index is defined
TBCREATOR VARCHAR(128) Schema of the table
CLUSTERING CHAR(1) CLUSTER was specified when the index was created

N No

Y Yes

NLEAF INTEGER Number of active leaf pages in the index
NLEVELS SMALLINT Number of levels in the index tree
STATSTIME TIMESTAMP Date and time when the last invocation of RUNSTATS
FIRSTKEYCARDF FLAOT(8) Number of distinct values in the first key column
FULLKEYCARDF FLOAT(8) Number of distinct values of the key
CLUSTERRATIOF FLOAT(8) Percentage of rows that are in clustering order
SPACEF FLOAT(8) Number of kilobytes of DASD storage allocated
IBMREQD CHAR(1) Y indicates row came MRM tape
AVGKEYLEN INTEGER Average key length within the index
DATAREPEAT

FACTORF

FLOAT Anticipated name of data pages touched following an index key order

SYSIBM.SYSINDEXES_RTSECT

An auxiliary table for the RTSECTION column of the SYSIBM.SYSINDEXES table

Column name Data type Description
  BLOB(1G) Internal use only

SYSIBM.SYSINDEXES_TREE

An auxiliary table for the PARSETREE column of the SYSIBM.SYSINDEXES table

Column name Data type Description
  BLOB(1G) Internal use only

SYSIBM.SYSINDEXPART

One row for each non-partitioning index and one for each partition of a partitioned index

Column name Data type Description
PARTITION SMALLINT Partition number; 0 if index is not partitioned
IXNAME VARCHAR(128) Name of partition
IXCREATOR VARCHAR(128) Schema of partition
PQTY INTEGER For user-managed data sets, the value is the primary space allocation units of 4KB storage blocks or -1
SQTY SMALLINT For user-managed data sets, the value is the primary space allocation units of 4KB storage blocks or -1
STORTYPE CHAR(1) Type of storage allocation:

E Explicit, and STORNAME, names an ICF catalog

I Implicit, and STORNAME, names in storage group

STORNAME VARCHAR(128) Name of storage group or integrated catalog facility  catalog used for space allocation
VCATNAME VARCHAR(24) Name of ICF catalog used for space allocation
LEAFDIST INTEGER Average number of leaf pages between successive active leaf pages of the index (x 100)
IBMREQD CHAR(1) Y indicates row came from MRM tape
LIMITKEY VARCHAR(512) High value of limit key of the partition in an internal format
FREEPAGE SMALLINT Number of pages loaded before a page is left free
PCTFREE SMALLINT Percentage of each leaf or non-leaf page left as free
SPACE INTEGER KBs storage allocated to index space partition
STATSTIME TIMESTAMP Date and time of the last invocation of RUNSTATS
GBPCACHE CHAR(1) Group buffer pool cache option specified for index or index partition.

blank only changed pages are cached

A     Changed and unchanged pages are cached

N     No data is cached

FAROFFPOSF FLOAT Number of referred to rows from optimal position because of an insert into a full page
NEAROFFPOST FLOAT Number of referred to rows near, but not at optimal position, due to insert into full page
CARDF FLOAT Number of RIDs in index that refer to data rows or LOBs
SECQTYI INTEGER Secondary space allocation in units of 4KB storage
IPREFIX CHAR(1) First character of instance qualifier for index’s data set name. ‘I’ or ‘J’ are the only valid values. Default is ‘I’.
ALTEREDTS TIMESTAMP Time when the most recent ALTER INDEX statement
SPACEF FLOAT(8) Kilobytes of DASD storage
DSNUM INTEGER Number of data sets
EXTENTS INTEGER Number of data set extents
PSEUDO_DEL_

ENTRIES

INTEGER Number of pseudo deleted entries
LEAFNEAR INTEGER Number of leaf pages physically near previous leaf page for successive active leaf pages
LEAFFAR INTEGER Number of leaf pages located physically far away from previous leaf pages for successive (active leaf) pages accessed in an index sca
OLDEST_VERSION SMALLINT Version numbers describing oldest form of data in the index part and any image copies of the index part
CREATEDTS TIMESTAMP Time when the partition was created
AVGKEYLEN INTEGER Average length of keys in the index
RBA_FORMAT CHAR(1) Indicates the format of the RBA/LRSN

B  Basic, 6-byte RBA/LRSN format

E  Extended, 10-byte RBA/LRSN format

U  Undefined

blank for migrated objects

DSSIZE INTEGER Maximum size in KB of partitioned index data set
PAGENUM CHAR(1) Format of page numbers for index

A Absolute

R Relative

LIMITKEY_

EXTERNAL

VARCHAR(765) Not used

SYSIBM.SYSINDEXPART_HIST

Contains rows from SYSINDEXPART

Column name Data type Description
PARTITION SMALLINT Partition number, zero if index is not partitioned
IXNAME VARCHAR(128) Name of the index
IXCREATOR VARCHAR(128) Schema of the index
PQTY INTEGER For user-managed data sets, value is primary space allocation in units of 4KB storage blocks or -1
SECQTYI INTEGER For user-managed data sets, value is secondary space allocation in units of 4KB storage blocks or -1
LEAFDIST INTEGER Average number of leaf pages between successive active leaf pages of the index (x100)
SPACEDF INTEGER KBs of DASD storage allocated to index space partition
STATSTIME TIMESTAMP Date and time of last invocation of RUNSTATS
FAROFFPOSF FLOAT(8) Number for referred to rows far from optimal position because of an insert into a full page
NEAROFFPOSF FLOAT(8) Number for referred to rows near but not at optimal position, because of an insert into a full page
CARDF FLOAT(8) Number of RIDs in index referring to  data rows or LOBs
EXTENTS INTEGER Number of data set extents
PSEUDO_DEL_

ENTRIES

INTEGER Number of pseudo deleted entries
DSNUM INTEGER Data set number within the table space
IBMREQD CHAR(1) Y indicates row came from MRM tape
LEAFNEAR INTEGER Number of leaf pages physically near previous leaf page for successive active leaf pages
LEAFFAR INTEGER Number of leaf pages located physically far away from previous leaf pages for successive (active leaf) pages accessed in an index scan
AVGKEYLEN INTEGER Average length of keys within the index

SYSIBM.SYSINDEXSPACESTATS

Contains real-time statistics for index basis

Column name Data type Description
UPDATESTATTIME TIMESTAMP Timestamp when row was inserted or last updated
NLEVELS SMALLINT Number of levels in the index tree
NPAGES INTEGER Number of pages in the index tree that contain only pseudo-deleted index entries. Updatable column
NLEAF INTEGER Number of leaf pages in the index. Updateable column
NACTIVE INTEGER Number of active pages in the index base or partition
SPACE INTEGER Amount of space, in KB, allocated to the index space or partition
EXTENTS SMALLINT Number of extents in index space or partition
LOADRLASTTIME TIMESTAMP Timestamp of last LOAD REPLACE on index space or partition
REBUILDLASTTIME TIMESTAMP Timestamp of last REBUILD INDEX on index space or partition
REORGLASTTIME TIMESTAMP Timestamp when REORG INDEX utility was last run on the index piece or partition, or if REORG INDEX utility has not been run, the time of creation
REORGINSERTS INTEGER Number of index entries inserted into the index space or partition since the last time REORG, REBUILD INDEX, or LOAD REPLACE utilities were run, or since creation
REORGDELETES INTEGER Number of index entries deleted from the index space or partition since the last time REORG, REBUILD INDEX, or LOAD REPLACE utilities were run, or since creation
REORGAPPENDINSERT INTEGER Number of index entries that have a key value that is greater than the maximum key value in the index or partition inserted into index space or partition since the last REORG, REBUILD INDEX, or LOAD REPLACE, or since the object was created
REORG

PSEUDODELETES

INTEGER Number of index entries pseudo-deleted since last REORG, REBUILD INDEX, or LOAD REPLACE on the index space or partition, or since the object was created
REORGMASSDELETE INTEGER Number of mass deletes from a segmented or LOB table space, or number of dropped tables from a segmented table space since last time REORG or LOAD REPLACE utilities were run, or since object was created
REORGLEAFNEAR INTEGER Net number of leaf pages located physically near previous pages for successive active leaf pages that occurred since last REORG, REBUILD INDEX, or LOAD REPLACE, or since object was created
REORGLEAFFAR INTEGER Net number of leaf pages located physically far away from previous leaf pages for successive active leaf pages that occurred since the last REORG, REBUILD INDEX, or LOAD REPLACE, or object was created
REORGNUMLEVELS INTEGER Number of levels in the index tree that were added or removed since last REORG, REBUILD INDEX or LOAD REPLACE, or object was created
STATSLASTTIME TIMESTAMP Timestamp of last RUNSTATS on index or partition
STATSINSERTS INTEGER Number of records or LOBs inserted into the table space or partition since last time RUNSTATS UTILITY was run, or since object was created
STATSDELETES INTEGER Name of index entries deleted since last RUNSTATS on the index space or partition, or since object was created
STATSMASSDELETE INTEGER Number of times index or index space partition was mass deleted since object was created
COPYLASTTINE TIMESTAMP Timestamp of last full copy on index or partition
COPYUPDATEPAGES INTEGER Number of distinct types that have been updated since the last time that the COPY utility was run, or since the object was created
COPYCHANGES INTEGER Number of insert, update and delete operations since last time COPY utility was run, or since object was created
COPYUPDATELRSN CHAR(10) LRSN or RBA of first update after last COPY
COPYUPDATETIME TIMESTAMP Timestamp of first update after last COPY
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DBID SMALLINT Internal identifier of database
ISOBID SMALLINT Internal identifier of index space page set descriptor
PSID SMALLINT Internal identifier of table space page set descriptor for table space associated with index
PARTITION SMALLINT Data set number within index
INSTANCE SMALLINT Indicates if the object is associated with data set 1 or 2
TOTALENTRIES BIGINT Number of entries, including duplicate entries, in the index or partition
DBNAME VARCHAR(24) Name of database
NAME VARCHAR(128) Name of index
CREATOR VARCHAR(128) Schema of index
INDEXSPACE VARCHAR(24) Name of index space
LASTUSED DATE Date when index is used for SELECT, FETCH, searched UPDATE/DELETE, or is used to enforce RI constraints
REORGINDEXACCESS BIGINT Number of times index was used for SELECT, FETCH, searched UPDATE/DELETE, or used to enforce RI constraints, or since the object was created
DRIVETYPE CHAR(3) Drive type on which index or partition data set is defined

HDD  Hard Disk Drive

SDD  Solid State Drive

BIGINT Reserved for future IBM use
GETPAGES BIGINT Number of getpages since last reorg or creation
SYS_START TIMESTAMP(12) Start time of the most recent transaction
SYS_END TIMESTAMP(12) Time when row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSINDEXSTATS

Contains one of each partition of a partitioning index or a data partitioned secondary index

Column name Data type Description
FIRSTKEYCARD INTEGER For index partition, number of distinct values of first key column. For a sparse index, statistic is based on actual contents of index
FULLKEYCARD INTEGER For index partition, number of distinct values of a key. For a sparse index, statistic is based on actual contents of index
NLEAF INTEGER Number of active leaf pages in index partition
NLEVELS SMALLINT Number of levels in partition index tree
CLUSTERRATIO SMALLINT For index partition, percentage of rows in clustering order
STATSTIME TIMESTAMP Date/time of last invocation of RUNSTATS
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
PARTITION SMALLINT Partition number of index
OWNER VARCHAR(128) Schema of the owner of index
NAME VARCHAR(128) Name of index
KEYCOUNT INTEGER Total number of all RIDs in index partition
FIRSTKEYCARDF FLOAT For the index partition, number of distinct values of the first key column
FULLKEYCARDF FLOAT For index partition, number of distinct values of the key
KEYCOUNTF FLOAT Total number of RIDs in the index partition
CLUSTERRATIOF FLOAT For index partition, value, when multiplied by 100, is percentage of rows in clustering order
DATAREPEAT

FACTORF

FLOAT Anticipated number of data pages touched following an index key order

SYSIBM.SYSINDEXSTATS_HIST

Contains rows from SYSINDEXSTATS

Column name Data type Description
NLEAF INTEGER Number of active leaf pages in index partition
NLEVELS SMALLINT Number of levels in partition index tree
STATSTIME TIMESTAMP If RUNSTATS updated statistics, date and time when last invocation of RUNSTATS updated statistics
PARTITION SMALLINT Partition number of index
OWNER VARCHAR(128) Schema of index
NAME VARCHAR(128) Name of index
FIRSTKEYCARDF FLOAT For index partition, number of distinct values of first key column
FULLKEYCARDF FLOAT For index partition, number of distinct values of key
KEYCOUNTF FLOAT Total number of rows in partition
CLUSTERRATIOF FLOAT For index partition, value, when multiplied by 100, is percentage of rows that are in clustering order
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DATAREPEAT

FACTORF

FLOAT Anticipated number of data pages touched following an index key order

SYSIBM.SYSJARCLASS_SOURCE

Auxiliary table for SYSIBM.SYSCONTENTS

Column name Data type Description
CLASS_SOURCE CLOB(10M) The contents of the class in the jar file

SYSIBM.SYSJARCLASS_SOURCE

Contains Java class source for installed jar

Column name Data type Description
JARSCHEMA VARCHAR(128) The schema of the jar file
JAR_ID VARCHAR(128) The name of the jar file
OWNER VARCHAR(128) Authorization ID of the owner of the jar object
JAR_DATA_ROWID ROWID ID used to support BLOB data type
JAR_DATA BLOB(100M) Contents of the jar file. This is an updatable column
PATH VARCHAR(2048) URL path of the source jar file. This is an updatable column
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
CREATEDTS TIMESTAMP Time when the JAR object was created
ALTEREDTS TIMESTAMP Time when the JAR object was altered
OWNERTYPE CHAR(1) Indicates the type of owner:

blank Authorization ID

L     Role

SYSIBM.SYSJAVAOPTS

Contains build options used during INSTALL_JAR

Column name Data type Description
JARSCHEMA VARCHAR(128) The schema of the jar file
JAR_ID VARCHAR(128) The name of the jar file
BUILDSCHEMA VARCHAR(128) Schema name for BUILDNAME
BUILDNAME VARCHAR(128) Procedure used to create the routine
BUILDOWNER VARCHAR(128) Authorization ID used to create the routine
DBMLIB VARCHAR(256) PDS name where DBRM is located
HPJCOMPILE_OPTS VARCHAR(512) HPJ compile options used to install the routine
BIND_OPTS VARCHAR(2048) Bind options used to install the routine
POBJECT_LIB VARCHAR(256) PDSE name where program object is located
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSJAVAPATHS

Contains the complete JAR class resolution path

Column name Data type Description
JARSCHEMA VARCHAR(128) Schema of the JAR file
JAR_ID VARCHAR(128) Name of the jar file
OWNER VARCHAR(128) Authorization ID of the owner of the JAR object
ORDINAL SMALLINT Ordinal number of path element within the JAR’s Java path
PE_CLASS_

PATTERN

VARCHAR(2048) Pattern for names of classes that are to be searched for in this path element’s JAR file
PE_JARSCHEMA VARCHAR(128) Schema of this path element’s JAR file
PE_JAR_ID VARCHAR(128) Name of this path element’s JAR file
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSKEYCOLUSE

Row for every column in a unique constraint (primary key or unique key)

Column name Data type Description
CONSTNAME VARCHAR(128) Name of the constraint
TBCREATOR VARCHAR(128) Schema or qualifier of table on which constraint is defined
TBNAME VARCHAR(128) Name of the table on which the constraint defined
COLNAME VARCHAR(128) Name of the column
COLSEQ SMALLINT Position of the column in the key
COLNO SMALLINT Position of column in table which constraint is defined
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
PERIOD CHAR(1) Column is start or end column for BUSINESS_TIME period:

B     Start of the period BUSINESS_TIME

C     End of the period BUSINESS_TIME

I     End of period BUSINESS_TIME w/inclusive end

blank Not used as either start or end of BUSINESS_TIME

SYSIBM.SYSKEYS

Contains one row for each column of an index key

Column name Data type Description
IXNAME VARCHAR(128) Name of index
IXCREATOR VARCHAR(128) Schema or qualifier of the index
COLNAME VARHCAR(128) Name of the column of the key
COLNO SMALLINT Numeric postition of the column in the table
COLSEQ SMALLINT Numeric posititon of the column in the key. Meaningless for an index that is based on an expression
ORDERING CHAR(1) Order of the column in the key:

blank index is based on an expression or column is specified for the index using the INCLUDE clause

A      Ascending

D      Descending

R      Random

IBMREQD CHAR(1) Y indicates rows came from MRM tape
PERIOD CHAR(1) Column is start or end column for BUSINESS_TIME period:

B    Start of the period BUSINESS_TIME

C    End of the period BUSINESS_TIME

  End of period BUSINESS_TIME w/inclusive end

blank Not used as start or end of a BUSINESS_TIME period

SYSIBM.SYSKEYTARGETS

Contains one row for each key-target that is participating in extended index definition

Column name Data type Description
IXNAME VARCHAR(128) Qualifier of the index
IXSCHEMA VARCHAR(128) Position of the key-target in the index
KEYSEQ SMALLINT Position of the key-target in the index
COLNO SMALLINT Position of common in table if expression is single column
ORDERING CHAR(1) Order of the key:  A  Ascending
TYPESCHEMA VARCHAR(128) Schema of the data type
TYPENAME VARCHAR(128) Name of the data type
DATATYPEID INTEGER The internal ID of the data type
SOURCETYPEID INTEGER For a built-in data type = 0. For a distinct type, the internal ID of the built-in type on which the distinct type is based
LENGTH SMALLINT Length attribute of key-target of precision for a decimal key-target
LENGTH2 INTEGER Maximum length of a data retrieved from the column.

0   Not a ROWID column

40  For a ROWID

SCALE SMALLINT Scale of decimal data or number of fractional second digits of timestamp or timestamp with time zone data
NULLS CHAR(1) Whether the key can contain null values:

 No

Y   Yes. Y also indicates that the index is an XML index

CCSID INTEGER The CCSID of the key. 0 if the key is a non-character type key
SUBTYPE CHAR(1) Applies to character keys only and indicates subtype of data:

B    BIT data

M    MIXED data

S    SBCS data

blank non-character data

CREATEDTS TIMESTAMP The timestamp for when the key-target is created
RELCREATED CHAR(1) The release of DB2 which the key-target is created
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DERIVED_FROM VARCHAR(4000) For an index on a scalar expression, DERIVED_FROM contains the text of the scalar expression that is used to generate key-target value. For an XML index, this is the XML pattern that is used to generate the key-target value. Otherwise, empty
STATSTIME TIMESTAMP Timestamp of the most recent RUNSTATS
CARDF FLOAT The number of distinct values for the key-target
HIGH2KEY VARCHAR(2000) Second highest key-value. HIGH2KEY is an updatable column
LOW2KEY VARCHAR(2000) Second lowest key-value. LOW2KEY is an updateable column
STATS_FORMAT CHAR(1) The type of statistics that are gathered:

N      VARCHAR column statistical values are not padded blank  Statistics have not been collects or VARCHAR column statistical values are padded

An updateable column

SYSIBM.SYSKEYTARGETSTATS

Contains partition statistics for selected key-targets

Column name Data type Description
IXSCHEMA VARCHAR(128) Qualifier of the index
IXNAME VARCHAR(128) Name of the index
KEYSEQ SMALLINT Numeric position of the key-target in the index
HIGHKEY VARCHAR(2000) Highest key value
HIGH2KEY VARCHAR(2000) Second highest key-value
LOWKEY VARCHAR(2000) Lowest key value
LOW2KEY VARCHAR(2000) Second lowest key-value
PARTITION SMALLINT Partition number of the table space
STATSTIME TIMESTAMP Timestamp of the most recent RUNSTATS
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
STATS_FORMAT FLOAT The type of statistics that are gathered:

N       VARCHAR column statistical values are not padded

blank   Statistics have not been collected or VARCHAR column statistical values are padded

CARDF FLOAT Number of distinct values for the key target

SYSIBM.SYSKEYTARGETS_HIST

Contains rows from the SYSKEYTARGETS table

Column name Data type Description
IXNAME VARCHAR(128) Name of the index
IXSCHEMA VARCHAR(128) Qualifier the index
KEYSEQ SMALLINT Numeric position of the key-target in the index
TYPESCHEMA VARCHAR(128) Schema of the data type
TYPENAME VARCHAR(128) Name of the data type
DATATYPEID INTEGER The internal ID of the data type
SOURCETYPEID INTEGER For a built-in data type=0. For a distinct type, the internal ID of the built-in type on which the distinct type is based
LENGTH SMALLINT Length attribute of the column, or in the case of a decimal column, its precision
LENGTH2 INTEGER Maximum length of data that is retrieved from the column

0   Not a ROWID column

40  For a ROWID

SCALE SMALLINT Scale of decimal data or number of fractional second digits of timestamp with time zone data. Otherwise the value is 0. If the column is a timestamp type, the LENGTH is 10 and the SCALE is 0, the number of fractional second digits is 6
NULLS CHAR(1) Whether the key can contain null values

 No

Y   Yes

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
STATSTIME TIMESTAMP Timestamp of the most recent RUNSTATS
CARDF FLOAT Number of distinct values for the key-target
HIGH2KEY VARCHAR(2000) The second highest key-value
LOW2KEY VARCHAR(2000) The second lowest key-value
STATS_FORMAT CHAR(1) The type of statistics that are gathered:

N     VARCHAR column statistical values are not padded blank Statistics have not been collects or VARCHAR column statistical values are padded

SYSIBM.SYSKEYTGTDIST

Contains one or more rows for the first key-target of an extended index key

Column name Data type Description
STATSTIME TIMESTAMP Date and time of the last invocation of RUNSTATS
IBMREQD CHAR(1) The qualifier of the index
IXSCHEMA VARCHAR(128) The name of the index
IXNAME VARCHAR(128) The numeric position of the key-target in the index
KEYSEQ SMALLINT The numeric position of the key-target in the index
KEYVALUE VARCHAR(2000) KEYVALUE contains the data of a frequently occurring value
TYPE CHAR(1) The type of statistics that are gathered:

C   Cardinality

F   Frequent value

N   Non-padded frequent value

H   Histogram statistics

CARDF FLOAT TYPE=’C’- number of distinct values for key group

TYPE=’H’= number of distinct values for the key group in a quantile indicated by QUANTILENO

KEYGROUPKEYNO VARCHAR(254) Identifies set of keys that are associated with the statistics. 0 if statistics are only associated with a single key
NUMKEYS SMALLINT The number of keys are associated with the statistics
FREQUENCYF FLOAT TYPE=’F’ or ‘N’- percentage of entries in index that have the value that is contained in KEYVALUE.

TYPE=’H’- percentage of entries in index that have a value that is in the range of the quantile in QUANTILENO column

QUANTILENO SMALLINT QUANTILENO contains an ordinary sequence number of a quantile in whole consecutive value range, from low to high
LOWVALUE VARCHAR(2000) TYPE=’H’- lower bound for the quantile in QUANTILENO.

Not used if TYPE does not equal ‘H’

HIGHVALUE VARCHAR(2000) TYPE=’H’- upper bound for the quantile in QUANTILENO. Not used if TYPE does not equal ‘H’

SYSIBM.SYSKEYTGTDISTSTATS

Contains rows per partition for first key-target of a data-partitioned secondary index

Column name Data type Description
STATSTIME TIMESTAMP Timestamp of the most recent RUNSTATS
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
PARTITION SMALLINT Part number of that contains index in which key is defined
IXSCHEMA VARCHAR(128) Qualifier of the index
IXNAME VARCHAR(128) Name of the index
KEYSEQ SMALLINT Numeric position of the key-target in the index
KEYVALUE VARCHAR(2000) Date of a frequently occurring value
TYPE CHAR(1) The type of statists that are gathered:

C   Cardinality

F   Frequent value

N   Non-padded frequent value

H   Histogram statistics

CARDF FLOAT TYPE=’C’- number of distinct values for the key group TYPE=’H’- number of distinct values for the key group in the quantile in QUANTILENO
KEYGROUPKEYNO VARCHAR(254) Identifies set of keys associated with statistics
NUMKEYS SMALLINT Identify the number of keys associated with the statistics
FREQUENCYF FLOAT TYPE=’F’ or ‘N’- percentage of entries in the index that have the value that is specified in KEYVALUE when the number of entries is multiplied by 100.

TYPE=’H’- percetage of entries in the index that have a value that is in the range of the quantile in QUANTILENO

QUANTILENO SMALLINT QUANTILENO contains an ordinary sequence number of a quantile in consecutive value range, from low to high
LOWVALUE VARCHAR(2000) TYPE=’H’- lower bound for quantile in QUANTILENO. LOWVALUE is not used if TYPE does not equal ‘H’
HIGHVALUE VARCHAR(2000) TYPE=’H’- upper bound for the quantile in QUANTILENO. HIGHVALUE is not used if TYPE does not equal ‘H’
VARCHAR(1000) Internal use only

SYSIBM.SYSKEYTGTDIST_HIST

Contains rows from the SYSKEYTGTDIST table

Column name Data type Description
STATSTIME TIMESTAMP Date and time of last invocation of RUNSTATS
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
IXSCHEMA VARCHAR(128) The qualifier of the index
IXNAME VARCHAR(128) The name of the index
KEYSEQ SMALLINT The numeric position of the key-target in the index
KEYVALUE VARCHAR(2000) Contains data of a frequently occurring value
TYPE CHAR(1) The type of statistics that are gathered:

C   Cardinality

F   Frequent value

N   Not a frequent value

H   Histogram statistics

CARDF FLOAT TYPE=’C’- number of distinct values for key group. TYPE=’H’- number of distinct values for key group in QUANTILENO
KEYGROUPKEYNO VARCHAR(254) Value that identifies the set of keys that are associated with the statistics
NUMKEYS SMALLINT The number of keys that are associated with a statistic
FREQUENCYF FLOAT TYPE=’F’ or ‘N’- percentage of entries in the index that have the value that is specified in KEYVALUE when the number of entries is multiplied by 100. TYPE=’H’- percentage of entries in index that have a value that is in the range of the quantile in QUANTILENO
QUANTILENO SMALLINT QUANTILENO contains an ordinary sequence number of a quantile in whole consecutive value range, from low to high
LOWVALUE VARCHAR(2000) TYPE=’H’- lower bound for the quantile in QUANTILENO. LOWVALUE is not used to TYPE does not equal ‘H’
HIGHVALUE VARCHAR(2000) TYPE=’H’- upper bound for the quantile in QUANTILENO. HIGHVALUE is not used to type does not equal ‘H’

SYSIBM.SYSLEVELUPDATES

Contains information about function levels, catalog levels and code levels of DB2 subsystem

Column name Data type Description
FUNCTION_LVL VARCHAR(10) Function level
PREV_FUNCTION_

LVL

VARCHAR(10) Previous function level

 

HIGH_FUNCTION

_LVL

VARCHAR(10) Highest activated function level

 

CATALOG_LVL VARCHAR(10) Type of operation

C  Catalog level change

F  Function level change

M  Code level change

EFFECTIVE_TIME TIMESTAMP(12) Time when operation completed
EFFECTIVE_LRSN VARCHAR(12) RBA or LRSN when operation completed
OPERATION_TEXT VARCHAR(256) Text of operation
GROUP_MEMBER VARCHAR(24) Name of group member on which operation was run

SYSIBM.SYSLOBSTATS

Contains one row for each LOB tablespace

Column name Data type Description
STATSTIME TIMESTAMP Timestamp of RUNSTATS statistics update
AVGSIZE INTEGER Average size of a LOB, measured in bytes, in the LOB tablespace
FREESPACE INTEGER Number of kilobytes of available space in the LOB tablespace
ORGRATIO DECIMAL(5,2) Percentage of organization in LOB tablespace. 100 = perfect organization. 1= disorganized. 0= totally disorganized.
DBNAME VARCHAR(24) Name of database that contains LOB tablespace
NAME VARCHAR(24) Name of the LOB tablespace
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSLOBSTATS_HIST

Contains rows from SYSLOBSTATS. Can be inserted, updated, and deleted

Column name Data type Description
STATSTIME TIMESTAMP Timestamp of RUNSTATS statistics update
FREESPACE INTEGER Number of kilobytes of available space in the LOB tablespace
ORGRATIO DECIMAL(5,2) Percentage of organization in LOB table space. 100= perfect organization. 1= disorganized. 0= totally disorganized
DBNAME VARHCAR(24) Name of the database that contains the LOB tablespace
NAME VARCHAR(24) Name of the LOB tablespace
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSOBJROLEDEP

Contains the dependent objects for each role

Column name Data type Description
DEFINER VARCHAR(128) The authorization ID or role that created the object
DEFINERTYPE CHAR(1) The type of definer:

L     Role

blank Authorization ID

ROLENAME VARCHAR(128) Name of the role on which there is a dependency
DSCHEMA VARCHAR(128) Name of the schema of the dependent object
DNAME VARCHAR(128) Name of the dependent object
DTYPE CHAR(1) The type of dependent object in DNAME:

A Alias

B Trigger

D Database

E Distinct type

F User-defined function

I Index

J Jar

L Role

M Materialized query table

N Trusted context

O Stored procedure

Q Sequence

R Table space

S Storage group

T Table

V View

X Row permission

Y Column mask

0 Alias

IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSPACKAGE

Contains a row for every package

Column name Data type Description
LOCATION VARCHAR(128) Always contains blanks
COLLID VARCHAR(128) Name of package collection
NAME VARCHAR(128) Name of the package
CONTOKEN CHAR(8) Consistency token for package
OWNER VARCHAR(128) Authorization ID of the package owner
CREATOR VARCHAR(128) Auth ID of owner of creator of package version
TIMESTAMP TIMESTAMP Timestamp indicating when the package was created
BINDTIME TIMESTAMP Timestamp indicating when the package was last bound
QUALIFIER VARCHAR(128) Implicit qualifier for the unqualified table, view, index, and alias names in static SQL statements of the package
PKSIZE INTEGER Size of the base section of package in bytes
AVGSIZE INTEGER Average size, in bytes, of those sections of the plan that contain SQL statements processed at bind time
SYSENTRIES SMALLINT Number of enabled disabled entry for this packaging 04 types of connections are enabled
VALID CHAR(1) Whether the package is valid:

 Alter statement changed the description of the table of base table of a view referred to by the package. For a CREATE INDEX involving data sharing, VALID is also marked as ‘A’. Changes do not invalidate the package.

H   ALTER TABLE statement changed description of the table or base table of a view referred to by the package

N   No

Y   Yes

OPERATIVE CHAR(1) Whether the package can be allocated:

N  No

Y  Yes

VALIDATE CHAR(1) Whether validity checking can deferred until run time:

B   All checking must be performed at bind time

R   Validation is done at run time for tables, views and privileges that do not exist at bind time

ISOLATION CHAR(1) Isolation level when package was last bound or rebound

I     Local packages inheriting the value from the plan

R     RR (repeatable read)

S     CS (cursor stability)

T     RS (read stability)

U     UR (uncommitted read)

blank Not specified, and therefore at the level specified for the plan executing the package

RELEASE CHAR(1) Value for RELEASE when package was last bound/rebound:

C     Value used was COMMIT

D     Value used was DEALLOCATE

I     Local package is inheriting value from plan

blank Not specified, and therefore the value specified for the plan executing the package

EXPLAIN CHAR(1) EXPLAIN option specified for the package

N  No

Y  Yes

QUOTE CHAR(1) SQL string delimiter for SQL statements in the package:

N   Apostrophe

Y   Quotation mark

COMMA CHAR(1) Decimal point representation for SQL statements in package:

N   Period

Y   Comma

HOSTLANG CHAR(1) Host language for the package’s DBRM:

B    Assembler language

C    OS/VS COBOL

D    C

F    Fortran

P    PL/I

2    VS COBOL II or IBM COBOL Release 1

3    IBM COBOL (Release 2 or subsequent releases)

4    C++

Blank  For remotely bound packages, trigger packages (TYPE=’T’), SQL procedure packages (TYPE=’N’), or non-inline SQL scalar function packages (TYPE=’F’)

CHARSET CHAR(1) CCSID for SBCS data was 290 (katakana) when program was precompiled:

K  Yes

A  No

MIXED CHAR(1) Mixed data was in affect when program was precompiled:

N  No

Y  Yes

DEC31 CHAR(1) DEC31 was in effect when program was pre-compiled:

N  No

Y  Yes

DEFERPREP CHAR(1) CURRENTDATA option package was bound or rebound:

A    Data currency is required for all cursors. Inhibit blocking for all cursors

B    Data currency is not required for ambiguous cursors

C    Data currency is required for ambiguous cursors blank Package was created before CURRENTDATA option was available

SQLERROR CHAR(1) SQLERROR option on most recent subcommand that bound or rebound the package:

C   Continue

N   No package

REMOTE CHAR(1) Source of the package:

C   Package was created by BIND COPY

D   Package was created by BIND COPY with the OPTIONS(COMMAND) option

K   Package was copied from a package that was originally bound on behalf of a remote requester

L   Package was copied with the OPTIONS(COMMAND) option from a package that was originally bound on behalf of a remote requester

N   Package was locally bound from a DBRM

Y   Package was bound on behalf of a remote requester

PCTIMESTAMP TIMESTAMP Date and time the application program was precompiled
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VERSION VARCHAR(122) Version identifier for package. Emtpy for SQL procedure package (TYPE=N), SQL scalar function package (TYPE=F), or trigger package (type=t OR 1)
PDSNAME VARCHAR(132) Name of PDS (library)in which package’s DBRM is a member
DEGREE CHAR(3) DEGREE option used when the package was last bound:

Any        DEGREE(ANY)

1 or blank DEGREE(1)

blank      if the package was migrated

GROUP_MEMBER VARCHAR(24) Member name of subsystem that performed most recent bind
DYNAMICRULES CHAR(1) DYNAMICRULES option used when package was last bound:

B   BIND. Dynamic SQL statements are executed with DYNAMICRULES bind behaviour

D   DEFINEBIND

E   DEFINERUN

H   INVOKERUN

R   RUN

Blank DYNAMICRULES not specified for the package

REOPTVAR CHAR(1) If access path is determined again at execution time using input variable values:

A    REOPT(AUTO)

N    REOPT(NONE)

Y    REOPT(ALWAYS)

1    REOPT(ONCE)

DEFERPREPARE CHAR(1) If PREPARE processing is deferred until OPEN is executed:

N     NODEFER(PREPARE)

Y     DEFER(PREPARE)

I     Local package is inheriting value from the plan blank Bind option not specified. Inherited from plan

KEEPDYNAMIC CHAR(1) Whether prepared dynamic statements are purged at commit:

N    KEEPDYNAMIC(NO)

Y    KEEPDYNAMIC(YES)

PATHSCHEMAS VARCHAR(2048) SQL path specified on the BIND or REBIND command that bound the package
TYPE CHAR(1) Type of package. Identifies how the package was created:

F      CREATE FUNCTION or ALTER FUNCTION statement, or a BIND PACKAGE DEPLOY command created the package, and this package is a non-inline SQL scalar function package

N      CREATE PROCEDURE or ALTER PROCEDURE statement, or BIND PACKAGE DEPLOY command created the package, and this package is a native SQL routine package

R      Reserved for IBM use

T      CREATE TRIGGER statement created the package, and the package is a trigger package. blank BIND PACKAGE command created the package

DBPROTOCOL CHAR(1) Whether remote access for SQL is implemented with DRDA access or DRDA access with the capability for package-based continuous block fetch:

D DRDA

C DRDA access with package-based continuous block feature enabled

FUNCTIONTS TIMESTAMP Timestamp when function was resolved
OPTHINT VARCHAR(128) Identifies rows in authid.PLAN_TABLE to be used as input to the optimizer
ENCODING_CCSID INTEGER Encoding scheme specified on the bind command:

CCSID     Specified or derived CCSID

0         EBCDIC default CCSID as specified on panel DSNTIPF at installation time

IMMEDWRITE CHAR(1) When writes of updated group bufferpool dependent pages are to be done. Only applicable for data-sharing

I       Local package is inheriting the value from the plan

N       IMMEDWRITE(NO)- normal write activity is done

Y       IMMEDWRITES(YES)- immediate writes are done for updated group buffer pool dependent pages

1       IMMEDWRITES(PH1)- updated group bufferpool dependent pages are written at or before phase 1 commit

Blank   if the package was migrated

RELBOUND CHAR(1) The release when the package was bound or rebound

blank     Bound prior to V7

REMARKS VARCHAR(762) Character string provided by user with COMMENT statement
OWNERTYPE CHAR(1) Indicates the type of owner:

blank  Authorization ID

L      Role

ROUNDING CHAR(1) ROUNDING option used when the package was last bound:

C  ROUND_CEILING

D  ROUND_DOWN

F  ROUND_FLOOR

G  ROUND_HALF_DOWN

E  ROUND_HALF_EVEN

H  ROUND_HALF_UP

U  ROUND_UP blank

Blank The package created in a DB2 release prior to V9

DISTRIBUTE CHAR(1) Determines if DB2 should gather location names from SQL statements, and create remote packages for the user

A      DB2 will collect remote location names from SQL statements during local bind, and automatically create remote packages at those sites

L      DB2 will automatically create remote packages at sites specified in the list of location-names

LASTUSED DATE The last date that the corresponding objects are used
CONCUR_ACC_

RES

CHAR(1) CONCURRENTACCESSRESOLUTION option when package was bound or rebound:

blank  Not specified

N      WAITFOROUTCOME

Y      USECURRENTLYCOMMITTED

EXTENDED

INDICATOR

CHAR(1) Value of the EXTENDEDINDICATOR bind option:

N      EXTENDEDINDICATOR NO

Y      EXTENDEDINDICATOR YES

PLANMGMT CHAR(1) Value of the PLANMGMTSCOPE bind option:

B     PLANMGMT BASIC

E     PLANMGMT EXTENDED

Blank PLANMGMT OFF

PLANMGMTSCOPE CHAR(1) Value of the PLANMGMTSCOPE bind option:

S     PLANMGMTSCOPE STATIC

APREUSE CHAR(1) Value of the APREUSE bind option:

N   No or none: Access paths are not reused

W   WARN: DB2 tries to reuse access paths. Processing continues when an access path cannot be reused

E   ERROR: DB2 tries to reuse access paths. Processing ends when an access path cannot be reused

APRETAINDUP CHAR(1) Value of the APRETAINDUP bind option:

Y   Yes specified. All copies were retained

0   No specified; however, the previous or original package copy is still retained due to access path differences

1   No specified, and the previous package copy is not retained as access paths are identical to current copy

2   No specified, and previous and original package copies are retained as access paths are identical to current

SYSTIMESENSITIVE CHAR(1) Value of the SYSTIMESENSITIVE bind option:

Y   References to system-period temporal tables are affected by CURRENT TEMPORAL BUSINESS_TIME

N   References to application-period temporal tables are not affected by CURRENT TEMPORAL BUSINESS_TIME

BUSTIMESENSITIVE CHAR(1) Value of the BUSTIMESENSITIVE bind option@

Y   References to application-period temporal tables are affected by CURRENT TEMPORAL BUSINESS_TIME

N   References to application-period temporal tables are not affected by CURRENT TEMPORAL BUSINESS_TIME

APPLCOMPAT VARCHAR(10) Value of the APPLCOMPAT bind option:

V10R1   SQL statements in the package have V10R1 compatibility behavior

V11R1   SQL statements in the package V11R1 compatibility behaviour

Function-level – SQL statements in package of compatibility behaviour with the specified function level

ARCHIVESENSITIVE CHAR(1) Value of the ARCHIVESENSITIVE bind option

Y (default) references to archive-enabled tables are affected SYSIBMADM.GET_ARCHIVE built-in global variable

N References to archive-enabled tables are not affected by SYSIBMADM.GET_ARCHIVE built-in global variable

EXTSEQNO INTEGER For internal use
DESCSTAT CHAR(1) Value of the DESCSTAT bind option

Y  DB2 database manager generates a DESCRIBLE SQLDA at bind time so DESCRIBE requests for static SQL can be satisfied during execution

N  DB2 database managers does not generate a DESCRIBE SQLDA at bind time for static SQL statements

ORIGIN CHAR(1) Origin of EXPLAIN records

A   Automatic bind

B   Bind command

G   Explicit ALTER REGENERATE

I   Implicit automatic regeneration

R   REBIND command

Blank existed before 12

APREUSE_NO_FL VARCHAR(10) Function level when package bound APREUSE(NO)
APREUSE_NO_TS TIMESTAMP Bind time when package bound APREUSE(NO)
CONC_STMT CHAR(1) Whether statement concentration is enabled

N  No

Y  Yes

FUNCTION_LVL VARCHAR(10) Function level of package when row was inserted

SYSIBM.SYSPACKCOPY

Contains a row for every previous and original package

Column name Data type Description
LOCATION VARCHAR(128) Always contains blanks
COLLID VARCHAR(128) Name of package collection
NAME VARCHAR(128) Name of the package
CONTOKEN CHAR(8) Consistency token for the package
OWNER VARCHAR(128) Authorization ID of package owner
CREATOR VARCHAR(128) Authorization ID of owner of package version
TIMESTAMP TIMESTAMP Timestamp indicating when the package was created
BINDTIME TIMESTAMP Timestamp indicating when the package was last bound
QUALIFIER VARCHAR(128) Implicit qualifier for unqualified table, view index, and alias names in the static SQL statements of the package
PKSIZE INTEGER Size of the base section of the package, in bytes
AVGSIZE INTEGER Average size (bytes) of sections of plan including SQL
SYSENTRIES SMALLINT Number of enabled or disabled entries for package in SYSPKSYSTEM. 0 is all types of connections are enabled
VALID CHAR(1) Whether the package is valid:

A   ALTER statement changed description of table or base table of a view referred to by the package

H   ALTER TABLE statement changed description of table or base table of a view referred to by package

N   No

Y   Yes

OPERATIVE CHAR(1) Whether the package can be allocated:

N  An explicit BIND or REBIND is required before package can be allocated

Y  Yes

VALIDATE CHAR(1) Whether validity checking can be deferred until run time:

B  All checking must be performed at bind time

R  Validtion is done at run time for tables, views, and privileges that do not exist at bind time

ISOLATION CHAR(1) Isolation level when packagewas last bound or rebound

R      RR(repeatable read)

S      CS(cursor stability)

T      RS(read stability)

U      UR(uncommitted read)

Blank  Not specified, level specified for plan

RELEASE CHAR(1) Value for RELEASE when package was last bound/rebound:

C      Value used was COMMIT

D      Value used was DEALLOCATE

I      Local package is inheriting the value from the plan

Blank  Not specified, value for plan executing the package

EXPLAIN CHAR(1) EXPLAIN option specified for the package

N  No

Y  Yes

QUOTE CHAR(1) SQL String delimiter for SQL statements in the package:

N   Apostrophe

Y   Quotation mark

COMMA CHAR(1) Decimal point representation for SQL statements in package:

N   Period

Y   Comma

HOSTLANG CHAR(1) Host language for the package’s DBRM:

B      Assembler language

C      OS/VS COBOL

D      C

F      Fortran

P      PL/I

2      VS COBOL II or IBM COBOL Release 1

3      IBM COBOL (Release 2 or subsequent release)

4      C++

Blank  for remotely bound packages, trigger packages (TYPE=’T’), SQL procedure packages (TYPE=’N’), or non-inline SQL scalar function packages (TYPE=’F’)

CHARSET CHAR(1) CCSID for SBCS data was 290 (katakuna) when program was precompiled:

K   Yes

A   No

MIXED CHAR(1) Mixed data in effect when program was precompiled

N   No

Y   Yes

DEC31 CHAR(1) DEC31 in effect when program was precompiled

N  No

Y  Yes

DEFERPREP CHAR(1) CURRENTDATA option when package bound or rebound:

A    Data currency is required for all cursors. Inhibit blocking for all cursors

B    Data currency is not required for ambiguous cursors

C    Data currency is required for ambiguous cursors

Blank Package was created before CURRENTDATA option was available

SQLERROR CHAR(1) SQLERROR option on most recent subcommand that bound or rebound the package:

C   CONTINUE

N   NOPACKAGE

REMOTE CHAR(1) Source of the package:

C    Package was created by BIND COPY

D    Package was created by BIND COPY with the OPTIONS(COMMAND) option

K    Package was copied from a package that was originally bound on behalf of a remote requester

L    Package was copied with the OPTIONS(COMMAND) option from a package that was originally bound on behalf of a remote requester.

N    Package was locally bound from a DBRM

Y    Package was bound on behalf of a remote requester

PCTIMESTAMP TIMESTAMP Date and time the application program was precompiled
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VERSION VARHCAR(122) Version identifier for package. Empty for SQL procedure package (TYPE=N), SQL scalar function package (TYPE=F), or trigger package(TYPE=T or 1)
PDSNAME VARCHAR(132) Name of PDS (library) in which package’s DBRM is a member
DEGREE CHAR(3) DEGREE option used when the package was last bound:

ANY          DEGREE(ANY)

1 or blank   DEGREE(1)

Blank        if the package was migrated

GROUP_MEMBER VARCHAR(24) Member name of subsystem that performed most recent bind
DYNAMICRULES CHAR(1) DYNAMICRULES option used when package was last bound:

B    BIND. Dynamic SQL statements are executed with DYNAMICRULES bind behaviour

D    DEFINEBIND

E    DEFINERUN

H    INVOKEBIND

I    INVOKERUN

R    RUN

Blank DYNAMICRULES not specified for package

REOPTVAR CHAR(1) If access path is determined to get execution time using input variable values

A    REOPT(AUTO)

N    REOPT(NONE)

Y    REOPT(ALWAYS)

1    REOPT (ONCE)

DEFERPREPARE CHAR(1) If PREPARE processing is deferred until OPEN is executed:

N    NODEFER(PREPARE)

Y    DEFER(PREPARE)

I    Local package is inheriting the value from the plan

blank Bind option not specified. Inherited from plan

KEEPDYNAMIC CHAR(1) Whether the prepared dynamic statements are purged at commit:

N    KEEPDYNAMIC(NO)

Y    KEEPDYNAMIC(YES)

PATHSCHEMAS VARCHAR(2048 SQL path specified on the BIND or REBIND command that bound the package
TYPE CHAR(1) Type of package. Identifies how the package was created:

F     CREATE FUNCTION or ALTER FUNCTION statement, or a BIND PACKAGE DEPLOY command created the package, and this package is a non-inline SQL scalar function package

N     CREATE PROCEDURE or ALTER PROCEDURE statement, or BIND PACKAGE DEPLOY command created the package, and this package is a native SQL routine package

R     Reserved for IBM use

T     CREATE TRIGGER statement created the package, and the package is a trigger package. Blank BIND PACKAGE command created the package

DBPROTOCOL CHAR(1) Whether remote access for SQL is implemented with DRDA access or DRDA access with the capability for package-based continuous block fetch:

D DRDA

C DRDA access with package-based continuous block fetch enabled

FUNCTIONTS TIMESTAMP Timestamp when function was resolved
OPTHINT VARCHAR(128) Identifies rows in authid.PLAN_TABLE to be used as input to the optimizer
ENCODING_

CCSID

INTEGER Encoding scheme specified on the bind command:

CCSID     Specified or derived CCSID

0         EBCDIC default CCSID as specified on panel DSNTIPF at installation time

IMMEDWRITE CHAR(1) When writes of updated group bufferpool dependent pages are to be done. Only applicable for data-sharing.

I   Local package is inheriting the value from the plan

N   IMMEDWRITE(NO) – normal write activity is done

Y   IMMEDWRITE(YES) – immediate writes are done for updated grup buffer pool dependent pages

1   IMMEDWRITE(PH1) – updated group bufferpool dependent pages are written at or before phase 1 commit

Blank if the package was migrated

RELBOUND CHAR(1) The release when the package was bound or rebound

blank     Bound prior to V7

REMARKS VARCHAR(762) Character string provided by user with COMMENT statement
OWNERTYPE CHAR(1) Indicates the type of owner:

blank Authorization ID

L     Role

ROUNDING CHAR(1) ROUNDING option used when the package was last bound:

C ROUND_CEILING

D ROUND_DOWN

F ROUND_FLOOR

G ROUND_HALF_DOWN

E ROUND_HALF_EVEN

H ROUND_HALF_UP

U ROUND_UP blank

blank The package created in a DB2 release prior to V9

DISTRIBUTE CHAR(1) Determines if DB2 should gather location names for SQL statements, and create remote packages for the user

A       DB2 will collect remote location names SQL statements during local bind, and automatically create remote packages at those sites

L       DB2 will automatically create remote packages at sites specified in the list of location-names

LASTUSED DATE The last date that the corresponding objects are used
CONCUR_ACC_

RES

CHAR(1) CONCURRENTACCESSRESOLUTION option when package was bound or rebound:

blank  Not specified

N      WAITFOROUTCOME

Y      USECURRENTLYCOMMITTED

EXTENDED

INDICATOR

CHAR(1) Value of the EXTENDEDINDICATOR bind option:

N      EXTENDEDINDICATOR NO

Y      EXTENDEDINDICATOR YES

PLANMGMT CHAR(1) Value of the PLANMGMT bind option:

B      PLANMGMT BASIC

E      PLANMGMT EXTENDED

Blank  PLANMGMT OFF

PLANMGMTSCOPE CHAR(1) Value of the PLANMGMTSCOPE bind option:

S      PLANMGMTSCOPE STATIC

APREUSE CHAR(1) Value of the APREUSE bind option:

N     No or none: Access paths are not reused.

W     WARN: DB2 tries to reuse access paths. Processing continues when an access path cannot be reused

E     ERROR: DB2 tried to reuse access paths. Processing ends when an access path cannot be reused

APRETAINDUP CHAR(1) Value of the APRETAINDUP bind option:

Y     YES specified. All copies were retained.

0     NO specified; however, the previous or original package copy is still retained due to access path differences

1     NO specified, and the previous package copy is not retained as access paths are identical to current copy

2    NO specified, and previous and original package copies are not retained as access paths are identical to current

SYSTIME

SENSITIVE

CHAR(1) Value of the SYSTIMESENSITIVE bind option:

Y   References to system-period temporal tables are affected by CURRENT TEMPORAL SYSTEM_TIME

N   References to system-period temporal tables are not affected by CURRENT TEMPORAL SYSTEM_TIME

BUSTIME

SENSITIVE

CHAR(1) Value of the BUSTIMESENSITIVE bind option:

Y   References to application-period temporal tables are affected by value of CURRENT TEMPORAL BUSINESS_TIME

N   References to application-period temporal tables are not affected by CURRENT TEMPORAL BUSINESS_TIME

APPLCOMPAT VARCHAR(10) Value of the APPLCOMAT bind option:

V10R1   SQL statements in the package have V10R1 compatibility behaviour

V11R1   SQL statements in the package have V11R1 compatibility behaviour

Function-level – SQL statements in package have compatibility behaviour with the specified function level

ARCHIVE

SENSITIVE

CHAR(1) Value of the ARCHIVESENSITIVE bind option

Y  (default) references to archive-enabled tables are affected SYSIBMADM.GET_ARCHIVE built-in global variable

N  References to archive-enabled tables are not affected by SYSIBMADM.GET_ARCHIVE built-in global variable

EXTSEQNO INTEGER For internal use
DESCSTAT CHAR(1) Value of the DESCSTAT bind option:

Y   DB2 database manager generates a DESCRIBE SQLDA at bind time so DESCRIBE requests for static SQL can we satisfied during execution

N   DB2 database manager does not generate a DESCRIBE SQLDA at bind time for static SQL statements

ORIGIN CHAR(1) Origin of EXPLAIN records:

 Automatic bind

B   BIND command

G   Explicit ALTER REGENERATE

I   Implicit automatic regeneration

R   REBIND command

blank existed before 12

APREUSE_NO_FL VARCHAR(10) Function level when package bound APREUSE(NO)
APRESUE_NO_TS TIMESTAMP Bind time when package bound APREUSE(NO)
CONC_STMT CHAR(1) Whether statement concentration is enabled

N No

Y Yes

FUNCTION_LVL VARCHAR(10) Function level of package when row was inserted

SYSIBM.SYSPACKAUTH

Records the privileges that are held by users over packages

Column Name Data type Description
GRANTOR VARCHAR(128) Auth ID of user who granted privilege. Could be PUBLIC
GRANTEE VARCHAR(128) Auth ID of user who holds the privileges, name of a plan that uses privileges or PUBLIC for a grant to PUBLIC
LOCATION VARCHAR(128) Always contains blanks
COLLID VARCHAR(128) Collection name for package(s) which privilege was granted
NAME VARCHAR(128) Name of package on which privileges are held
TIMESTAMP TIMESTAMP Timestamp indicating when the privilege was granted
GRANTEETYPE CHAR(1) Type of grantee:

blank    An authorization ID

L        Role

P        An application plan

AUTHHOWGOT CHAR(1) Authorization level of user from whom privileges were received. Not necessarily highest authorization level of grantor

blank  Not applicable

A     PACKADM (on collection*)

C     DBCTL

D     DBADM

E     SECADM

G     ACCESSCTRL

L     SYSCTRL

M     DBMAINT

P     PACKADM (on a specific collection)

S     SYSADM

T     DATAACCESS

BINDAUTH CHAR(1) GRANTEE can use BIND and REBIND against package:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege iss held without the GRANT option

COPYAUTH CHAR(1) GRANTEE can COPY the package:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege iss held without the GRANT option

EXECUTEAUTH CHAR(1) GRANTEE can execute the package:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege iss held without the GRANT option

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
GRANTORTYPE CHAR(1) Indicates the type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSPACKDEP

Dependencies of packages on tables, views, synonyms, tablespaces, indexes, aliases, functions and stored procedures

Column name Data type Description
BNAME VARCHAR(128) Name of an object a package depends on
BQUALIFIER VARCHAR(128) Qualifier of object
BTYPE CHAR(1) Type of object identified by BNAME and BQUALIFIER:

A  Alias

B  BUSINESS_TIME

C  SYSTEM_TIME

E  INSTEAD OF trigger

F  User-defined function or cast function

G  Global Temporary Table

I  Index

M  Materialized query table

O  Stored procedure

P  Partitioned tablespace if it is defined as LARGE or with DSSIZE

Q  Sequence object

R  Tablespace

S  Synonym

T  Table

V  View

0  Alias

DLOCATION VARCHAR(128) Always contain blanks
DCOLLID VARCHAR(128) Name of the package collection
DNAME VARCHAR(128) Name of the package
DCONTOKEN CHAR(8) Consistency token for the package
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DOWNER VARCHAR(128) Owner of the package
DTYPE CHAR(1) Type of package:

F    Non-inline SQL scalar function

N    Native SQL routine package

O    Original copy of a package

P    Previous copy of a package

R    Reserved for IBM use

T    Trigger package for basic trigger

blank Not a trigger package or a native SQL routine package

1    Trigger package for an advanced trigger

DOWNERTYPE CHAR(1) Indicates the type of owner of the package:

blank  Authorization ID

L      Role

SYSIBM.SYSPACKLIST

Contains one or more roles for every local application plan bound with a package list

Column name Data type Description
PLANNAME VARCHAR(24) Name of the application plan
SEQNO SMALLINT Sequence number of the entry in the package list
LOCATION VARCHAR(128) Location of package. Blank if local. (*)- determined at run time
COLLID VARCHAR(128) Collection name for package. (*) determined at run time
NAME VARCHAR(128) Name of the package. (*)- an entire collection
TIMESTAMP TIMESTAMP Timestamp indicating when the row was created
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSPACKSTMT

Contains one or more rows for each statement in a package

Column name Data type Description
LOCATION VARCHAR(128) Always contains blanks
COLLID VARCHAR(128) Name of the package collection
NAME VARCHAR(128) Name of the package
CONTOKEN CHAR(8) Consistency token for the package
SEQNO INTEGER Not used
STMTNO SMALLINT Statement number of statement in source program
SECTNO SMALLINT The section number of the statement
BINDERROR CHAR(1) Whether an SQL error was detected at bind time:

N No

Y Yes

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VERSION VARCHAR(122) Version identifier for the package
VARCHAR(3500) Internal use only
ISOLATION CHAR(1) Isolation level for the SQL statement:

R       RR (repeatable read)

T       RS (read stability)

S       CS (cursor stability)

U       UR (uncommitted read)

L       KEEP UPDATE LOCKS or an RS isolation

X       KEEP UPDATE LOCKS for and RR isolation

blank   WITH clause was not specified on statement. Isolation level is recorded in SYSPACKAGE.ISOLATION and

SYSPLAN.ISOLATION

STATUS CHAR(1) Status of binding the statement:

A   Distributed – statement uses DB2 private protocol access

B   Distributed – statement uses DB2 private protocol access

C   Compiled – statement was bound successfully using defaults for input variables during access path selection

E   Explain – statement is an SQL EXPLAIN statement

F   Parsed – statement is either a data definition statement or a statement that did not bind successfully and VALIDATE(RUN) was used

G   Compiled – statement bound successfully, but REOPT is specified

H    Parsed – statement is either a data definition statement or a statement that did not bind successfully and VALIDATE(RUN) was used

I    Indefinite – statement is dynamic

J    Indefinite – statement is dynamic

K    Control – CALL statement

L    Bad – statement has some allowable error

M    Parsed – statement references a table qualified with SESSION and was not bound because table reference could be for a declared temporary table that will not be defined until package or plan is run

blank  Statement is non-executable, or was bound prior to V5

ACCESSPATH CHAR(1) For static statements, indicates if the access path for the statement is based on user-specified optimization hints. ‘H’ indicates that optimization hints were used
STMTNOI INTEGER If the value of STMTNO is zero, the column contains the statement number of the statement in the source program
SECTNOI INTEGER The section number of the segment
EXPLAINABLE CHAR(1) Contains one of the following values:

Y    Indicates that the SQL statement can be used with EXPLAIN function and may have rows describing its access path in the userid.PLAN_TABLE

N    Indicates that the SQL statement does not have any rows describing its access path in the userid.PLAN_TABLE

Blank Indicates that the SQL statement was bound prior to V7

QUERYNO INTEGER Query number of SQL statement in source program
ROWID ROWID ROWID column, created for the lob columns in this table
STATEMENT CLOB(2M) The complete text for the SQL statement that the row represents
BLOB(2M) Internal use only
STMT_ID BIGINT A unique statement identifier
EXPANSION CHAR(2) Applies to only static statements that reference archive tables or temporal tables

A   Statement was bound with implicit query transformation as a result of SYSIBMADM.GET_ARCHIVE built-in global variable

B   Statement was bound with implicit query transformation as a result of the CURRENT TEMPORAL BUSINESS_TIME

S   Statement was bound with implicit query transformation as a result of the CURRENT TEMPORAL SYSTEM_TIME

SB  Statement was bound with implicit query transformation as a result of CURRENT TEMPORAL SYSTEM_TIME register and CURRENT TEMPORAL BUSINESS_TIME

Blank

QUERYID BIGINT Identifier for record in SYSQUERY
QUERY_HASH CHAR(6) Hash key for records in SYSQUERY
QUERY_HASH_

VERSION

INTEGER Hash version for records in SYSQUERY

SYSIBM.SYSPACK.STMT_STMB

An auxiliary table for the STMTBLOB column of SYSIBM.SYSPACKSTMT

Column name Data type Description
  BLOB(2M) Internal use only

SYSIBM.SYSPACKSTMT_STMT

An auxiliary table for the STMTBLOB column SYSIBM.SYSPACKSTMT

Column name Data type Description
STATEMENT CLOB(2M) The complete text for the SQL statement that the row represents

SYSIBM.SYSPARMS

Contains a row for each parameter of a routine or multiple rows for table parameters

Column name Data type Description
SCHEMA VARCHAR(128) Schema of the routine
OWNER VARCHAR(128) Owner of the routine
NAME VARCHAR(128) Name of the routine
SPECIFICNAME VARCHAR(128) Specific name of the routine
ROUTINETYPE CHAR(1) Type of routine:

F   User-defined function or cast function

P   Stored procedure

CAST_

FUNCTION

CHAR(1) Whether the routine is a cast function:

N   Not a cast function

Y   A cast function

PARMNAME VARCHAR(128) Name of parameter
ROUTINEID INTEGER Internal identifier to routine
ROWTYPE CHAR(1) Values indicate type of parameter describe by this row:

P   Input parameter

O   Output parameter; not applicable for functions

B   Both an input and output; N/A for functions

R   Result before casting; N/A for stored procedures

C   Result after casting; not applicable for stored procedures

S   Input parameter of the underlying built-in source function

ORDINAL SMALLINT If ROWTYPE is B, O, P, or S, value is the ordinal number of the parameter within the routine signature.

If ROWTYPE is C or R, value depends on type of function:

·        For a scalar function the value is 0.

·        For a table function, the value is the ordinal number of the column of the output table

If ROWTYPE is X, the value is 0

TYPESCHEMA CHAR(8) Schema of the data type of the parameter
TYPENAME CHAR(18) Name of the data type of the parameter
DATATYPEID INTEGER For a built-in data type, internal ID of the built-in type. For a distinct type, internal ID of distinct type
SOURCETYPEID INTEGER For a built-in data type, 0. For a distinct type, internal ID of the built-in data type upon which the distinct type is sourced
LOCATOR CHAR(1) Indicates whether a locator to a value, instead of actual value, is to be passed as input value when routine is called:

N   Actual values to be passed

Y   A locator to a value is to be passed

TABLE CHAR(1) The data type of a column for a table parameter

N   This is not a table parameter

Y   This is a table parameter

TABLE_COLNO SMALLINT For table parameters, the column number of the table. Otherwise, the value is 0
LENGTH INTEGER Length attribute of parameter or result
SCALE SMALLINT Scale of data type of parameter or number of fractional second digits of timestamp or timestamp with time zone parameter
SUBTYPE CHAR(1) If data type is a distinct type, subtype of the distinct type, which is based on the subtype of its source type:

B      FOR BIT DATA

S      FOR SBCS DATA

M      FOR MIXED DATA

blank  Source type is not a character type, or if parameter is an array type

CCSID INTEGER CCSID of data type for a character, date, time, timestamp or graphic data type
CAST_FUNCTION_ID INTEGER Internal function ID of function used to cast argument, if this function is sourced on another function, or result. Otherwise 0. Not applicable for stored procedures
ENCODING_

SCHEME

CHAR(1) Encoding scheme of the parameter:

A     ASCII

E     EBCDIC

U     UNICODE

blank The source type is not a character type or is the parameter is an array type

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VERSION VARCHAR(122) Version identifier for routine. Column is a zero-length string if values of ORIGIN is not ‘I’ or if rows were created prior to V9
OWNERTYPE CHAR(1) Indicates the type of owner:

blank   Authorization ID

L       Role

SYSIBM.SYSPENDINGDDL

Contains information which objects have pending definition changes

Column name Data type Description
DBNAME VARCHAR(24) Name of the database for the pending option
TSNAME VARCHAR(24) Name of the table space for the pending option
DBID SMALLINT Internal identifier of the database
PSID SMALLINT Internal identifier of the tablespace page set descriptor
OBJSCHEMA VARCHAR(128) The qualifier of the object that contains the pending option
OBJNAME VARCHAR(128) Name of the object that contains the pending option
OBJOBID SMALLINT Internal identifier of the object
OBJTYPE CHAR(1) Type of update identified by OBJSCHEMA and OBJNAME

 Index

S   Table space

T   Table

STATEMENT_

TYPE

CHAR(1) The type of the statement of the pending option

A   An ALTER statement

R   A RECOVER statement

OPTION_ENVID INTEGER Intend identifier of the environment for the pending option
OPTION_

KEYWORD

VARCHAR(128) If row is inserted into this table during execution of a data definition statement, this value is name of pending option
OPTION-VALUE VARCHAR(4000) If row is inserted into this table during execution of a data definition statement, this value is name of pending option
OPTION_SEQNO SMALLINT The sequence of the pending option within the statement
CREATEDTS TIMESTAMP(12) Timestamp in the pending option was created
RELCREATED CHAR(1) The release of DB2 that is used to create the object
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
ROWID ROWID ID to support LOB columns for source text
STATEMENT_

TEXT

CLOB(2M) Source text of the original statement for the pending option
COLNAME VARCHAR(128) Name of the column of the pending definition change
PARTITION SMALLINT Partition number for partition with pending definition change. 0 of pending change is for entire table space or index space
PARTITION_

KEYWORD

VARCHAR(18) Column is populated if PARTITION column has a non-zero value. The keyword that is associated with the PARTITION clause of the ALTER TABLE statement
COLUMN_

KEYWORD

VARCHAR(18) Contains the keyword that corresponds to the column that is listed in COLNAME
REORG_SCOPE_

LOWPART

SMALLINT Logical partition number for lowest partition in range for REORG to materialize change
REORG_SCOPE_

HIGHPART

SMALLINT Logical partition number for highest partition in range for REORG to materialize change

SYSIBM.SYSPENDINGOBJECTS

Contains the name of and OBID informationa about objects that are the pending creation

Column name Data type Description
DBNAME VARCHAR(24) Name of the database
TSNAME VARCHAR(24) Name of the data table space
DBID SMALLINT Internal identifier of the database
PSID SMALLINT Internal identifier of the base table space page set descriptor
PARTITION SMALLINT Partition number with which the object is associated
COLNAME VARCHAR(128) Name of column contained in base table space with which object is associated
OBJSCHEMA VARCHAR(128) Qualifier of the object
OBJNAME VARCHAR(128) Name of the object
OBJTYPE CHAR(1) Type of object identified by OBJSCHEMA and OBJNAME

I  Index

S  Table space

T  Table

INDEXSPACE VARCHAR(24) Name of index space. Empty string if object is not an index
OBJOBID SMALLINT Internal identifier of the object
OBJPSID SMALLINT Internal identifier of the object page set descriptor, or 0 if the object does not have a page set descriptor

SYSIBM.SYSPKSYSTEM

Contains zero or more rows for every package

Column name Data type Description
LOCATION VARCHAR(128) Always contains blanks
COLLID VARCHAR(128) Name of the package collection
NAME VARCHAR(128) Name of the package
CONTOKEN CHAR(8) Consistency token for the package
SYSTEM VARCHAR(24) Environment. Values can be:

BATCH     TSO batch

CICS      Customer Information Control System

DB2CALL   DB2 call attachment facility

DLIBATCH  DLI batch support facility

IMSBMP    IMS BMP region

IMSMPP    IMS MPP and IFP region

REMOTE    remote application server

ENABLE CHAR(1) Connections represented by the row are enabled or disabled:

N  Disabled

Y  Enabled

CNAME VARCHAR(60) Identifies connection or connections to each row applies
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSPLAN

Contains one row for each application plan

Column name Data type Description
NAME VARCHAR(24) Name of the application plan
CREATOR VARCHAR(128) Authorization ID of the owner of the application plan
CHAR(6) Not used
VALIDATE CHAR(1) Whether validity checking can be deferred until run time:

B   All checking must be performed during bind

R   Validation is done at run time for tables, views, and privileges that do not exist at bind time

ISOLATION CHAR(1) Isolation level for the plan:

R    RR (repeatable read)

T    RS (read stability)

S    CS (cursor stability)

U    UR (uncommitted read)

VALID CHAR(1) Whether the application plan is valid:

A    ALTER TABLE changed the description of the table or base table of a view that is referred to by the plan

H    ALTER TABLE changed the description of the table or base table of a view that is referred to by the plan

N    No

Y    Yes

OPERATIVE CHAR(1) Whether the application plan can be allocated:

N   No, an explicit BIND or REBIND is required before the plan can be allocated

Y   Yes

CHAR(9) Not used
PLSIZE INTEGER Size of the base section of the plan, in bytes
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
AVGSIZE INTEGER Average size, in bytes, of those sections of the plan that contain SQL statements processed at bind time
ACQUIRE CHAR(1) When resources are acquired:

A  At allocation

U  At first use

RELEASE CHAR(1) When resources are released:

C  At commit

D  At deallocation

EXPLAIN CHAR(1) EXPLAIN option specified for the plan

N  No

Y  Yes

EXPREDICATE CHAR(1) CURRENTDATA option when the plan was bound or rebound:

B  Data currency is not required for ambiguous cursors. Allow blocking for ambiguous cursors

C  Data currency is required for ambiguous cursors. Inhibit blocking for ambiguous cursors

N  Blocking is inhibited for ambiguous cursors, but plan was created before the CURRENTDATA option was available

BOUNDBY VARCHAR(128) Primary authorization ID of the binder of the plan
QUALIFIER VARCHAR(128) Implicit qualifier for the unqualified table, view, index, and alias names in the static SQL statements of the plan
CACHESIZE SMALLINT Size, in bytes, of cache to be acquired for the plan. 0 indicates that no cache is used
PLENTRIES SMALLINT Number of package list entries for the plan
DEFERPREP CHAR(1) Package was last bound with the DEFER(PREPARE) option:

N  No

Y  Yes

CURRENT_

SERVER

VARCHAR(128) Location name specified with the CURRENTSERVER option when the plan was last bound
SYSENTRIES SMALLINT Number of rows associated with the plan in SYSPLSYSTEM
DEGREE CHAR(3) Degree option used when the plan was last bound:

ANY         DEGREE(ANY)

1 or blank  DEGREE(1). Blank if the plan was migrated

SQLRULES CHAR(1) SQLRULES option used when the plan was last bound:

D or blank   SQLRULES(DB2)

S            SQLRULES(STD)

Blank        A migrated plan

DISCONNECT CHAR(1) DISCONNECT option used when the plan was last bound:

E or blank   DISCONNECT (EXPLICIT)

A            DISCONNECT (AUTOMATIC)

C            DISCONNECT (CONDITIONAL)

blank        A migrated plan

GROUP_MEMBER VARCHAR(24) Member name of subsystem that performed most recent bind
DYNAMICRULES CHAR(1) DYNAMICRULES option used when the plan was last bound:

B     Bind

R     Run

BOUNDTS TIMESTAMP Time when the plan was bound
REOPTVAR CHAR(1) Whether the access path is determined again at execution time using input variable values:

A     REOPT(AUTO)

N    REOPT(NONE)

Y    REOPT(ALWAYS)

1    REOPT(ONCE)

KEEPDYNAMIC CHAR(1) Prepared dynamic statements are to be purged at each commit

N   KEEPDYNAMIC(NO)

Y   KEEPDYNAMIC(YES)

PATHSCHEMAS VARCHAR(254) SQL path specified on the BIND or REBIND command that bound the plan
DBPROTOCOL CHAR(1) Whether remote access for SQL with three-part names as implement with DRDA or DB2 private protocol access:

D    DRDA

P    DB2 private protocol

FUNCTIONTS TIMESTAMP Timestamp when the function was resolved. Set by the BIND and REBIND commands but not by AUTOBIND
OPTHINT CHAR(8) Value of the OPTHINT bind option. Identifies rows in the authid.PLAN_TABLE to be used as input to the optimizer. Blank if no rows in the authid.PLAN_TABLE are to be used as input
ENCODING_

CCSID

INTEGER CCSID corresponding to encoding scheme or CCSID as specified for bind option ENCODING.

CCSID      Specified or derived CCSID

0          EBCDIC default CCSID as specified on panel DSNTIPF at installation time

IMMEDWRITE CHAR(1) When writes of updated group bufferpool dependent pages are to be done. Applicable only for data sharing environments.

N      IMMEDWRITE(NO) – normal write activity is done

Y      IMMEDWRITE(YES) – immediate writes are done for updated group buffer pool dependent pages

1      IMMEDWRITE(PH1) – updated bufferpool dependent pages are written at or before phase 1 commit

Blank  A migrated package

RELBOUND CHAR(1) The release when the packages was bound or rebound.

blank     Bound prior to V7

K         Bound on V7

L         Bound on V8

REMARKS VARCHAR(128) A character string provided by the user with COMMENT
CREATORTYPE CHAR(1) Indicator the type of creator

blank  Authorization ID

L      Role

ROUNDING CHAR(1) The ROUNDING option used when the plan was last bound:

C    ROUND_CEILING

D    ROUND_DOWN

F    ROUND_FLOOR

G    ROUND_HALF_DOWN

E    ROUND_HALF_EVEN

H    ROUND_HALF_UP

U    ROUND_UP

Blank   Plan was created prior to V9

DATE Not used
CONCUR_ACC_

RES

CHAR(1) CONCURRENTACCESSRESOLUTION option when the package was bound or rebound:

blank  Not specified

N      WAITFOROUTCOME

Y      USECURRENTLYCOMMITTED

PROGAUTH CHAR(1) DB2 checks if a program is authorized to run a plan:

D   DISABLE

E   ENABLE

SYSIBM.SYSPLANAUTH

Records the privileges that are held by users over application plans

Column name Data type Description
GRANTOR VARCHAR(128) Authorization ID of user who granted privileges
GRANTEE VARCHAR(128) Authorization ID of user who holds privileges. Could be PUBLIC
NAME VARCHAR(24) Name of the application plan on which the privileges are held
AUTHOWGOT CHAR(1) Authorization level of the user from whom the privileges were received. Not necessarily highest authorization level of grantor.

Blank   Not applicable

C       DBCTL

D       DBADM

E       SECADM

G       ACCESSCTRL

L       SYSCTRL

M       DBMAINT

S       SYSADM

BINDAUTH CHAR(1) GRANTEE can use the BIND, REBIND, or FREE subcommands against the plan:

blank    Privilege not held

G        Privilege is held with the GRANT option

Y        Privilege is held without the GRANT option

EXECUTEAUTH CHAR(1) GRANTEE can run application programs that use the plan:

blank    Privilege not held

G        Privilege is held with the GRANT option

Y        Privilege is held without the GRANT option

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
GRANTEETYPE CHAR(1) Indicates the type of grantee:

blank  Authorization ID

L      Role

GRANTORTYPE CHAR(1) Indicates the type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with the most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

  SYSIBM.SYSPLANDEP

Dependencies of plans on tables, views, aliases, tablespaces, indexes, functions and procedures.

Column name Data type Description
BNAME VARCHAR(128) The name of an object the plan depends on
BCREATOR VARCHAR(128) If BNAME is a tablespace, its database
BTYPE CHAR(1) Type of object identified by BNAME:

A    Alias

E    INSTEAD OF trigger

F    User-defined function or cast function

I    Index

L    Role

M    Materialized query table

O    Stored procedure

P    Partitioned table space if it is defined as LARGE or with the DSSIZE parm

Q    Sequence object

R    Tablespace

S    Synonym

T    Table

V    View

DNAME VARCGHAR(24) Name of plan
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSPLSYSTEM

Each row represents one or more connections to an environment in which plan could be used

Column name Data type Description
NAME VARCHAR(24) Name of the plan
SYSTEM VARCHAR(24) Environment. Values can be:

BATCH      TSO batch

DB2CALL    DB2 call attachment facility

CICS       Customer Information Control System

DLIBATCH   DLI batch support facility

IMSBMP     IMS BMP region

IMSMPP     IMS MPP or IFP region

ENABLE CHAR(1) Connections represented by the row are enable or disabled:

N  Disabled

Y  Enabled

CNAME VARCHAR(60) Connection or connections to which the row applies
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSQUERY

Contains one row for each query in a set of queries

Column name Data type Description
QUERYID BIGINT Unique identifier for the query
QUERY_HASH CHAR(16) Hash key generated by statement text
SCHEMA VARCHAR(128) Default schema name for unqualified object in query or blank
QUERY_SEC_

HASH

CHAR(16) Hash key generated by the modified statement text
QUERY_HASH_

VERSION

INTEGER Version of the query hash

 

SOURCE SMALLINT The source of the query:

0  Instance-level plan hint

1  Plan stability static

2  Plan stability dynamic

USERFILTER CHAR(8) Filter name that is used to group a set of queries or blank
CHAR(128) Internal use only
PLAN_VALID CHAR(1) Whether plan hints are valid:

blank  No plan hint exists for statement, but optimization

Y      Plan hint exists in SYSQUERYPLAN for the statement

N      Plan hint exists in SYSQUERYPLAN, but is invalid and not used

INVALID_

REASON

INTEGER When PLAN_VALID is N, contains reason code. -1, if PLAN_VALID is Y or blank
VARCHAR(128) Not used
COLLECTION VARCHAR(128) Name of the collection of the originating query or blank
PACKAGE VARCHAR(128) Name of the package of the originaing query or blank
VERSION VARCHAR(128) Version of the package of blank
AUTHID VARCHAR(128) Authorisation ID in effect when the query was captured or blank
BINDTIME TIMESTAMP Timestamp when package was bound or BIND QUERY was run
STMTNO INTEGER When SOURCE is 1, the statement number in the package. When SOURCE is 0 or 2, is -1
SECTNO INTEGER When SOURCE IS 1, section number in the package. When SOURCE is 0 or 2, is -1
STMTTEXT CLOB(2M) Text of SQL statement optimization hint or parameter applies to
QUERYNO INTEGER Query number
CLIENT_

USERID

VARCHAR(255) User ID of the client

 

CLIENT_

WRKSTNNAME

VARCHAR(255) Name of the client workstation

 

CLIENT_

APPLNAME

VARCHAR(255) Name of the client application

 

SELECTIVITY_

OVERRIDE

CHAR(1) Selectivity override in effect for the query:

Y  In effect

N  Not in effect

ACCESSPATH_

HINT

CHAR(1) Access paths are specified for matching statements:

Y   Is specified and in effect

N   Is not specified and in effect

blank might be specified. Must query SYSQUERYPLAN to determine whether an access path is specified

OPTION_

OVERRIDE

CHAR(1) Optimization parameters are in effect for matching statements:

Y   Are in effect

N   Not in effect

blank Might be in effect. Must query SYSQUERYOPTS catalog table to determine whether option override are in effect

 

SELECTIVITY_

VALID

CHAR(1) Selectivity overrides are valid:

blank  None exist for the statement

Y      Overrides exist for query. Are valid if statement has already been executed and overrides were used

N      Overrides exist but are invalid and not used

FUNCTION_LVL VARCHAR(10) Function level of the query when row was inserted

SYSIBM.SYSQUERYPREDICATE

Information about preicates for queries in SYSQUERY identified for extended optimization

Column name Data type Description
QUERYID BIGINT Unique identifier for the query
QUERYNO INTEGER A number identifying statement being explained
QBLOCKNO SMALLINT A number that identifies each query block within a query. Not in any particular order, nor are they necessarily consecutive
APPLNAME VARCHAR(24) Name of plan
POGNAME VARCHAR(128) Name of program ora package containing the statement been explained
PREDNO INTEGER Predicate number – used to identify a predicate within a query
TYPE CHAR(8) Predicate type. The possible values are:

AND, OR EQUAL, RANGE, BETWEEN, IN, LIKE, NOT LIKE, EXISTS, NOTEXIST, SUBQUERY, HAVING, OTHERS

LEFT_HAND_

SIDE

VARCHAR(128) If LHS of predicate is a table column (LHS_TABNO>0), indicates the column name. Other possible values are:

VALUE, COLEXP, NONCOLEXP, CORSUB, NONCORSUB, SUBQUERY, EXPRESSION

Blank

LEFT_HAND_

PHO

INTEGER If LHS of predicate is a table column (LHS_TABNO>0), indicates the column name. Other possible values are:

VALUE, COLEXP, NONCOLEXP, CORSUB, NONCORSUB, SUBQUERY, EXPRESSION

Blank

LHS_TABNO SMALLINT If LHS of predicate is a table column, indicates a number which uniquely identifies corresponding table reference within a query
LHS_QBNO SMALLINT If LHS of predicate is a table column, indicates a number which uniquely identifies corresponding table reference within a query
RIGHT_HAND_

SIDE

VARCHAR(128) If RHS of the predicate is a table column (RHS_TABNO>0), then indicates the column name. Other possible values are:

VALUE, COLEXP, NONCOLEXP, CORSUB, NONCORSUB, SUBQUERY, blank

RIGHT_HAND_

PNO

INTEGER If predicate is a compound predicate (AND/OR), then indicates the second child predicate
PHS_TABNO SMALLINT If RHS of predicate is a table column, indicates a number which uniquely identifies corresponding table reference within a query
RHS_QBNO SMALLINT If RHS of predicate is a subquery, indicates a number which uniquely identifies the corresponding query block within a query
FILTER_FACTOR FLOAT The estimated filter factor
BOOLEAN_TERM CHAR(1) Whether predicate can be used to determine truth value of the whole WHERE clothes
SEARCHARG CHAR(1) Whether this predicate can be processed by data manager (DM)
JOIN CHAR(1) If predicate can be used as join predicate between two tables
AFTER_JOIN CHAR(1) Indicates the predicate evaluation phase:

‘A’ After join

‘D’ During join

blank Not applicable

ADDED_PRED CHAR(1) Whether it is generated by transitive closure
REDUNDANT_

PRED

CHAR(1) Whether it is a redundant predicate
DIRECT_ACCESS CHAR(1) Whether the predicate is direct access, which means one can navigate directly to the row through ROWID
KEYFIELD CHAR(1) Whether the predicate includes index key column of the involved table for all applicable indexes considered by DB2
EXPLAIN_TIME TIMESTAMP The time when the EXPLAIN information was captured:

All cached statements When the statement entered the cache

Non-cached static statements – When the statement was bound

Non-cached dynamic statements – When EXPLAIN executed

CATEGORY SMALLINT Internal use
CATEGORY_B SMALLINT Internal use
TEXT VARCHAR(2000 Transformed predicate text; truncated if exceeds 2000 characters
PRED_ENCODE CHAR(1) Internal use
PRED_CCSID SMALLINT Internal use
PRED_MCCSID SMALLINT Internal use
MARKET CHAR(1) Whether predicate includes host variables, parameter markers, or special registers
PARENT_PNO INTEGER Parent predicate number. If this predicate is a root predicate within a query block, then this column is 0
NEGATION CHAR(1) Whether this predicate is negated via NOT
LITERALS VARHAR(128) Indicates literal value or literal values separated by colon symbols
CLAUSE CHAR(8) The clause where the predicate exists:

HAVING   HAVING clause

ON       ON clause

WHERE    WHERE clause

SELECT   SELECT clause

GROUP_MEMBER VARCHAR(24) Member name of DB2 that executed EXPLAIN. Blank if subsystem was not in a data sharing when EXPLAIN was executed
ORIGIN CHAR(1) Indicates the origin of the predicate

Blank   Generated by DB2

C       Column mask

R       Row permission

U       Specified by the user

UNCERTAINTY FLOAT(4) Describe uncertainty factor of a predicate’s estimated filter factor
SECTNOI INTEGER Section number of statement
COLLID VARCHAR(128) The collection ID
VERSION VARCHAR(122) Version identifier for package

SYSIBM.SYSQUERYSEL

Selectivity of predicates for queries in SYSQUERY table identified for extended optimization

Column name Data type Description
QUERYID BIGINT Unique identifier for the query
QUERYNO INTEGER A number that identifies the statement that is being explained
QBLOCKNO SMALLINT A number that identifies each query block within a query
APPLNAME VARCHAR(24) Name of plan for row
PROGNAME VARCHAR(128) Program or package containing statement being explained
PREDNO INTEGER Identifies predicate
INSTANCE SMALLINT Selectivity instance, which is used to group related selectivities
SELECTIVITY FLOAT Selectivity of the predicate
WEIGHT FLOAT Weight of selectively instance
ASSUMPTION VARHCAR(128) Indicates how the selectivity was estimated, or will be used

NORMAL – Estimated using the normal selectivity assumptions

OVERRIDE –  To be as input Optimizer and override it’s selectivity estimation

INSERT_TIME TIMESTAMP Time when the row was inserted
EXPLAIN_TIME TIMESTAMP Time when the EXPLAIN information was captured

All cached statements – When statement entered cache Non-cached static statements When the statement was bound

Non-cached dynamic statements – When EXPLAIN executed

 SYSIBM.SYSQUERY_AUX

An auxiliary table for the STMTTEXT column of the SYSIBM.SYSQUERY table

Column name Data type Description
STMTTEXT CLOB(2M) The full text of the query

SYSIBM.SYSQUERYOPTS

Contains optimization parameters for the queries that are in SYSIBM.SYSQUERY

Column name Data type Description
QUERYID BIGINT Unique identifier for the query. Corresponds to QUERYID column in SYSQUERY table
COPYID SMALLINT Version of the plan hints for the query in this row

0   Current version of plan hints

1   Previou version of the plan hints used by PLAN STABILITY

2   Original version of the plan hints used by PLAN STABILITY

REOPT CHAR(1) Value of the REOPT bind option that is in effect for the plan:

1    REOPT(ONCE)

A    REOPT(AUTO)

N    REOPT(NONE)

Y    REOPT(ALWAYS)

Blank REOPT is not specified

STARJOIN CHAR(1) Whether star join is enabled:

Y     Star join is enabled

N     Star join is disabled

blank Star join is not specified

MAX_PAR_

DEGREE

INTEGER Maximum parallel degree. Value between 0 and 254. If value of column is -1, maximum parallel degree is not specified
DEF_CURR_

DEGREE

CHAR(3) Whether query parallelism is enabled:

ONE    Query parallelism is disabled

ANY    Query parallelism is enabled

blank  Query parallelism is disabled

SJTABLES INTEGER Number of tables specified to qualify for star join processing
VARCHAR(128) Internal use only
GROUP_MEMBER VARCHAR(24) Group member name to which parameters are to be applied
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSQUERYPLAN

Plan hint information for queries in SYSIBM.SYSQUERY table

Column name Data type Description
QUERYID BIGINT Unique identifier for query. Corresponds to the query column in SYSQUERY table
COPYID SMALLINT Version of the plan hints for the query in this row

0    Current version plan hints

1    Previous version of plan hints used by PLAN STABILITY

2    Original version of plan hints used by PLAN STABILITY

PLAN_VALID CHAR(1) Whether the plan hints are valid:

N  Invalid

Y  Valid

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
QBLOCKNO SMALLINT A number that identifies each query block within a query. Value of numbers are not in any particular order, or consecutive
PLANNO SMALLINT Number of steps in which query that is indicated in QBLOCKNO was processed. Indicates order in which steps were executed
METHOD SMALLINT Indicates the join method used for the step:

0 = First table accessed, continuation of previous table accessed, or not used

1 = Nested loop join

2 = Merge scan join

3 = Sorts needed by ORDER BY, GROUP BY, SELECT DINSTINCT, UNION, a quantified predicate, or an IN predicate. T.

4 = Hybrid join

CREATOR VARCAHR(128) Creator of new table accessed in this step; blank if METHOD is 3
TNAME VARCHAR(128) Name of a table, materialized query table, created or declared temporary table, materialized view, or materialized table expression
SMALLINT IBM use only
ACCESSTYPE CHAR(2) Method accessing new table:

DI= Intersection of multiple DOCID lists to return final DOCID list

DU= Union of multiple DOCID lists to return the final day DOCID list

DX= XML index scan of index in ACCESSNAME to return a DOCID list

E= Direct row using a row change timestamp column

H= Hash access. IF an overflow condition occurs, hash overflow index in ACCESSCREATOR and ACCESSNAME is used

HN= Hash access using an IN predicate

IN= Index scan when matching predicate contains an IN predicate and IN-list is accessed through an in-memory table

I= Index (identified in ACCESSCREATOR and ACCESSNAME)

I1=  One-fetch index scan

M= Multiple index scan (followed by MX, MI, MH, or MU)

MH= Hash overflow index named in ACCESSNAME

MX= Index scan on index in ACCESSNAME. When the access method MX follows the access method DX, DI, or DU, the table is accessed by the DOCID index using the DOCID list returned by DX, DI, or DU

MI= Intersection of multiple indexes

MU= Union of multiple indexes

N= Index scan when matching predicate contains IN keyword or by an index scan when DB2 rewrites a query using IN keyword

NR= Range list access

O= Work file scan, as a result of a subquery

P= Dynamic pair-wise index scan

R= Table space scan

RW= Work file scan of a result of a materialized user-defined table function

V= Buffers for an INSERT statement within a SELECT

Blank= Not applicable to the current row

MATCHCOLS SMALLINT For ACCESSTYPE I, I1, N, NR, MX or DX, number of index keys used in an index scan; otherwise 0
ACCESSCREATOR VARCHAR(128) For ACCESSTYPE I, I1, N, NR, MX or DX, the creator of the index; otherwise, blank
ACCESSNAME VARCHAR(128) For ACCESSTYPE I, I1, H, MH, N, NR, MX or DX, the name of the index: for ACCESSTYPE P, DSNPJW (mixopseqno) is the starting pair-wise join leg in MIXOPSEQNO; otherwise, blank
INDEXONLY CHAR(1) Whether access to an index alone is enough to carry out the step, or whether data, too, must be accessed. Y=Yes; N=No
SORTN_UNIQ CHAR(1) If new table is sorted to remove duplicate rows. Y=Yes; N=No
SORTN_JOIN CHAR(1) If new table is sorted for join method 2 or 4. Y=Yes; N=No
SORTN_ORDERBY CHAR(1) If new table is sorted for ORDERBY. Y=Yes; N=No
SORTN_GROUPBY CHAR(1) If new table is sorted for GROUPBY. Y=Yes; N=No
SORTC_UNIQ CHAR(1) If composite table is sorted to remove duplicate. Y=Yes; N=No
SORTC_JOIN CHAR(1) If composite table is sorted for join method 1, 2 or 4. Y=Yes; N=No
SORTC_ORDERBY CHAR(1) If composite table is sorted for an ORDERBY clause or a quantified predicate. Y=Yes; N=No
SORTC_GROUPBY CHAR(1) If composite table is sorted for a GROUPBY clause. Y=Yes; N=No
TSLOCKMODE CHAR(3) An indication of the mode of lock to be acquired on the new table or its table space or table space partitions. If the isolation can be determined at bind time, the values are:

IS = Intent share lock

IX = Intent exclusive lock

S = Share lock

U = Update lock

X = Exclusive lock

SIX = Share with intent exclusive lock

N = UR isolation, no lock

If the isolation cannot be determined at bind time, the lock mode determined by the isolation at runtime is shown by the following values.

NS=For UR isolation, no lock; for CS, RS or RR, an S lock

NIS=For UR isolation, no lock; for CS, RS or RR, an IS lock

NSS=For UR isolation, no lock; for CS or RS, an IS lock; for RR, an S lock

SS=For UR,CS or RS isolation, an IS lock; for RR, an S lock

PREFETCH CHAR(1) Weather data pages are to be read in advance by prefetch:

D = Optimizer expects dynamic prefetch

S = Pure sequential prefetch

L = Prefetch through a page list

U = List prefetch with an unsorted RID list

Blank = unknown at bind time or no prefetch

COLUMN_FN_

EVAL

CHAR(1) When a SQL aggregate function is evaluated:

R = While the data is being read from the table or index

S = While performing a sort to satisfy a GROUP BY clause

Blank =  After a data retrieval after any sorts

MIXOPSEQ SMALLINT Sequence number of a step in a multiple index operation:

1, 2,…n = steps of multiple index procedure (ACCESSTYPE is MX, MI, MU, DX, DI, or DU), sequence number of OR predicate in SQL statement (ACCESSTYPE is NR)

0 = For any other rows

ACCESS_DEGREE SMALLINT Number of parallel tasks or operations activated by query
ACCESS_PGROUP

_ID

SMALLINT Identifier of the parallel group for accessing the new table
JOIN_DEGREE SMALLINT Number of parallel operations or tasks used in joining a composite table with new table
JOIN_PGROUP_

ID

SMALLINT Identifier of parallel group for joining composite table with new table
SORTC_PGROUP_

ID

SMALLINT Parallel group identifier for parallel sort of the composite table
SORTN_PGROUP_

ID

SMALLINT Parallel group identifier for the parallel sort of the new table
PARALLELISM_

MODE

CHAR(1) The kind of parallelism, if any, that is used at bind time:

C=Query CP parallelism

MERGE_JOIN_

COLS

SMALLINT Number of columns joined during merge scan join (Method=2)
CORRELATION_

NAME

VARCHAR(128) Correlation name of a table or view specified in the statement
PAGE_RANGE CHAR(1) If table qualifies for page range screening, so that plans scan only the partitions that are needed. Y=Yes; blank=No
JOIN_TYPE CHAR(1) The type of an outer join:

F = Full outer join

L = Left outer join

P = Pair-wise join

S = Star join

Blank = Inner join or no join

RIGHT OUTER JOIN coverts to a LEFT OUTER JOIN when you use it, so that JOIN_TYPE contains L

QBLOCK_TYPE CHAR(6) For each query block, the type of SQL operation performed. For the outermost query, the column identifies a statement type. Possible values:

SELECT = SELECT

INSERT = INSERT

UPDATE = UPDATE

MERGE = MERGE

DELETE = DELETE

SELUPD = SELECT with FOR UPDATE OF

DELCUR = DELETE WHERE CURRENT OF CURSOR

UPDCUR = UPDATE WHERE CURRENT OF CURSOR

CORSUB = Correlated subquery

TRUNCA = TRUNCATE

NCOSUB = Noncorrelated subquery

TABLEX = Table expression

TRIGGR = WHEN clause on CREATE TRIGGER

UNION = UNION

UNIONA = UNION ALL

INTERS = INTERSECT

INTERA = INTERSECT ALL

EXCEPT = EXCEPT

EXCEPTA = EXCEPT ALL

PRIMARY_

ACCESSTYPE

CHAR(1) Indicates whether direct row access will be attempted first:

D = DB2 will try to use direct row access

T = Base table or result file is materialized into a work file, and work file is accessed via sparse index access

PARENT_QBLOCK SMALLINT Number that indicates QBLOCKNO of the parent query block
TABLE_TYPE CHAR(1) The type of new table:

B = Buffers for SELECT from INSERT, SELECT from UPDATE, SELECT from MERGE, or SELECT from DELETE statement

C = Common table expression

F = Table function

I = New table is generated from an IN-LIST predicate

M = Materialized query table

Q = Temporary intermediate result table (not materialized)

R = Recursive common table expression

S = Subquery (correlated or non-correlated)

T = Table

W = Work file

Value of column is null if the query uses GROUP BY, ORDER BY, or DISTINCT, which requires an implicit sort

TABLE_ENCODE CHAR(1) Encoding scheme of table. If table has a single CCSID set, possible values are:

A = ASCII

E = EBCDIC

U = UNICODE

M = The table contains multiple CCSID sets

TABLE_SCCSID SMALLINT SBCS CCSID value of table. If TABLE_ENCODE is M, Value 0
TABLE_MCCSID SMALLINT Mixed CCSID value of table. If TABLE_ENCODE is M, value is 0. If MIXED=NO in application defaults module, value is -2
TABLE_DCCSID SMALLINT DBCS CCSID value of table. If TABLE_ENCODE is M, value is 0. If MIXED=NO in application defaults module, value is -2
CTREF SMALLINT If reference table is a common table expression, value is top-level query block number
PARENT_PLANNO SMALLINT Corresponds to the plan number in parent query block where a correlated subquery is involved
EXPANSION_

REASON

SMALLINT Applies to only static statements that reference archive tables or temporal tables.

For dynamic statements, this is blank. For static statements:

A   Bound with implicit query transformation as a result of SYSIBMADM.GET_ARCHIVE built-in global variable

B   Bound with implicit query transformation as a result of the CURRENT TEMPORAL BUSINESS_TIME

S   Bound with implicit query transformation as a result of the CURRENT TEMPORAL SYSTEM_TIME

SB  Bound with implicit query transformation as a result of CURRENT TEMPORAL SYSTEM_TIME register and CURRENT TEMPORAL BUSINESS_TIME

Blank Statement does not contain implicity query transformation

SYSIBM.SYSRELS

Contains one row for every referential constraint

Column name Data type Description
CREATOR VARCHAR(128) Schema of owner of dependent table of the referential constraint
TBNAME VARCHAR(128) Name of the dependent table of the referential constraint
RELNAME VARCHAR(128) Constraint name
REFTBNAME VARCHAR(128) Name of the parent table of the referential constraint
REFTBCREATOR VARCHAR(128) Schema of the owner of the parent table
COLCOUNT SMALLINT Number of columns in the foreign key
DELETERULE CHAR(1) Type of delete rule for the referential constraint:

A   NO ACTION

C   CASCADE

N   SET NULL

R   RESTRICT

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
RELOBID1 SMALLINT Internal identifier of constraint with respect to database containing parents table
RELOBID2 SMALLINT Internal identifiers of constraint with respect to database that contains dependent table
TIMESTAMP TIMESTAMP Date and time constraint was defined
IXOWNER VARCHAR(128) Schema of unique non-primary index used for parent key
IXNAME VARCHAR(128) Name of unique non-primary index used for a parent key
ENFORCED CHAR(1) Enforced by the system or not:

Y  Enforced by the system

N  Not enforced by the system(trusted)

CHECKEXISTING

DATA

CHAR(1) Option for checking existing data

I  Immediately check existing data

N  Never check existing data

T  Immediately check existing data for a temporal referential constraint

RELCREATED CHAR(1) Release of DB2 that is used to create the object

SYSIBM.SYSREAUTH

Records CREATE IN and PACKADM ON privileges for collections; USAGE privileges for distinct types; and USE privileges for buffer pools, storage groups and tablespaces

Column name Data type Description
GRANTOR VARCHAR(128) Authorization ID of the user who granted the privilege
GRANTEE VARCHAR(128) authorization ID of the user who holds the privilege.Could be PUBLIC
QUALIFIER VARCHAR(128) Qualifier of object
NAME VARCHAR(128) Name of buffer pool, collection, DB2 storage group, distinct type, or tablespace ALL if USE OF ALL BUFFERPOOLS is granted
AUTHHOWGOT CHAR(1) Authorization level of user from whom privileges were received. Level not necessarily highest authorization level of the grantor.

Blank   Not applicable

A      PACKADM (on collection*)

C      DBCTL

D      DBADM

E      SECADM

G      ACCESSCTRL

L      SYSCTRL

M      DBMAINT

S      SYSADM

P      PACKADM (on a specific collection)

T      DATAACCESS

OBTYPE CHAR(1) Type of object:

B     Buffer pool

C     Collection

D     Distinct type

R     Tablespace

S     Storage group

J     JAR (Java Archive file)

USEAUTH CHAR(1) Whether the privilege is held with the GRANT option:

G   Privilege is held with the GRANT option

Y   Privilege is held without the GRANT option

Authority held is PACKADM when OBTYPE is C (a collection) and QUALIFIER is PACKADM. Authority held is CREATE IN when the OBTYPE is C and QUALIFIER is blank

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
GRANTEETYPE CHAR(1) Indicates the type of grantee:

blank  Authorization ID

L      Role

GRANTORTYPE CHAR(1) Indicates type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time was deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSROLES

Contains one row for each role

Column name Data type Description
NAME VARCHAR(128) Name of the role
DEFINER VARCHAR(128) Auth ID or role that defined this role listed in the NAME column
DEFINERTYPE CHAR(1) Type of definer:

L      Role

Blank  Authorization ID

CREATEDTS TIMESTAMP Time when the role is created
RELCREATED CHAR(1) Release of DB2 that is used to create the role
REMARKS VARCHAR(762) A character string that is provided using COMMENT statement
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSROUTINEAUTH

Privileges held by users on routines. (UDF, cast function, or stored procedure)

Column name Data type Description
GRANTOR VARCHAR(128) Authorization ID of the user who granted the privilege
GRANTEE VARCHAR(128) Authorization ID of the user who holds the privilege or the name of a plan or package that uses the privilege. Can also be PUBLIC
SCHEMA VARCHAR(128) Schema of the routine
SPECIFICNAME VARCHAR(128) Specific name of routine. * if privilege held on all routines in schema
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
ROUTINETYPE CHAR(1) Type of routine:

F    User-defined functions or cast function

P    Stored procedure

GRANTEETYPE CHAR(1) Type of grantee:

blank    An authorization ID

L        Role

P        Plan or package. Package of COLLID is not blank

R        Internal use only

AUTHHOWGOT CHAR(1) Authorization level of user from privileges were received. Not necessarily highest authorization level of grantor. Also used to indicate that the privilege was held on all schemas by grantor.

blank    Not applicable

1        Grantor had privilege on schema.* at time of grant

E        SECADM

G        ACCESSCTRL

L        SYSCTRL

S        SYSADM

T        DATAACCESS

EXECUTEAUTH CHAR(1) GRANTEE can execute the routine:

Y   Privilege is held without GRANT option

N   Privilege is held with GRANT option

COLLID VARCHAR(128) If GRANTEE is a package, it’s collection name. Otherwise, blank
CONTOKEN CHAR(8) If GRANTEE is a package, consistency token of DBRM from which package was derived. Otherwise, blank
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
GRANTORTYPE CHAR(1) Indicates the type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSROUTINES

Contains a row for every routine (User-defined function, cast function, or stored procedure)

Column name Data type Description
SCHEMA VARCHAR(128) Schema of the routine
OWNER VARCHAR(128) Owner of the routine
NAME VARCHAR(128) Name of the routine
ROUTINETYPE CHAR(1) Type of routine:

F    User-defined function or cast function

P    Store procedure

CREATEDBY VARCHAR(128) Primary auth ID under which the routine was created
SPECIFICNAME VARCHAR(128) Specific name of the routine
ROUTINEID INTEGER Internal identifier of the routine
RETURN_TYPE INTEGER Internal identifier of result data type of function. -2 if function is a table function
ORIGIN CHAR(1) Origin of the routine:

E External user-defined function or stored procedure

N Native SQL procedure

Q SQL function

U Sourced on user-defined function of built-in function

S System-generated function

FUNCTION_

TYPE

CHAR(1) Type of function:

C     Column function

S     Scalar function

T     Table function

blank a stored procedure (ROUTINETYPE=’P’)

PARM_COUNT SMALLINT Number of parameters for the routine
LANGUAGE VARCHAR(24) Implementation language of the routine:

ASSEMBLE

C

COBOL

COMPJAVA

JAVA

PLI

REXX

SQL

Blank if ROUTINETYPE=’F’ and ORIGIN is not ‘E’ or not ‘Q’

COLLID VARCHAR(128) Name of package collection to be used when routine is executed
SOURCESCHEMA VARCHAR(128) If ORIGIN is ‘U’ and ROUTINETYPE is ‘F’, schema of source user-defined function (‘SYSIBM’ for a source built-in function). Otherwise, blank
SOURCE_

SPECIFIC

VARCHAR(128) If ORIGIN is ‘U’ and ROUTINETYPE is ‘F’. specific name of source user-defined function or source built-in function name. Otherwise, blank
DETERMINISTIC CHAR(1) Option of an external functional or stored procedure:

N       Indeterminate (results may differ with a given set of input values)

Y       Deterministic (results are consistent)

Blank  ROUTINETYPE=’F’ and ORIGIN is not ‘E’ (routine is a function, but not an external function)

EXTERNAL_

ACTION

CHAR(1) External action option of an external function:

N     Function has no side effects

E     Function has external side effects so that number of invocations is important

Blank ORIGIN not ‘E’ for function (ROUTINETYPE=’F’), or it is a stored procedure (ROUTINETYPE=’P’)

NULL_CALL CHAR(1) CALLED ON INPUT option of an external function of stored procedure:

N     Routine is not called if any parameter has a NULL value

Y     Routine is called if any parameter has a NULL value

blank ROUTINETYPE=’F’ and ORIGIN is not ‘E’ (routine is a function, but not an external function)

CAST_FUNCTION CHAR(1) Whether the routine is a cast function:

N  Not a cast function

Y  Is a cast function

A cast function is generated by DB2 for a CREATE DISTINCT TYPE statement

SCRATCHPAD CHAR(1) SCRATCHPAD option of an external function:

N    Does not have a SCRATCHPAD

Y    Has a SCRATCHPAD

Blank ORIGIN is not ‘E’ for function (ROUTINETYPE=’F’), or it is a stored procedure (ROUTINETYPE=’P’)

SCRATCHPAD_

LENGTH

INTEGER Length of scratchpad if ORIGIN is ‘E’ for function (ROUTINETYPE=’F’) and NO SCRATCHPAD is not specified. Otherwise, 0
FINAL_CALL CHAR(1) FINAL CALL option of an external function:

N      Final call will not be made to function

Y      Final call will be made to function

blank  ORIGIN is not ‘E’ for function (ROUTINETYPE=’F’), or it is a stored procedure (ROUTINETYPE=’P’)

PARALLEL CHAR(1) PARALLEL option of an external function:

A    Function can be invoked by parallel tasks

D    Function cannot be invoked by parallel tasks

blank  ORIGIN is not ‘E’ for function (ROUTINETYPE=’F’), or it is a stored procedure (ROUTINETYPE=’P’)

PARAMETER_

STYLE

CHAR(1) PARAMETER STYLE option of an external function or stored procedure:

D     DB2SQL

G     GENERAL

N     GENERAL CALL WITH NULLS

J     JAVA

Blank if ORIGIN I not ‘E’ or if LANGUAGE is SQL

FENCED CHAR(1) Y    Routing runs separately from DB2 address space in a WLM managed DB2 address space

Blank ORIGIN is ‘Q’ or ORIGIN is ‘N’

SQL_DATA_

ACCESS

CHAR(1) SQL statements are allowed in an external function or stored procedure:

C      CONTAINS SQL: Only SQL that does not read or modify data is allowed

M      MODIFIES SQL DATA: All SQL is allowed, including SQL that reads or modifies data

N      NO SQL: SQL is not allowed

R      READS SQL DATA: Only SQL that reads data is allowed

Blank  Not applicable

DBINFO CHAR(1) Option of an external function or stored procedure:

N     Parameter will not be passed to external function or stored procedure

Y     Parameter will be passed to external function or stored procedure

Blank ORIGIN is not ‘E’

STAYRESIDENT CHAR(1) Determines whether routine is deleted from memory when routine ends

N     Load module is to deleted from memory after routine terminates

Y     Load module is to remain resident in memory after routine terminates

Blank ORIGIN is not ‘E’

ASUTIME INTEGER Number of CPU service units permitted for any single invocation of this routine
WLM_

ENVIRONMENT

VARCHAR(54) Name of WLM environment used to run this routine
WLM_ENV_FOR_

NESTED

CHAR(1) For nested routine calls, indicates whether address space of calling store procedure or user-defined function is used to run nested stored procedure or UDF:

N     Nested stored procedure or UDF runs in an address space other than specified WLM environment. WLM ENVIRONMENT name was specified.

Y     Nested stored procedure or UDF runs in the environment used by calling stored procedure or UDF. WLM ENVIRONMENT (name,*) was specified

Blank WLM_ENVIRONMENT is blank

PROGRAM_TYPE CHAR(1) Routine runs as a Language Environment main routine or a subroutine:

M    Main routine

S    Subroutine

Blank ORIGIN is not ‘E’

EXTERNAL_

SECURITY

CHAR(1) Specifies auth ID to be used if routine accesses resources protected by an external security product:

D     DB2 – Auth ID associated with WLM stored procedure address space

U     SESSION_USER – Auth ID of SQL user that invoked routine

C     DEFINER – Aut ID of owner of routine

Blank  ORIGIN is not ‘E’

COMMIT_ON_

RETURN

CHAR(1) If ROUTINETYPE=’P’, whether transaction is always to be committed immediately on successful return (non-negative SQLCODE) from stored procedure:

N     Unit of work is to continue

Y     Unit of work is to be committed immediately

If ROUTINETYPE=’F’, the value is blank

RESULT_SETS SMALLINT If ROUTINE=’P’, maximum number of ad hoc results sets that this stored procedure can return. If no ad hoc result exists or ROUTINETYPE=’F’, 0
LOBCOLUMNS SMALLINT If ORIGIN=’E’, number of LOB columns found in parameter list for this UDF. If no LOB columns are found in parameter list or ORIGIN is not ‘E’, 0
CREATEDTS TIMESTAMP Time CREATE statement was executed for routine
ALTEREDTS TIMESTAMP Time last ALTER statement was executed for routine
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
PARM1-30 SMALLINT Internal use only
IOS_PER_INVOC FLOAT Estimated number of I/Os required to execute routine
INSTS_PER_

INVOC

FLOAT Estimated number of machine instructions required to execute routine
INITIAL_IOS FLOAT Estimating number of I/Os performed first time or last time routine is invoked
INITIAL_INSTS FLOAT Estimating number of machine instructions performed first time or last time routine is invoked
CARDINALITY FLOAT Predicted cardinality of routine
RESULT_COLS SMALLINT For a table function, number of columns in result table
EXTERNAL_NAME VARCHAR(762) Path/module/function loaded to execute routine. Blank if ROUTINETYPE=’F’ and ORIGIN is not ‘E’
PARM_

SIGNATURE

VARCHAR(150) Internal use only
RUNOPTS VARCHAR(762) Language environment run-time options for routine.

Blank – installation default Language Environment run-time options are to be used, if ROUTINETYPE=’F’ and ORIGIN is not ‘E’

REMARKS VARCHAR(762) String provided by user with COMMENT ON
JAVA_

SIGNATURE

VARCHAR(3072 Signature of the jar file:

Blank     When PARAMETER STYLE is not JAVA, or if ROUTINETYPE=’F’ and ORIGIN not ‘E’

CLASS VARCHAR(384) Class name contained in the jar file:

Blank    When PARAMETER STYLE is not JAVA, or if ROUTINETYPE=’F’ and ORIGIN not ‘E’

JARSCHEMA VARCHAR(128) Schema of the jar file:

Blank    When PARAMETER STYLE is not JAVA, or if ROUTINETYPE=’F’ and ORIGIN not ‘E’

JAR_ID VARCHAR(128) Name of the jar file:

Blank    When PARAMETER STYLE is not JAVA, or if ROUTINETYPE=’F’ and ORIGIN not ‘E’

SPECIAL_REGS CHAR(1) SPECIAL REGISTER option for a routine:

I     INHERIT SPECIAL REGISTER

D     DEFAULT SPECIAL REGISTER

Blank ROUTINETYPE=’F’ and ORIGIN is not ‘E’ or not ‘Q’

NUM_DEP_MQTS SMALLINT Number of dependant MQTs
MAX_FAILURES SMALLINT Allowable failures for this routine (0-32767)
PARAMETER_

CCSID

INTEGER A CCSDI that specifies how character, graphic, date, time, and timestamp data types for system generated parameters to the routine such as message tokens and DBINFO should be passed

ASCII

EBCDIC

UNICODE

VERSION VARCHAR(122) Version identifier for a native SQL procedure
CONTOKEN CHAR(8) Consistency token for routine. X’20’ if ORIGIN not = ‘N’
ACTIVE CHAR(1) Identifies the active version of the routine:

Y      Active version

N      Not the active version

Blank  ORIGIN not ‘N’ or row was created prior to V9

DEBUG_MODE CHAR(1) Whether or not routine is enabled for debugging:

1  Enabled for debugging and can be debunked in a client debug session using Unified Debugger

0  Not enabled for debugging

N  Can never be enabled for debugging

blank  LANGUAGE is not specified as JAVA, value of ORIGIN not ‘N’, or row was created prior to V9

TEXT_ENVID INTEGER Internal identifier environment
TEXT_ROWID ROWID ID to support LOB columns for source text
TEXT CLOB(2M) Source text of CREATE or ALTER with body for routine
OWNERTYPE CHAR(1) Indicates the type of owner:

blank  Authorization ID

L      Role

PARAMETER_

VARCHARFORM

INTEGER Non-zero value indicates actual representation, to a LANGUAGE C routine, of any varying length string parameter that appears in parameter list or RETURNS
RELCREATED CHAR(1) Release used to create object. Blank if prior to V9
PACKAGEPATH VARCHAR(4096 Value of PACKAGE PATH option of CREATE FUNCTION, CREATE PROCEDURE, ALTER FUNCTION, or ALTER PROCEDURE statement that created or last changed the routine
SECURE CHAR(1) Indicates if the routine is secured:

N   The routine is not secured

Y   The routine is secured

INLINE CHAR(1) Specifies if the SQL function is inline:

Y    Is inline when referenced. No package is associated with this type of routine

N    Has an associated package

blank Not an SQL function (ORIGIN not ‘Q’)

BLOB(1G)
SYSTEM_

DEFINED

CHAR(1) Identifies whether this routine is system defined:

blank  Not system defined

S      System defined

WRAPPED CHAR(1) Y     Routine text is obfuscated

Blank Routine text is not obfuscated

REGENERATETS TIMESTAMP(12 Timestamp when object we regenerated

SYSIBM.SYSROUTINESTEXT

An auxiliary table for the TEXT column of SYSIBM.SYSROUTINES

Column name Data type Description
TEXT CLOB(2M) Source text of CREATE PROCEDURE for routine

SYSIBM.SYSROUTINES_OPTS

Contains a row for each generated routine. Can be inserted, updated. and deleted

Column name Data type Description
SCHEMA VARCHAR(128) Schema of the routine
ROUTINENAME VARCHAR(128) Name of the routine
BUILDDATE DATE Date the routine was built
BUILDTIME TIME Time the routine was built
BUILDSTATUS CHAR(1) Whether a version of the routine’s source is current version
BUILDSCHEMA VARCHAR(128) Schema name for BUILDNAME
BUILDNAME VARCHAR(128) Procedure used to create the routine
BUILDOWNER VARCHAR(128) Authorization ID used to create the routine
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
PRECOMPILE_

OPTS

VARCHAR(765) Precompiler options used to build the routine
COMPILE_OPTS VARCHAR(765) Compiler options used to build the routine
PRELINK_OPTS VARCHAR(765) Pre-link edit options used to build the routine
LINK_OPTS VARCHAR(765) Link edit options used to build the routine
BIND_OPTS VARCHAR(3072 Bind options used to build the routine
SOURCEDSN VARCHAR(765) Name of the source data set
DEBUG_MODE CHAR(1) Debugging is on or off for this object

0      Debugging is off

1      Debugging is on

SYSIBM.SYSROUTINES_PTREE

An auxiliary table for the PTREE column of the SYSIBM.SYSROUTINES table

Column name Data type Description
PTREE CLOB(2M) Internal use only

SYSIBM.SYSROUTINES.SRC

Contains source for generated routines. Can be inserted, updated, and deleted

Column name Data type Description
SCHEMA VARCHAR(128) Schema of the routine
ROUTINENAME VARCHAR(128) Name of the routine
BUILDDATE DATE Date the routine was built
BUILDTIME TIME Time the routine was built
BUILDSTATUS CHAR(1) Whether this version of routine’s source is current version
SEQNO INTEGER Number of the source statement piece in CREATESTMT
IBMREQD CHAR(1) Y indicates row came from the (MRM) tape
CREATESTMT VARCHAR(7500 Routine source statement

SYSIBM.SYSSCHEMAAUTH

One or more rows for each user granted a privilege on a particular schema in a database

Column name Data type Description
GRANTOR VARCHAR(128) Auth ID of user who granted privileges or SYSADM
GRANTEE VARCHAR(128) Auth ID of user or group that holds privileges. Can be PUBLIC
SCHEMANAME VARCHAR(128) Name of the schema or ‘*’ for all schemas
AUTHHOWGOT CHAR(1) Auth level of user from whom privileges were received

1    Grantor had privilege on all schemas at time of grant

E    SECADM

G    ACCESSCTRL

L    SYSCTRL

S    SYSADM

CREATEINAUTH CHAR(1) Grantee holds CREATIN privilege on schema:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

ALTERINAUTH CHAR(1) Grantee holds ALTERIN privilege on schema:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

DROPINAUTH CHAR(1) Grantee holds DROPIN privilege on schema:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
GRANTEETYPE CHAR(1) Type of grantee:

blank  Authorization ID

L      Role

GRANTORTYPE CHAR(1) Type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSSEQUENCEAUTH

Records the privileges that are held by users over sequences

Column name Data type Description
GRANTOR VARCHAR(128) Auth ID of user who granted the privileges
GRANTEE VARCHAR(128) Auth ID of user or group that holds privileges or the name of an application plan or package that uses privileges
SCHEMA VARCHAR(128) Schema of the sequence
NAME VARCHAR(128) Name of the sequence
GRANTEETYPE CHAR(1) Type of grantee:

blank   An authorization ID

L       Role

P       An application plan or package. The grantee is a package if COLLID is not blank

R       Internal use only

AUHTHOWGOT CHAR(1) Auth level of user from whom the privileges were received. Not necessarily highest authorisation level of the grantor:

E     SECADM

G     ACCESSCTRL

L     SYSCTRL

S     SYSAMD

T     DATAACCESS

ALTERAUTH CHAR(1) Grantee holds ALTER privilege on sequence:

Blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

USEAUTH CHAR(1) Grantee holds USAGE privilege on sequence:

Blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

COLLID VARCHAR(128) If GRANTEE is a package, it’s collection name. Else, 0
CONTOKEN CHAR(8) If GRANTEE is a package, consistency token of the DBRM from which package was derived. Otherwise, blank
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
IBMREQD CHAR(1) Y indicates row came from the MRM tape
GRANTORTYPE CHAR(1) Type of grantor:

blank  Authorization ID

L      Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSSEQUENCES

Contains one row for each identity column or user-defined sequence

Column name Data type Description
SCHEMA VARCHAR(128) Schema of alias or sequence. For an identity column, value of TBCREATOR from SYSCOLUMNS entry for column
OWNER VARCHAR(128) Owner of alias or sequence. For an identity column, value of TBCREATOR from SYSCOLUMNS entry for column
NAME VARCHAR(128) Name of the identity column, alias or sequence. (Name for an identity is generated by DB2)
SEQTYPE CHAR(1) Type of sequence object:

A   Alias

I   Identity column

S   User-defined sequence

X   Implicitly created DOCID for a base table with XML

SEQUENCEID INTEGER Internal identifier of the identity column, alias or sequence
CREATEDBY VARCHAR(128) Primary auth ID of user who created sequence, alias or identity column
INCREMENT DECIMAL(31,0) Increment value (positive or negative) within INTEGER scope). 0 if alias
START DECIMAL(31,0) Start value. 0 if alias
MAXVALUE DECIMAL(31,0) Maximum value allowed for the data type. 0 if alias
MINVALUE DECIMAL(31,0) Minimum value allowed for the data type. 0 if alias
CYCLE CHAR(1) Whether cycling will occur when a boundary is reached:

N  No

Y  Yes

Blank if alias

CACHE INTEGER Number of sequence values to preallocate in memory for faster access. 0 indicates that values are not to be preallocated or an alias
ORDER CHAR(1) Whether the values must be generated in order:

Y Yes

N No

Blank if alias

DATATYPEID INTEGER For a built-in data type, the internal ID of the built-in type.

For a distinct type, the internal ID of the distinct type

SOURCETYPEID INTEGER For a built-in data type, 0. For a distinct type, internal ID of the built-in data type upon which distinct type is sourced
CREATEDTS TIMESTAMP Timestamp when identity column, alias, or sequence was created

 

ALTEREDTS TIMESTAMP Timestamp when identity column, alias, or sequence was ALTERed
MAXASSIGN_

EDVAL

DECIMAL(31,0) Last possible assigned value. Initialized to null when the sequence object is created. Updated each time next chunk of n values is cached, where n is the value for CACHE
IBMREQD CHAR(1) Y indicates row came from (MRM) tape
REMARKS VARCHAR(254) Character string provided by user with COMMENT statement. Blank for an identity column
PRECISION SMALLINT Precision defined for a sequence with a decimal or numeric type. 5 for SMALLINT, 10 for INTEGER, or actual precision specified be user for decimal data type. 0 for rows created prior to V8, or alias
RESTARTWITH DECIMAL(31,0) RESTART WITH value specified for a sequence during ALTER or NULL. RESTART WITH value is reset to NULL during first value generation after ALTER. NULL if no ALTER with RESTART WITH has happened or if an alias
OWNERTYPE CHAR(1) Type of owner:

Blank  Authorization ID

L      Role

RELCREATED CHAR(1) Release used to create object. Blank if created prior to V9
SEQSCHEMA VARCHAR(128) Schema of target sequence
SEQNAME VARCHAR(128) Name of target sequence

SYSIBM.SYSSEQUENCESDEP

Records the dependencies of identity columns on tables

Column name Data type Description
BSEQUENCEID INTEGER Internal identifier of the identity column or sequence
DCREATOR VARCHAR(128) Owner of object dependent on this identity column or sequence
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DNAME VARCHAR(128) Name of object dependent on this identity column or sequence
DCOLNAME VARCHAR(128) Name of the identity column. Blank for SQL function rows
DTYPE CHAR(1) Type of object is dependent on this sequence:

F     SQL function

I     Identity column

X     Implicit DOCID column created on base table with XML

Blank

BSCHEMA VARCHAR(129) Schema name of sequence
BNAME VARCHAR(128) Sequence name (generated by DB2 for an identity column)
DSCHEMA VARCHAR(128) Qualifier of object dependent on sequence
DOWNER VARCHAR(128) Owner of object dependent on sequence
DOWNERTYPE CHAR(1) The type of owner:

Blank  An authorization ID

L      Role

SYSIBM.SYSSESSION

Stores the session token that was generated by the server and associated session data

Column name Data type Description
TOKEN CHAR(40) Session token for the session
CORRTKN VARCHAR(256) Extended client correlation token in use
GV_FLAGS CHAR(2) Flags for the internal classification of global variable
TOTAL CHAR(4) Number of entries in SYSSESSION_EX that correspond to session token
SPECIAL_

REGISTERS

VARCHAR(16000 Special register values

 

GLOBAL_

VARIABLES

BLOB(2G) Global variable values
ROWID ROWID Generated ROWID

SYSIBM.SYSSESSION_EX

Contains global variable data of LOB or array type that corresponds to the locator

Column name Data type Description
TOKEN CHAR(40) Session token for the session
LOCATOR CHAR(8) Locator value corresponding to one of the global variables with DATATYPE as an array of lobs
HEADER CHAR(89) Array static descriptor header when locator value corresponds to array type
GVID CHAR(8) Global variable identifier
DATATYPE CHAR(2) Datatype of the global variable
CSSID CHAR(2) CCSID of the global variable
GVSCHEMA VARCHAR(130) Schema name of the global variable
GVNAME VARCHAR(130) Name of the global variable
DATA BLOB(2G) Data value stored in the Global variable

SYSIBM.SYSSESSION_STATUS

Contain session token/timestamp value when session data last referenced

Column name Data type Description
TOKEN CHAR(40) Session token for the session
TOKEN_TS CHAR(16) Timestamp when row was last referenced
TOKEN_

MEMBER

CHAR(16) Flags for internal classification of global variable
STATUS CHAR(2) Status of session corresponding to the token

SYSIBM.SYSSTATFEEDBACK

Contains information about missing or conflicting catalog statistics SQL statements

Column name Data type Description
TBCREATOR VARCHAR(128) Creator of table
TBNAME VARCHAR(128) Name of table
COLNAME VARCHAR(128) Creator of the index
IXNAME VARCHAR(128) Name of the index
COLNAME VARCHAR(128) Name of the column
NUMCOLUMN SMALLINT Number of columns in the column group
COLGROUP

COLNO

VARCHAR(254) A hex representation that identifies set of column associated with statistics
TYPE CHAR(1) The type of statistic to collect:

C – Cardinality

F – Frequency

H – Histogram

I – Index

T – Table

DBNAME VARCHAR(24) Name of database
TSNAME VARCHAR(24) Name of tablespace
REASON CHAR(8) Reason that statistic was recommend:

BASIC – A basic statistical value for a column table or index is missing

KEYCARD – Cardinalities of index key columns are missing

LOWCARD – Cardinality of the column is a low value, which indicates that data skew is likely

NULLABLE – Distribution statistics are not available for a nullable column

DEFAULT –  A predicate references a value that is probably a default value

RANGEPRD – Histogram statistics are not available for a range predicate

PARALLEL – Parallelism could be improved by uniform partitioning of key ranges

CONFLICT – Another statistic conflicts with this statistic

COMPFIX – Multi-column cardinality statistics are needed for an index compound filter factor

STALE – Out of sync with other statistics based on comparison of time statistics collection of related objects

BLOCK_

RUNSTATS

CHAR(1) Whether row is used when optimization tools collect statistics based on recommendations. DB2 inserts a blank value for new rows
REMARKS VARCHAR(254) Free form text for extensibility
LASTDATE DATE Last date satistics recommendation was updated by DB2

SYSIBM.SYSSTMT

Contains one or more rows for each SQL statement of each DBRM

Column name Data type Description
NAME VARCHAR(24) Name of the DBRM
PLNAME VARCHAR(24) Name of the application plan
PLCREATOR VARCHAR(128) Authorization ID of owner of application plan
SEQNO SMALLINT Sequence number of row with respect to a statement of plan
STMTNO SMALLINT Statment number of statement in source program
SECTNO SMALLINT Section number of statement
IBMREQD CHAR(1) Y indicates row came from (MRM) tape
TEXT VARCHAR(3800) Text or portion of the text of the SQL statement
ISOLATION CHAR(1) Isolation level for the SQL statement:

R     RR(repeatable read)

T     RS(read stability)

S     CS(cursor stability)

U     UR(uncommitted read)

L     KEEP UPDATE LOCKS for an RS isolation

X     KEEP UPDATE LOCKS for an RR isolation

Blank WITH clause was not specified

STATUS CHAR(1) Status of binding the statement
ACCESSPATH CHAR(1) For static statements, access path for statement is based on user-specified optimization hints. A value of ‘H’ indicates that optimization hints were used
STMTNOI INTEGER If value of STMTNOI is not zero, contains statement number of statement in source program
SECTNOI INTEGER The section number of the statement
EXPLAINABLE CHAR(1) Contains one of the following values:

Y     Indicates statement can be used with EXPLAIN function and may have rows describing its access path in the userid.PLAN_TABLE

N     Statement does not have any rows describing its access path in userid.PLAN_TABLE

Blank Statement was bound prior to V7

QUERYNO INTEGER Query number of statement in source program
PLCREATOR CHAR(1) Indicates type of creator:

blank  Authorization ID

L      Role

SYSIBM.SYSSTOGROUP

Contains one row for each storage group

Column name Data type Description
NAME VARCHAR(128) Name of the storage group
CREATOR VARCHAR(128) Authorization ID of the owner of the storage group
VCATNAME VARCHAR(128) Number of the integrated catalog facility catalog
SPACE INTEGER Number of kilobytes of DASD storage allocated to storage group as determined by the last execution of the STOSPACE utility
IBMREQD CHAR(1) Y indicates row came from (MRM) tape
CREATEDBY VARCHAR(128) Primary authorization ID of user who created storage group
STATSTIME TIMESTAMP If STOSPACE utility was executed for storage group, date and time when STOSPACE was last executed
CREATEDTS TIMESTAMP Time when CREATE was executed for the storage group
ALTEREDTS TIMESTAMP Time when most recent ALTER STOGROUP statement was executed for storage group. If no ALTER STOGROUP statement has been applied, ALTEREDTD has value of CREATEDTS
SPACEF FLOAT Kilobytes of DASD storage for storage group
DATACLAS VARCHAR(24) Name of SMS data class. Blank if not used
MGMTCLAS VARCHAR(24) Name of SMS management class. Blank if not used
STORCLAS VARCHAR(24) Name of the SMS storage class. Blank if not used
CREATOR

TYPE

CHAR(1) Indicates the type of creator:

blank  Authorization ID

L      Role

RELCREATED CHAR(1) Release of DB2 used to create object. Blank if created prior to V9

SYSIBM.SYSSTRINGS

Contains information character conversion

Column name Data type Description
INCCSID INTEGER Source CCSID for character conversion represented by this row
OUTCCSID INTEGER Target CCSID for character conversion represented by this row
TRANSTYPE CHAR(2) Indicate the nature of the conversion. Values can be:

GG     GRAPHIC to GRAPHIC

MM     EBCDIC MIXED to EBCDIC MIXED

MS     EBCDIC MIXED to SBCS

PM     ASCII MIXED to EBCDIC MIXED

PS     ASCII MIXED to SBCS

SM     SBCS to EBCDIC MIXED

SS     SBCS to SBCS

MP     EBCDIC MIXED to ASCII MIXED

PP     ASCII MIXED to ASCII MIXED

SP     SBCS to ASCII MIXED

ERRORBYTE CHAR(1) Byte used in conversion table as an error byte
SUBBYTE CHAR(1) Byte used in the conversion table as a substitution character
TRANSPROC VARCHAR(24) Name of a module or blanks
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
TRANSTAB VARCHAR(256) Either a conversion table or an empty string

SYSIBM.SYSSYNONYMS

Contains one row for each synonym of a table or view

Column name Data type Description
NAME VARCHAR(128) Synonym for the table or view
CREATOR VARCHAR(128) Authorization ID of the owner of the synonym
TBNAME VARCHAR(128) Name of the table or view
TBCREATOR VARCHAR(128) Schema of the owner of the table or view
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
CREATEDBY VARCHAR(128) Primary authorization ID of user who created the synonym
CREATEDTS TIMESTAMP Time when CREATE was executed for synonym
CREATORTYPE CHAR(1) Type of creator:

blank  Authorization ID

L      Role

RELCREATED CHAR(1) Release of DB2 used to create the object. Blank if prior to V9

SYSIBM.SYSTABAUTH

Records the privileges that users hold on tables and views

Column name Data type Description
GRANTOR VARCHAR(128) Auth ID of user who granted privileges. Could be PUBLIC
GRANTEE VARCHAR(128) Auth ID of user who holds privileges or name of a plan or package that uses the privileges
GRANTEETYPE CHAR(1) Type of grantee:

blank  An authorization ID

L      Role

P      Plan or a package. Package if COLLID is not blank

DBNAME VARCHAR(24) If privileges were received from a user with DBADM, DBCTRL or DBMAINT authority, DBNAME is the name of the database on which the GRANTOR has that authority. Otherwise, blank
SCREATOR VARCHAR(128) If row of SYSTABAUTH was created as a result of a CREATE VIEW statement, SCREATOR is a schema owner of a table of view referred to in the fullselect of CREATE TABLE
STNAME VARCHAR(128) If row of SYSIBM.SYSTABAUTH was created as a result of a CREATE TABLE or MQT, STNAME is name of a table or view referred to in the fullselect of CREATE TABLE
TCREATOR VARCHAR(128) Schema of owner of table or view
TTNAME VARCHAR(128) Name of table or view
AUTHHOWGOT CHAR(1) Authorization level of user from whom privilege were received. Not necessarily highest authorization level of grantor.

Blank  Not Applicable

C     DBCTL

D     DBADM

E     SECADM

G     ACCESSCTRL

L     SYSCTRL

M     DBMAINT

S     SYSADM

T     DATAACCESS

UPDATECOLS CHAR(1) Blank if value of UPDATEAUTH applies uniformly to all columns of table or view. (*) if value of UPDATEAUTH applies to some columns but not to others
ALTERAUTH CHAR(1) GRANTEE can alter the table:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

DELETEAUTH CHAR(1) GRANTEE can delete rows from the table or view:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

INDEXAUTH CHAR(1) GRANTEE can create indexes on the table:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

INSERTAUTH CHAR(1) GRANTEE can insert rows into the table or view:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

SELECTAUTH CHAR(1) GRANTEE can select rows from the table or view:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

UPDATEAUTH CHAR(1) GRANTEE can update rows of the table or view:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

IBMREQD CHAR(1) Y indicates row came from (MRM) tape
COLLID VARCHAR(128) If GRANTEE is a package, its collection name. Else, blank
CONTOKEN CHAR(8) If GRANTEE is a package, consistency talking of DBRM from which the package was derived. Else, blank
REFERENCES

AUTH

CHAR(1) GRANTEE can create or drop referential constraints in which table is a parent:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

REFCOLS CHAR(1) Blank if value of REFERENCESAUTH applied uniformly to all columns of table. (*) if value of REFERENCEAUTH applies to some columns but not others
GRANTEDTS TIMESTAMP Time when the GRANT statement was executed
TRIGGERAUTH CHAR(1) GRANTEE can create triggers in which table is named as the triggering table:

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

GRANTORTYPE CHAR(1) Type of grantor:

blank  Authorization ID

L      Role

UNLOADAUTH CHAR(1) Whether GRANTEE can use the UNLOAD utility to unload data

blank  Privilege is not held

G      Privilege is held with the GRANT option

Y      Privilege is held without the GRANT option

SYS_START TIMESTAMP(12) Start time associated with the most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSTABCONST

Contains one row for each unique constraint (primary or unique key)

Column name Data type Description
CONSTNAME VARCHAR(128) Name of the constraint
TBCREATOR VARCHAR(128) Schema of the table on which the constraint is  defined
TBNAME VARCHAR(128) Name of the table on which the constraint is defined
CREATOR CHAR(8) Authorization ID under which the constraint is defined
TYPE CHAR(1) Type of constraint:

F  Foreign key

P  Primary key

U  Unique key

IXOWNER VARCHAR(128) Schema of index enforcing constraint
IXNAME VARCHAR(128) Name of index enforcing constraint
CREATEDTS TIMESTAMP Time when statement to create the constraint was executed
IBMREQD CHAR(1) Y indicates row came from (MRM) tape
COLCOUNT SMALLINT Number of columns in the constraint
RELCREATED CHAR(1) Release of DB2 used to create object. Blank if prior to V9

SYSIBM.SYSTABLEPART

One row for each non-partitioned tablespace and each partition of a partitioned table space

Column name Data type Description
PARTITION SMALLINT Partition number; 0 If tablespace is not partitioned
TSNAME VARCHAR(24) Name of the tablespace
DBNAME VARCHAR(24) Name of the database that contains the tablespace
IXNAME VARCHAR(128) Name of the partitioning index. Blank if not partitioned
IXCREATOR VARCHAR(128) Schema of partition index. Blank if not partitioned
PQTY INTEGER For user managed data sets, primary space allocation in units of 4 KB storage blocks or -1
SQTY SMALLINT For user managed data sets, value is the secondary space allocation in units of 4 KB storage blocks or -1
STORTYPE CHAR(1) Storage allocation:

E   Exlicit (storage group not used)

I   Implicit (storage group used)

STORNAME VARCHAR(128) Name of storage group used for space allocation. Blank if storage group not used or for the catalog table spaces
VCATNAME VARCHAR(24) Name of ICF catalog used for space allocation
CARD INTEGER Number of rows in tablespace or partition or, if tablespace is a LOB tablespace, number of LOBs in tablespace
FARINDREF INTEGER Number of rows relocated far from their original page
NEARINDREF INTEGER Number of rows relocated near their original page
PERACTIVE SMALLINT Percentage of space occupied by rows of data from active tables
PERCDROP SMALLINT Percentage of space occupied by rows of dropped tables
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
LIMITKEY VARCHAR(765) High value of partition in external format
FREEPAGE SMALLINT Number of pages loaded before a page is left as free space
PCTFREE SMALLINT Percentage of each page left as free space
CHECKFLAG CHAR(1) C    Tablespace partition is in a check pending status and there are rows in table that can violate referential constraints, table check constraints, or both.

D    Inline length of LOB column associated with LOB table space was decremented when inline length was altered.

I    Inline length of LOB column that is associated with this LOB table space was incremented when inline length was altered.

Blank Tablespace is not a partition, or does not contain rows that may violate referential constraints, table check constraints, or both

SPACE INTEGER Number of kilobytes of DASD storage allocated to the table space partition, as determined by the last execution of the STOSPACE utility or RUNSTATS utility

0   STOSPACE or RUNSTATS utility has not been run.

-1   Table space was defined with the DEFINE NO clause, which defers the physical creation of the data sets until data is first inserted into one partition, and data has yet to be inserted.

Non-zero or non-negative value

An auxiliary table in the LOB table space

COMPRESS CHAR(1) Indicates the following:

·        For a tablespace partition, whether the COMPRESS attribute for the partition is YES.

·        For a non-partitioned tablespace, whether COMPRESS attribute is YES for tablespace.

Y     Compression is defined

blank no compression

PAGESAVE SMALLINT Percentage of pages saved in tablespace or partition as a result of defining with COMPRESS YES or other compression routines
STATSTIME TIMESTAMP Date and time when RUNSTATS was executed
GBPCACHE CHAR(1) Group buffer pool cache option for tablespace or partition.

A      Changed and unchanged pages are cached

N      No data is cached in the group buffer pool

S      Only changed system pages

blank  Only changed pages are cached

CHECKRID5B CHAR(5) Blank if table or partition is not in an check pending status (CHECKFLAG blank), or if table not partitioned. Else, RID of first row of partition that can violate referential constraints, table check constraint or both; or value is X’0000000000’, indicating any row can violate referential constraints
TRACKMOD CHAR(1) Track page modifications in space map pages:

N      No

Y      Yes

EPOCH INTEGER A number that is implemented whenever an operation that changes the location of rows in a table occurs
SECQTYI INTEGER Secondary space allocation of units of 4KB storage
CARDF FLOAT Number of rows in tablespace or partition, or if tablespace is a LOB tablespace, number of LOBs in tablespace
IPREFIX CHAR(1) First character of instance qualifier for data set name for table space or partition. Only ‘I’ or ‘J’ are valid. Default=’I’
ALTEREDTS TIMESTAMP Time when most recent ALTER INDEX was executed for the index
SPACEF FLOAT(8) Kilobytes of DASD storage
DSNUM FLOAT(8) Number of datasets
EXTENTS INTEGER Number of data set extents
LOGICAL_PART SMALLINT Logical partition (logical ascending or descending order) for table spaces created with either table-controlled partitioning or index-controlled partitioning
LIMITKEY_

INTERNAL

VARCHAR(512) Highest value of limit key of partition in an internal format
OLDEST_

VERSION

SMALLINT Version number of oldest format of data in table past and any image copies at the part level
CREATDTS TIMESTAMP Time when the partition was created
AVGROWLEN INTEGER Average length of rows for tables in table space or part. If table space or part is compressed, value is compressed row length. If table space or part is not compressed, value is uncompressed row length
FORMAT CHAR(1) Format of the rows in the table space or partition:

R       Reordered row format

blank   Basic row format or a LOB tablespace

RELCREATED CHAR(1) Release of DB2 used to create object. Blank if prior to V9
REORG_LR_TS TIMESTAMP Time when REORG or LOAD REPLACE utility last occurred
HASHSPACE BIGINT 0 for partition by growth table spaces. For range partitioned universal table spaces, this is the amount of space, in KB, specified at the partition level to override space specification at the table level. If no override is provided it will be the same as value of HASHSPACE in SYSTABLESPACE
HASHDATAPAGES BIGINT 0 for partition by growth table spaces. For ranged partitioned universal table spaces, number of hash data page that correspond to value of HASHSPACE column for each partition. 0 for table spaces which have been changed to use hash access but have not been recognized
RBA_FORMAT CHAR(1) Format of the RBA/LRSN

B   Basic, 6-byte RBA/LRSN format

E   Extended, 10-byte RBA/LRSN format

U   Undefined. DEFINE NO was specified when creating table space, and the table space is not an XML table space with XML versions

Blank  For migrated records

PCTFREE_UPD SMALLINT Percentage of free space reserved for updates to variable length records, as defined when object as created or altered
PCTFREE_UPD_

CALC

SMALLINT Percentage of free space reserved for updates to variable length records, calculated by DB2 or utilities
TYPE CHAR(1) Type of partition

Blank   Without LOB or MEMBER CLUSTERS

G       Defined with MAXPARTITIONS

L       Can be greater than 64 gigabytes

O       Defined with LOB

P       Implicit table space for XML

R       Range partitioned UTS

PAGENUM CHAR(1) Format of tablespace or index page numbering

A      Absolute

R      Relative

BPOOL CHAR(8) Bufferpool used for the partition
PGSIZE SMALLINT Size of pages in the tablespace in KB
DSSIZE INTEGER Maximum size on partition
MEMBER_

CLUSTER

CHAR(1) Whether or not MEMBER CLUSTER is specified

Y     MEMBER CLUSTER is specified

Blank MEMBER CLUSTER is not specified

COMPRESSRATIO SMALLINT Average percentage of bytes saved by compression

-1    Value not been collected

0     No compression exists or average compressed record length is same or longer than uncompressed record

SYSIBM.SYSTABLEPART_HIST

Contains rows from SYSTABLEPART. Can be inserted, updated, and deleted

Column name Data type Description
PARTITION SMALLINT Partition number; 0 if tablespace not partitioned
TSNAME VARCHAR(24) Name of the table space
DBNAME VARCHAR(24) Name of the data set that contains the table space
PGTY INTEGER For user-managed data sets, value is primary space allocation in units of 4 KB storage blocks or -1
SECQTYI SMALLINT Secondary space allocation in units of 4KB blocks. For user-managed data sets, the value of the secondary space allocation in units of 4KB storage blocks or -1
FARINDREF INTEGER Number of rows relocated far from their original page
NEARINDREF INTEGER Number of rows relocated near their original page
PERACTIVE SMALLINT Percentage of space occupied by rows of data from active tables
PERCDROP SMALLINT Percentage of space occupied by rows of dropped tables
SPACEF FLOAT(8) Number of kilobytes of DASD storage allocated to tablespace partition
PAGESAVE SMALLINT Percentage of pages saved in the tablespace or partition as a result of defining the tablespace with COMPRESS YES or other compression routines
STATSTIME TIMESTAMP If RUNSTATS updated statistics, date and time when last invocation of RUNSTATS updated statistics
CARDF FLOAT(8) Number of rows in tablespace of partition, or if tablespace is a LOB tablespace, number of LOBs in tablespace
EXTENTS INTEGER Number of data set extents. Value is only for last DSNUM for object
DSNUM INTEGER Data set number within the table space
IBMREQD CHAR(1) Y indicates row came from (MRM) tape
AVGROWLEN INTEGER Average length of rows for tables in table space or part. If table space or part is compressed, value is compressed row length. If table space or part is not compressed, value is uncompressed row length

SYSIBM.SYSTABLES

Contains one row for each table View alias

Column name Data type Description
NAME VARCHAR(128) Name of the table, view or alias
CREATOR VARCHAR(128) Schema of the table, view, or alias
TYPE CHAR(1) Type of object:

A     Alias

C     Clone table

H     History table

G     Created global temporary table

M     Materialized query table

P     Implicit table created for XML columns

R     Archive table

T     Table

V     View

X     Auxiliary table

DBNAME VARCHAR(24) For a table, or a view of tables, name of the database that contains tablespace named in TSNAME
TSNAME VARCHAR(24) For a table, or a view of one table, name of table space that contains the table
DBID SMALLINT Internal identifier of database
OBID SMALLINT Internal identifier of table
COLCOUNT SMALLINT Number of columns in table or view
EDPROC VARCHAR(24) Name of the edit procedure; blank if the row describes a view or alias or a table without an edit procedure
VALPROC VARCHAR(24) Name of the validation procedure; blank if the row describes a view or alias or a table without an edit procedure
CLUSTERTYPE CHAR(1) Whether RESTRICT ON DROP applies:

blank   No

Y       Yes. Neither the table nor any tablespace or database that contains the table can be dropped

NPAGES INTEGER Total number of pages on which rows of table appear
PCTPAGES SMALLINT Percentage of active tablespace pages that contain rows of table
IBMREQD CHAR(1) Y indicates row came from MRM tape
REMARKS VARCHAR(254) A character string provided by user with COMMENT ON
PARENTS SMALLINT Number of relationships in which table is dependent. 0 if row describes a view, alias, created temporary table or MQT
CHILDREN SMALLINT Number of relationships in which table is a parent. 0 if row describes a view, an alias, created temporary table or MQT
KEYCOLUMNS SMALLINT Number of columns in a table’s primary key. 0 if row describes a view, an alias, or a created temporary table
RECLENGTH SMALLINT For user tables, maximum length of any record in table
STATUS CHAR(1) Status of table definition:

I      Definition of table is incomplete. TABLESTATUS column indicates reason for table definition being incomplete

R      An error occurred when an attempt was made to regenerate the internal representation of view

X     Table has a parent index and definition complete

blank Table has no parent index, or is a catalog table, or row describes a view or alias. Definition of table, view, or alias is complete

KEYOBID SMALLINT Internal DB2 identifier of index that enforces uniqueness of table’s primary key; 0 if not applicable
LABEL VARCHAR(90) Label as given by a LABEL ON; otherwise an empty string
CHECKFLAG CHAR(1) C        Tablespace that contains table is in a check pending status and there are rows in the table that can violate referential constraints, table check constraints, or both. Table is an MQT that may contain inconsistent data

blank     Table contains no rows that violate referential constraints, table check constraints, or both; or the row describes a view, alias, or created temporary table

CHECKRID CHAR(4) ‘FFFFFF00’ indicates edit procedure on this table is defined without row attribute sensitivity. Any other value indicates edit procedure is defined with row attribute sensitivity.
AUDITING CHAR(1) Audit option:

A      AUDIT ALL

C      AUDIT CHANGE

Blank  AUDIT NONE. or is view, alias, or created temp

CREATEDBY VARCHAR(128) Primary auth ID of user who created the table, view, or alias
LOCATION VARCHAR(128) Location name of an object of an alias. Blank for table, a view, or for an alias not defined with a three-part name
TBCREATOR VARCHAR(128) ·        For an alias, schema of the referred to table or view

·        For a base table involved in a clone relationship, name of creator of clone table

·        For a clone table involved in a clone relationship, name of creator of base table

·        Otherwise, TBCREATOR is blank

TBNAME VARCHAR(128) ·        For an alias, schema of the referred to table or view

·        For a base table involved in a clone relationship, name of creator of clone table

·        For a clone table involved in a clone relationship, name of creator of base table

·        Otherwise, blank

CREATEDTS TIMESTAMP Time when CREATE was executed for table, view or alias
ALTEREDTS TIMESTAMP For a table, time when latest ALTER TABLE was applied. If no ALTER TABLE statement has been applied, or if row is for an alias, ALTEREDTS has a value of CREATEDTS. For a view, time when last ALTER VIEW REGENERATE applied
DATACAPTURE CHAR(1) Records the value of the DATACAPTURE option for table:

blank   No

Y       Yes

For a created temporary table, is blank

RBA1 CHAR(10) Log RBA(LRSN) when table was created
RBA2 CHAR(10) Log RBA(LRSN) when table was last altered
PCTROWCOMP SMALLINT Percentage of throws compressed within total number of active rows in table. Includes any row in a table space that is defined with COMPRESS YES
STATSTIME TIMESTAMP If RUNSTATS updated statistics, date and time when last invocation of RUNSTATS updated the statistics
CHECKS SMALLINT Number of check constraints defined on the table
CARDF FLOAT Total number of rows in the table or total number of LOBs in an auxiliary table
CHECKRID5B CHAR(5) Blank if table or partition is not in a check pending status (CHECKFLAG is blank), if not partitioned, or if table is a created a temporary table. Otherwise, RID of first row of partition that can violate referential constraints, table check constraints, or both; or value is X’0000000000’, indicating that any row can violate referential constraints
ENCODING_

SCHEME

CHAR(1) Default encoding scheme for tables, views and aliases:

E     EBCDIC

A     ASCII

M     Multiple CCSID set or multiple encoding schemes

U     UNICODE

blank For remote aliases

‘E’ for tables in non-work file databases and blank for tables in work-file databases created prior to V5 or DSNDB04

TABLESTATUS VARCHAR(30) Reason for an incomplete table definition:

F    Table lacks required BUSINESS_TIME WITHOUT OVERLAPS index on foreign key

L    An auxiliary table or auxiliary index has not been defined for LOB column

P    Table lacks a parent index

R    Table lacks a required index on a row ID

U    Table lacks a required index on a unique key

V    An error occurred during a regeneration of the view

blank Definition is complete

NPAGESF FLOAT(8) Number of pages used by the table
SPACEF FLOAT(8) Kilobytes of DASD storage
AVGROWLEN INTEGER Average length of rows for tables. If compressed, value is compressed row length. If not compressed, value is uncompressed row
RELCREATED CHAR(1) Release of db2 used to create the object
NUM_DEPT_MQTS SMALLINT Number of dependent materialized query tables. 0 if is an alias or a created temporary table, or if no materialized query tables are defined on the table
VERSION SMALLINT Version of data raw format for this table

·        0 indicates a version-creating alter operation has never occurred against this table

·        -1 indicates view has been regenerated because a column of base table has been altered

·        800 indicates a successful CREATE VIEW or ALTER VIEW occurred against table in V8 or later

·        900 indicates successful ALTER TABLE with DROP COLUMN clause occurred against view

PARTKEYCOLNUM SMALLINT Number of columns in partitioning key. 0 for tables that do not have partitioning or use index-controlled partitioning. Non-zero for tables that use table-controlled partitioning.
SPLIT_ROWS CHAR(16) Blank except for VOLATILE tables, else Y to indicate to DB2 to use index access on table whenever possible
SECURITY_

LABEL

CHAR(1) If type column is T or M. Table has multi-level security:

blank    No multi-level security

R        Table has multi-level security with row granularity

OWNER VARCHAR(128) Auth ID of owner of table, view, or alias, blank for tables, views or aliases created prior to V9
APPEND CHAR(1) APPEND option is specified for the table

Y  Yes

N  No

OWNERTYPE CHAR(1) Type of owner:

blank Authorization ID

L     Role

CONTROL CHAR(1) Access enforced using row or column access control:

blank   No access control enforcement

B       Row and column access control

C       Column access control

R       Row access control

VERSIONING_

SCHEMA

VARCHAR(128) Schema name of history table if tables is a system-maintained temporal table with versioning or schema name of system-maintained temporal table if table is a history table
VERSIONING_

TABLE

VARCHAR(128) Either table name of history table if table is a system-maintained temporal table with versioning or table name of system-maintained temporal table if table is a history table
HASHKEY

COLUMNS

SMALLINT Number of columns in hash key of table. 0 if row describes a view, an alias, or a created temporary table
ARCHIVING_

SCHEMA

VARCHAR(128) Contains a schema name as follows:

·        If table is an archived-enabled table, contains schema name of the archive table

·        If table is an archive table, this column contains the schema name of the archive-enabled table

·        If table is not an archive-enabled or an archive table, value is blank

ARCHIVING_

TABLE

VARCHAR(128) Contains a table name as follows:

·        If table is an archive-enabled table, contains table name of the archive table

·        If table is an archive table, contains the table name of the archive-enabled table

·        If table is not an archive-enabled enabled table or an archive table, value is blank

STATS_

FEEDBACK

CHAR(1) When a query qualifies for statistics collection based on DSNZPARM STATFDBK_SCOPE, controls whether statistics recommendations for this table are placed in SYSSTATFEEDBACK. Can update ‘Y’ or ‘N’ to enable or disable collection for the table
REGENERATETS TIMESTAMP(12) Time when object was regenerated

SYSIBM.SYSTABLESPACE

Contains one row for each tablespace

Column name Data type Description
NAME VARCHAR(24) Name of tablespace
CREATOR VARCHAR(128) Authorisation ID of the owner of the tablespace
DBNAME VARCHAR(24) Name of the database that contains the tablespace
DBID SMALLINT Internal identifier of database that contains the tablespace
OBID SMALLINT Internal identifier of the tablespace file descriptor
PSID SMALLINT Internal identifier of the tablespace page set descriptor
BPOOL CHAR(8) Name of the buffer pool used for the table space
PARTITIONS SMALLINT Number of partitions of tablespace; 0 if not partitioned
LOCKRULE CHAR(1) Lock size of the tablespace:

A    Any

L    Large object (LOB)

P    Page

R    Row

S    Tablespace

T    Table

X    Implicitly created XML table space

PGSIZE SMALLINT Size of pages in the tablespace in kilobytes
ERASERULE CHAR(1) Data sets are to be erased when dropped. Meaningless if tablespace is partitioned:

N    No erase

Y    Erase

STATUS CHAR(1) Availability status of the tablespace:

A   Available

C   Definition is incomplete because a partitioning index has not been created

P   Tablespace is in a check pending status

S   Tablespace is in a check pending status with scope less than the entire tablespace

T   Definition is incomplete because table not created

IMPLICIT CHAR(1) Tablespace was created implicitly:

N   No

Y   Yes

NTABLES SMALLINT Number of tables defined in the tablespace
NACTIVE INTEGER Number of active pages in tablespace. A page is termed active if it is formatted for rows, even if it currently contains none. 0 if statistics not gathered. An updateable column
CLOSERULE CHAR(1) Datasets are candidates for closure when limit on number of open data sets is reached

N   No

Y   Yes

SPACE INTEGER Number of kilobytes of DASD storage allocated to tablespace, as determined by last execution of STOSPACE utility
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
SEGSIZE SMALLINT Number of pages in each segment. 0 if not segmented
CREATEDBY VARCHAR(128) Primary authorization ID of user who created tablespace
STATSTIME TIMESTAMP If RUNSTATS updated statistics, date and time when last invocation of RUNSTATS updated statistics
LOCKMAX INTEGER Maximum number of locks per user to acquire for table or tablespace before escalating to next locking level

0   Lock escalation does not occur

n   n, where n>0, is maximum number of locks (row, page or LOB locks for the table or tablespace) an application process can acquire before lock escalation

-1  Represents LOCKMAX SYSTEM. Value of field LOCKS PER TABLE(SPACE) on installation panel DSNTIPJ determines lock escalation. If 0, lock escalation does not occur. If value is n, where n>0, lock escalation occurs as it does for LOCKMAX n

TYPE CHAR(1) Type of tablespace:

blank Tablespace was created without: DSSIZE, LARGE, LOB and MEMBER CLUSTER

I     Defined with MEMBER CLUSTER and is not greater than 64GB

G     Defined with MAXPARTITIONS option (a partitioned by-growth table space) with underlying structure of a universal table space

K     Defined with MEMBER CLUSTER and can be greater than 64GB

L      Table space can be greater than 64 gigabytes

O      Table space was defined with the LOB column

P      Implicit table space created for XML columns

R      Range-partitioned universal table space

CREATEDTS TIMESTAMP Time CREATE was executed for tablespace. If tablespace created prior to V5, value is ‘0001-01-01.00.00.00.000000’
ALTEREDTS TIMESTAMP Time when most recent ALTER TABLESPACE was executed. If no ALTER TABLESPACE has been applied, ALTEREDTS has a value of CREATEDTS. If index was created prior to V5, value is ‘0001-01-01.00.00.00.000000’
ENCODING_

SCHEME

CHAR(1) Default encoding scheme for tablespace:

E     EBCDIC

A     ASCII

U     UNICODE

Blank For tablespaces in a work file database or a TEMP database (a database created AS TEMP, which is for declared temporary tables)

‘E’ for tables in non-workfile databases and blank for tables in work-file databases created prior to V5 or DSNDB04

SBCS_CCSID INTEGER Default SBCS CCSID for tablespace
DBCS_CCSID INTEGER Default DBCS CCSDI for tablespace
MIXED_CCSID INTEGER Default mixed CCSID for the tablespace
MAXROWS SMALLINT Maximum number of rows on a data page. Default is 255
LOCKPART CHAR(1) Y    LOCKPART YES is specified for the tablespace

N    LOCKPART NO is specified, or LOCKPART is not specified or not a partitioned tablespace

LOG CHAR(1) Changes to a tablespace are to be logged:

N    Tablespace has NOT LOGGED attribute

Y    Tablespace has a LOGGED attribute

X    LOB or XML table space has NOT LOGGED attribute

NACTIVEF FLOAT Number of active pages in table space
DSSIZE INTEGER Maximum size of dataset in kilobytes. Might be 0 if table space was created prior to V10, but will contain actual value after table space is converted to a partitioned by growth
OLDEST_

VERSION

SMALLINT Version number of oldest format of data in table space and any image copies
CURRENT_

VERSION

SMALLINT Version number describing newest format of data in table space. 0 indicates table space has never had versioning
AVGROWLEN INTEGER Average length of rows for tables in table space or part. If table space or part is compressed, value is compressed row length. If table space or part is not compressed, value is the uncompressed row length
SPACEF FLOAT Kilobytes of DASD storage for the storage group
CREATORTYPE CHAR(1) Type of creator:

Blank  Authorization ID

L      Role

RELCREATED CHAR(1) Release of used to create object. Blank if prior to V9
INSTANCE SMALLINT Column value of data set instance number of current base object (table and index)
CLONE CHAR(1) Tablespace contains objects involved in a clone relationship

Y  Yes

N  No

MAXPARTITIONS SMALLINT Maximum number of partitions table space can grow to. 0 if table space is not partitioned or is range partitioned but not a universal table space
MEMBER_

CLUSTER

CHAR(1) If member cluster is specified to the tablespace

Y      Yes

blank  No

ORGANIZATION

TYPE

CHAR(1) Table space organization

blank Not known. Blank is the default

H     Hash organization

HASHSPACE BIGINT Amount of space, in KB, allocated to table space or partition as hash space. For partition by growth table spaces, space applies to the whole table space. For range partitioned table spaces, space is applicable for each partition
HASHDATAPAGES BIGINT Total number of hash data pages to preallocate for hash space. For partition by growth table spaces, includes all pages in fixed part of the table space. For range partitioned table spaces, number of pages in fixed hash space in each partition unless it is overridden by providing hash space at the partition level. Calculated by DB2 from value specified with HASH SPACE option or when REORG utility is run with automatic estimation of space. Calculated value is used in hash algorithm. 0 for non-hash table spaces. 0 for table spaces which have been changed to use hash access but have not been reorganized
PAGENUM CHAR(1) Format of page numbers for index.

A   Absolute

R   Relative

PQTY INTEGER For user managed data sets. Value is primary space allocation
STORTYPE CHAR(1) Type of storage allocation

E  Explicit (storage group not used)

I  Implicit (storage group used)

STORNAME VARCHAR(128) Name of storage group used for space allocation
VCATNAME VARCHAR(24) Name of ICF catalog used for space allocation
FREEPAGE SMALLINT Number of pages loaded before a page is left free
PCTFREE SMALLINT Percentage of each page left as free space
COMPRESS CHAR(1) Whether or not the table space partition was defined with COMPRESS YES

Y     Compression is defined

blank No compression

GBPCACHE CHAR(1) Group bufferpool cache option

Blank Only changed pages

A     Changed and unchanged pages

N     No data is cached

S     Only system pages are cached

TRACKMOD CHAR(1) Whether to track the page modification in the space map

N     No

Blank Yes

SECQTY1 INTEGER Secondary space allocation for user managed data sets
PCTFREE_UPD SMALLINT Percentage of free space reserved for updates to variable length records defined on object
PCTFREE_UPD_

CALC

SMALLINT Percentage of free space reserved for updates to variable length records calculated by DB2 or utilities
COMPRESSRATIO SMALLINT Average percentage of bytes saved by compression

-1    Value not been collected

0     No compression exists or average compressed record length is same or longer that uncompressed record

INSERTALG SMALLINT Insert algorithm level for tables in default space

0 Determined by DEFAULT_INSERT_ALGORITHM

1 Basic

2 Fast (if MEMBER_CLUSTER used)

SYSIBM.SYSTABLESPACESTATS

Contains real time statistics for table spaces. Can be inserted, updated, and deleted

Column name Data type Description
UPDATESTATS

TIME

TIMESTAMP Timestamp when the row was inserted or last updated
NACTIVE INTEGER Number of active pages in the table space or partition
NPAGES INTEGER Number of distinct pages with active rows in partition of the table space. Updatable column
EXTENTS SMALLINT Number of extents in table space or partition. For multi-piece table spaces, value is a number of extents for last data set
LOADRLASTTIME TIMESTAMP Timestamp of last LOAD REPLACE on table space or partition
REORGLASTTIME TIMESTAMP Timestamp REORG utility was last run on table space or partition, or if REORG utility has not been run, time when table space or partition was created
REORGINSERTS INTEGER Number of records or LOBs inserted into table space or partition or loaded into the table space or partition using the LOAD utility specified without REPLACE option since the last time the REORG or LOAD REPLACE utilities were run, or since the object was created
REORGDELETES INTEGER Number of records or LOBs that have been deleted from table space or partition since last time the REORG or LOAD REPLACE utilities were run, or since object was created
REORGUPDATES INTEGER Number of rows updated in table space or partition since the last REORG or LOAD REPLACE, or since the object was created
REORGUNCLUSTINS INTEGER Number of records inserted that are not well-clustered with respect to clustering index since last REORG or LOAD REPLACE, or since object was created. A record is well-clustered if record is inserted into a page that is within 16 pages of ideal candidate page. Clustered index determines ideal candidate page
REORGDISORGLOB INTEGER Number of LOBs inserted that are not perfectly chunked since last REORG or LOAD REPLACE, or since object was created. A LOB is perfectly chunked if allocated pages are in minimum number of chunks
REORGMASSDELETE INTEGER Number of mass deletes from a segmented or LOB table space, or number of dropped tables from a segmented table space since last REORG or LOAD REPLACE, or since object was created
REORGNEARINDREF INTEGER Number of overflow records created and relocated near pointer record since last time REORG and LOAD REPLACE utilities were run, or since the object was created
REORGFARINDEF INTEGER Number of overflow records created and relocated far from pointer record since last time REORG and LOAD REPLACE utilities were run, or since object was created
STATSLASTTIME TIMESTAMP Timestamp of last RUNSTATS on tablespace or partition
STATSINSERTS INTEGER Number of records or LOBs inserted into table space or partition or loaded into table space or partition using LOAD utility without REPLACE option since last time RUNSTATS was run, or since object was created
STATSDELETES INTEGER Number of records or LOBs deleted from table space or partition since last time RUNSTATS was run, or since object was created
STATSUPDATES INTEGER Number of rows updated in the table space of partition since the last time that the RUNSTATS utility was run, or since the object was created
STATSMASSDELETE INTEGER Number of mass deletes from a segmented or LOB table space, or number of tables dropped from a segmented table space, since last time RUNSTATS utility was run, or since object was created
COPYLASTTIME TIMESTAMP Timestamp of last full or incremental image copy of table space or partition, or since object was created. A null indicates COPY utility has never been run or unknown
COPYUPDATED

PAGES

INTEGER Number of distinct types updated since last time COPY utility was run, or since object was created
COPYCHANGES INTEGER Number of insert, update, and delete operations, or number of records loaded, since last time COPY utility was run, or since object was created
COPYUPDATELRSN CHAR(10) LRSN or RBA of first update after last COPY
COPYUPDATETIME TIMESTAMP Timestamp of first update after last COPY
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DBID SMALLINT Internal identifier database. Used to map DBID to its statistics
PSID SMALLINT Internal identifier of the table space page set descriptor. Used to map a PSID to its statistics
PARTITION SMALLINT Data set number within table space. Used to map a data set number in a table space to its statistics. For partitioned table spaces, value corresponds to the partition number for a single partition. For non-partitioned table spaces, value is 0
INSTANCE SMALLINT Indicates if object is associated with data set instance 1 or 2. An updatable column
SPACE INTEGER Amount of space, in KB, allocated to table space or partition. For multi-piece linear page sets, value is amount of space in all data sets
TOTALROWS BIGINT Number of rows or LOBs in the table space or partition
DATASIZE BIGINT Total number of bytes row data occupy in data rows or LOB rows. An updatable column
UNCOMPRESSED

DATASIZE

BIGINT Not used. The value is always set to 0
DBNAME CHAR(8) Name of database. Used to map database to its statistics
NAME CHAR(8) Name of tablespace. Used to map tablespace to its statistics
REORGSCANACCESS BIGINT Number of times data is accessed for SELECT, FETCH, searched UPDATE, or searched DELETE since last CREATE, LOAD REPLACE or REORG, or since object was created
REORGHASHACCESS BIGINT Number of times data is accessed using hash access for SELECT, FETCH, searched UPDATE, searched DELETE, or used to enforce referential integrity constraint since the last CREATE, LOAD REPLACE or REORG, or since the object was created
HASHLASTUSED TIMESTAMP Date when hash access was last used for SELECT, FETCH, searched UPDATE/DELETE, or used to enforce RI
REORG

CLUSTERSENS

BIGINT Number of times data has been read by SQL statements that are sensitive to clustering sequence of the data since the last REORG or LOAD REPLACE, or since object was created
DRIVETYPE CHAR(3) Drive type on which table space or partition data set is defined

HDD Hard Disk Drive

SDD Solid State Drive

LPFACILITY CHAR(1) Whether disk control unit has high performance list prefetch

N  No

Y  Yes

A NULL value indicates unknown an updatable column

UPDATESIZE BIGINT Net number of bytes added or removed by UPDATE since object was created, or since last REORG or LOAD REPLACE
LATDATACHANGE TIMESTAMP Last time row was updated because data was modified in the table space or partition. Reflects the time at which real-time statistics table was updated, and not time at which data in table space or partition was modified
GETPAGES BIGINT Number of getpages since last REORG or creation
SYS_START TIMESTAMP(12 Start time associated with the most recent transaction
SYS_END TIMESTAMP(12 Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12 Timestamp value per transaction or null

 SYSIBM.SYSTABLES_HIST

Contains rows from SYSTABLES. Can be inserted, updated, and deleted

Column name Data type Description
NAME VARCHAR(128) Name of the table, view, or alias
CREATOR VARCHAR(128) Schema of the owner of the table, view, or alias
DBNAME VARCHAR(24) For a table, or a view of tables, name of database that contains the tablespace named in TSNAME
TSNAME VARCHAR(24) For a table, or a view of one table, name of tablespace that contains the table. For a view of more than one table, the name of a tablespace that contains one of the tables
COLCOUNT SMALLINT Number of columns in table view. 0 if it is an alias
PCTPAGES SMALLINT Percentage of active tablespace pages that contain rows of table. A page is termed active if it is formatted for rows, regardless of whether it contains any. If tablespace is segmented, percentage is based on the number of active pages in the set of segments assigned to the table
PCTROWCOMP SMALLINT Percentage of rows compressed within the total number of active rows in the table. Includes any rows in a tablespace defined with COMPRESS YES
STATSTIME TIMESTAMP If RUNSTATS updates statistics, date and time of last invocation
CARDF FLAOT(8) Total number of rows in table or total number of LOBs in an auxiliary table
NPAGESF FLOAT(8) Total number of pages on which rows of the partition appear
AVGROWLEN INTEGER Average row length of the table specified in the tablespace
SPACEF FLOAT(8) Kilobytes of DASD storage
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSTABLES_PROFILES

Contains one row for each profile that is associated with a table in SYSIBM.SYSTABLES

Column name Data type Description
SCHEMA VARCHAR(128) The schema (qualifier) for the table
TBNAME VARCHAR(128) The table name
PROFILE_TYPE VARCHAR(32) The type of profile. Allowed values are ‘RUNSTATS’
VARCHAR(32) Internal use only
PROFILE_TEXT CLOB(1M) The text of the profile
ROWID ROWID The ROWID value for the LOB column of this table
PROFILE_UPDATE TIMESTAMP Last time the profile was updated, or timestamp when profile was inserted into the table
PROFILE_USED TIMESTAMP The last time the profile was used

SYSIBM.SYSTABLES_PROFILE_TEXT

Auxiliary table for the PROFILE_TEXT column of the SYSIBM.SYSTABLE_PROFILE table

Column name Data type Description
PROFILE_TEXT CLOB(2M) The complete text for the profile that the row represents

SYSIBM.SYSTABSTATS

Contains one row for each partition of a tablespace. Can be inserted, updated, and deleted

Column name Data type Description
CARD INTEGER Total number of rows in the partition
NPAGES INTEGER Total number of pages on which rows of the partition appear
PCTPAGES SMALLINT Percentage of total active pages in partition containing rows
NACTIVE INTEGER Number of active pages in the partition
PCTROWCOMP SMALLINT Percentage of rows compressed within the total number of active rows in the partition. Includes any row in a table space that is defined as COMPRESS YES
STATSTIME TIMESTAMP If RUNSTATS updated the statistics, the date and time when the last invocation of RUNSTATS updated the statistics
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
DBNAME VARCHAR(24) Database that contains the tablespace named in TSNAME
TSNAME VARCHAR(24) TableSpace that contains the table
PARTITION SMALLINT Partition number of the tablespace that contains the table
OWNER VARCHAR(128) Schema of the table
NAME VARCHAR(128) Name of the table
CARDF FLOAT Total number of rows in the partition

SYSIBM.SYSTABSTATS_HIST

Contains rows from SYSTABLES. Can be inserted, updated, and deleted

Column name Data type Description
NPAGES INTEGER Total number of pages on which rows of the partitions appear
STATSTIME TIMESTAMP If RUNSTATS updated statistics, date and time of last invocation
DBNAME VARCHAR(24) Database that contains the table space in TSNAME
TSNAME VARCHAR(24) Table space that contains the table
PARTITION SMALLINT Partition number of the tablespace that contains the table
OWNER VARCHAR(128) Schema of the table
NAME VARCHAR(128) Name of the table
CARDF FLOAT(8) Total number of rows in the partition
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSTRIGGERS

Contains one row for each trigger

Column name Data type Description
NAME VARCHAR(128) Name of the trigger and trigger package
SCHEMA VARCHAR(128) Schema of the trigger. This implicit or explicit qualifier for the trigger name is also used with collection ID of trigger package
DBID SMALLINT Internal identifier of the database for the trigger
OBID SMALLINT Internal identifier of the trigger
OWNER VARCHAR(128) Owner of the trigger
CREATEDBY VARCHAR(128) Primary authorization ID of the creator of the trigger
TBNAME VARCHAR(128) Name of the table or view
TBOWNER CHAR(1) Qualifier of the name of the table to which this trigger replies
TRIGTIME CHAR(1) Time when triggered actions are applied to the base table, relative to the event that activated the trigger:

B   Trigger is applied before the event

A   Trigger is applied after the event

I   Trigger is applied instead of the event

TRIGEVENT CHAR(1) Operation that activates the trigger:

I   Insert

D   Delete

U   Update

GRANULARITY CHAR(1) Trigger is executed once per

S   Statement

R   Row

CREATEDTS TIMESTAMP Time when the CREATE statement was executed for this trigger
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VARCHAR(6000 Not used
REMARKS VARCHAR(762) A character string provided by user with COMMENT ON
TRIGNAME VARCHAR(8) Unused
OWNERTYPE CHAR(1) Indicates the type of creator:

blank  Authorization ID

L     Role

ENVID INTEGER Internal environment identifier
RECREATED CHAR(1) Release of DB2 used to create object. Blank if prior to V9
CHAR(1) Reserved for IBM use
CHAR(1) Reserved for IBM use
INTEGER Reserved for IBM use
VARCHAR(96) Reserved for IBM use
SECURE CHAR(1) Trigger is secured:

N  No

Y  Yes

ALTEREDTS TIMESTAMP Time when trigger was last changed
ROWID ROWID ROWID column, created for the lob columns in this table
SQLPL CHAR(1) Indicates whether trigger supports SQL PL

Y     Advanced trigger that supports SQL PL

blank Basic trigger does not support SQL PL

ALTEREDTS TIMESTAMP Time when trigger was last changed
DEBUG_MODE CHAR(1) Whether trigger is enabled for debugging

1  Enabled for debugging

0  Not enabled for debugging

N   Can never be enabled for debugging

Blank Basic trigger that cannot be debugged

ASUTIME INTEGER Number of service units allowed for a single invocation of this trigger
WLM_ENVIRONMENT VARCHAR(96) Name of WLM environment used in a trigger is debunked
STATEMENT CLOB(2M) Text of entire CREATE TRIGGER used to create the object
REGENERATES TIMESTAMP Time when this version of trigger was last regenerated
VERSION VARCHAR(122) Version identifier of the trigger. Zero if basic trigger
ORIGINAL_

CONTOK

CHAR(8) Consistency token for trigger
ACTIVE CHAR(1) Active version of trigger

Y   Active version

N   Not the active version

Blank value of VERSION is zero length

WRAPPED CHAR(1) Y    Trigger text is obfuscated

Blank Trigger text is not obfuscated

SYSIBM.SYSTRIGGERS_STMT

An auxiliary table for the STATEMENT column of the SYSIBM.SYSTRIGGERS

Column name Data Type Description
STATEMENT CLOB(2M) Text of CREATE TRIGGER statement used to create the object

SYSIBM.SYSUSERAUTH

Records the system privileges that are held by users

Column name Data Type Description
GRANTOR VARCHAR(128) Authorization ID of user who granted the privileges
GRANTEE VARCHAR(128) Auth ID of user that holds privilege. Could also be PUBLIC
AUTHHOWGOT CHAR(1) Authorisation level of user from whom privileges were received. Not necessarily highest level of grantor

blank  Not applicable

C      DBCTL

D      DBADM

E      SECADM

G      ACCESSCTRL

L      SYSCTRL

M      DBMAINT

O      SYSOPR

S      SYSADM

BINDADDAUTH CHAR(1) GRANTEE can use WITH with ADD option:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

BSDSAUTH CHAR(1) GRANTEE can issue RECOVER BSDS command:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

CREATEDBAAUTH CHAR(1) GRANTEE can create databases and automatically receive DBADM authority over the new databases

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

CREATEDBCAUTH CHAR(1) GRANTEE can execute the CREATE DATABASE statement to create new databases and automatically receive DBCTRL authority over the new databases

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

CREATESGAUTH CHAR(1) GRANTEE can execute CREATE STOGROUP statement to create new storage groups

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

DISPLAYAUTH CHAR(1) GRANTEE can use DISPLAY commands

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

RECOVERAUTH CHAR(1) GRANTEE can use RECOVER INDOUBT command

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

STOPALLAUTH CHAR(1) GRANTEE can use STOP command

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

STOSPACEAUTH CHAR(1) GRANTEE can use STOSPACE utility

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

SYSADMAUTH CHAR(1) GRANTEE has system administration authority

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

SYSOPRAUTH CHAR(1) GRANTEE has system operator authority:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

TRACEAUTH CHAR(1) Grantee can issue START TRACE and STOP TRACE commands:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
MON1AUTH CHAR(1) GRANTEE can obtain IFC serviceability data

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

MON2AUTH CHAR(1) GRANTEE can obtain IFC data

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

CREATEALIASAUTH CHAR(1) GRANTEE can execute CREATE ALIAS statement

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

SYSCTRLAUTH CHAR(1) Grantee has SYSCTRL authority

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

BINDAGENTAUTH CHAR(1) GRANTEE has BINDAGENT privilege

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

ARCHIVEAUTH CHAR(1) GRANTEE can use ARCHIVE LOG command

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

GRANTEDTS TIMESTAMP Time when GRANT statement was executed. The value is ‘1985-04-01.00.00.00.000000’ for the one installation row
CREATETMTABAUTH CHAR(1) GRANTEE has CREATETMTABAUTH privilege:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

GRANTEETYPE CHAR(1) Type of grantee:

Blank   Authorization ID

L       Role

GRANTORTYPE CHAR(1) Indicate the type of grantor:

Blank  Authorization ID

L      Role

DEBUGSESSION

AUTH

CHAR(1) GRANTEE has DEBUGSESSION privilege:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

EXPLAINAUTH CHAR(1) GRANTEE can explain and prepare statements:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

SQLADMAUTH CHAR(1) GRANTEE has SQLADM authority:

blank   Privilege is not held

G       Privilege is held with the GRANT option

Y       Privilege is held without the GRANT option

SBBADMAUTH CHAR(1) GRANTEE has system DBADM authority:

blank   Privilege is not held

Y       Privilege is held without the GRANT option

DATAACCESSAUTH CHAR(1) Grantee has data ACCESSCTRL authority

blank   Privilege is not held

Y       Privilege is held without the GRANT option

ACCESSCTRLAUTH CHAR(1) Grantee has ACCESSCTRL authority:

blank   Privilege is not held

Y       Privilege is held without the GRANT option

CREATESECURE

AUTH

CHAR(1) GRANTEE can create secured objects (triggers and user-defined functions)

blank   Privilege is not held

Y       Privilege is held without the GRANT option

SYS_START TIMESTAMP(12 Start time associated with most recent transaction
SYS_END TIMESTAMP(12 Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12 Timestamp value per transaction or null

SYSIBM.SYSVARIABLES

Contains one row for each global variable that is created

Column data Data type Description
VARID BIGINT The identifier of the global variable
SCHEMA VARCHAR(128) Schema name of the global variable
NAME VARCHAR(128) Unqualified name of the global variable
OWNER VARCHAR(128) Authorization ID of the owner of the global variable
OWNERTYPE CHAR(1) Type of owner of the global variable:

L     The owner is a role

Blank The owner is an authorization ID

RELCREATED CHAR(1) Release of DB2 used to create the object
CREATEDTS TIMESTAMP Time at which the global variable was created
TYPESCHEMA VARCHAR(128) Schema name of data type. For built-in data types, is SYSIBM
TYPENAME VARCHAR(128) The unqualified name of the data type
DATATYPEID INTEGER For a built-in data type, 0. For a distinct type, the internal ID of the distinct type
SOURCETYPEID INTEGER For a built-in data type, 0. For a distinct type, the internal ID of the built-in data type on which the distinct type is based
LENGTH INTEGER Maximum length of a global variable. Zero if array data type
SCALE SMALLINT The scale of the global variable
CCSID INTEGER The CCSID of the global variable. 0 if array type
DEFAULT CHAR(3) The default value of the global variable. Can contain one of the following values:

N – no default value

S – SQL authorisation ID of the process

1 – String constant

2 – Floating-point constant

3 – Decimal constant

4 – Integer constant

5 – Hexadecimal character string

6 – UX string

7 – Graphic data type with default character string constant

8 – Character data type default value a character string constant

9 – DECFLOAT constant

If this column is on one of the following values, the default value of the global variable is the value of the indicated special register at the time that a default value is used:

AES CURRENT APPLICATION ENCODING SCHEME

ACT CURRENT CLIENT_ACCTNG

APN CURRENT CLIENT_APPLNAME

CID CURRENT CLIENT_USERID

WSN CURRENT CLIENT_WRKSTNNAME

DAT CURRENT DATE

DBG CURRENT DEBUG MODE

DEC CURRENT DECFLOAT ROUNDING MODE

DEG CURRENT DEGREE

EXP CURRENT EXPLAIN MODE

LCT CURRENT LOCALE LC_TYPE

MTT CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION

MEM CURRENT MEMBER

HNT CURRENT OPTIMIZATION HINT

CPP CURRENT PACKAGE PATH

CPS CURRENT PACKAGESET

PTH CURRENT PATH

PRC CURRENT PRECISION

RFA CURRENT REFRESH AGE

RVS CURRENT ROUTINE VERSION

RUL CURRENT RULES

SCH CURRENT SCHEMA

SVR CURRENT SERVER

TIM CURRENT TIME

TST CURRENT TIMESTAMP

STZ SESSION TIME ZONE

U SESSION_USER

ROWID ROWID ROWID value for the lob columns in this table
DEFAULTEXT CLOB(2M) The text of the default value of the global variable
BLOB(2M) Reserved for IBM use
ENVID INTEGER Internal environment identifier
REMARKS VARCHAR(762) A character string about global variable provided by COMMENT
IBMREQD CHAR(1) Y indicates row came from (MRM) tape

SYSIBM.SYSVARIABLEAUTH

One row for each privilege of each authorization ID that has privileges on a global variable

Column name Data type Description
GRANTOR VARCHAR(128) Grantor of the privilege
GRANTORTYPE CHAR(1) Type of grantor:

blank Grantor is an authorization ID

L Grantor is a role

GRANTEE VARCHAR(128) Holder of the privilege
GRANTEETYPE CHAR(1) Type of grantee:

blank    Grantee is an authorization ID

L        Grantee is a role

P       Grantee is a package. Grantee is a package if COLLID is a value other than blank

SCHEMA VARCHAR(128) Schema name of the global variable
NAME VARCHAR(128) Unqualified name of the global variable
COLLID VARCHAR(128) If grantee is a package, this value is the COLLID of package
CONTOKEN CHAR(8) If grantee is a package, this value is the consistency token of the DBRM from which the package is derived. Otherwise, blank
READAUTH CHAR(1) Privilege to read the global variable:

blank the READ privilege is not held

G     The READ privilege is held with the GRANT option

Y     The READ privilege is held without the GRANT option

WRITEAUTH CHAR(1) Privilege to write in a global variable:

blank not held

G     held with the GRANT option

Y     held without the GRANT option

AUTHHOWGOT CHAR(1) The authorization level of the user who granted the privileges:

blank Not applicable

E     SECADM

G     ACCESSCTRL

S     SYSADM

T     DATAACCESS

Not necessarily the highest authority level of the grantor

GRANTEDTS TIMESTAMP The time when the GRANT statement was executed
IBMREQD CHAR(1) Indicates that the row came from the MRM tape
SYS_START TIMESTAMP(12) Start time associated with the most recent transaction
SYS_END TIMESTAMP(12) Time row is deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or no

SYSIBM.SYSVARIABLES_DESC

Table is an auxiliary table for the SYSIBM.SYSVARIABLES table

Column name Data type Description
BLOB(2M) IBM internal use only

SYSIBM.SYSVARIABLES_TEXT

Table is an auxiliary table for the DEFAULTTEXT column SYSIBM.SYSVARIABLES table

Column name Data type Description
DEFAULTTEXT CLOB(2M) Text of the default value of the global variable

SYSIBM.SYSVIEWDEP

Records the dependencies of views on tables, functions, and other views

Column name Data type Description
BNAME VARCHAR(128) Name of object on which view is dependent. If object type is a function (BTYPE=’F’), name is the specific name of the function
BCREATOR VARCHAR(128) Authorization ID of owner of BNAME. For function, schema name of BNAME
BTYPE CHAR(1) Type of object:

F   Function

M   Materialized query table

T   Table

V   View

DNAME VARCHAR(128) Name of the view
DCREATOR VARCHAR(128) Schema of the view
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
BSCHEMA VARCHAR(128) Schema of BNAME
DTYPE CHAR(1) Type of table

F  SQL Function

M  Materialized

V  View

DOWNER VARCHAR(128) Auth ID of owner of view, blank for views created prior to V9
OWNERTYPE CHAR(1) Indicates type of owner:

blank   Authorization ID

L       Role

SYS_START TIMESTAMP(12) Start time associated with most recent transaction
SYS_END TIMESTAMP(12) Time row deleted from system-period temporal table
TRANS_START TIMESTAMP(12) Timestamp value per transaction or null

SYSIBM.SYSVIEWS

Contains one or more rows for each view

Column name Data type Description
NAME VARCHAR(128) Name of the view
CREATOR VARCHAR(128) Schema of the view
SMALLINT Not used
CHECK CHAR(1) Whether WITH CHECK OPTION clause was specified in the CREATE VIEW statement:

N   No

C   Yes with the cascaded semantic

Y   Yes with the local semantic

The value is N if the view has no where clause

IBMREQD CHAR(1) Y indicates row came from basic MRM tape
VARCHAR(1500) Not used
PATHSCHEMAS VARCHAR(2048) SQL path at time view was defined. Path is used to resolve unqualified data type and function names used in view definition
RELCREATED CHAR(1) Release of DB2 used to create the object. Blank if prior to V9
TYPE CHAR(1) Type of table:

F   SQL function

M   Materialized Query Table

V   View

REFRESH CHAR(1) Refresh mode

D     An MQT with a deferred refresh mode

Blank Not an mqt

ENABLE CHAR(1) MQT is enabled or disabled for query optimization:

Y    Enabled

N    Disabled

Blank Row describes a view

MAINTENANCE CHAR(1) Maintenance mode

S     Maintained by system

U     Maintained by user

Blank Row describes a view

REFRESH_TIME TIMESTAMP For REFRESH = ‘D’ and MAINTENANCE = ‘S’, timestamp of REFRESH TABLE statement that last refreshed data
ISOLATION CHAR(1) Isolation level when MQT is created or altered from base table

R     RR (repeatable read)

S     CS (cursor stability)

T     RS (read stability)

U     UR (uncommitted read)

Blank Not a materialized query table

SIGNATURE VARCHAR(1024) Contains the internal description. Used for MQT tables
APP_ENCODING_

CCSID

INTEGER CCSID of the current application encoding scheme at the time object was created. For objects created priorto V8, value is 0
OWNER VARCHAR(128) Authorization ID of the owner of the view
OWNERTYPE CHAR(1) Type of owner:

blank  authorisation ID

L      Role

ENVID INTEGER Internal environment identifier
ROWID ROWID ROWID column, created for the lob columns in this table
STATEMENT CLOB(2M) Text of entire CREATE VIEW statement used to create object
BLOB(1G) Internal use only

SYSIBM.SYSVIEWS_STMT

Auxiliary table for the STATEMENT column of the SYSIB,.SYSVIEWS table

Column name Data type Description
STATEMENT CLOB(2M) The text of the statement that was used to create the object

SYSIBM.SYSVIEWS_TREE

An auxiliary table for the PARSETREE column of the SYSIBM.SYSVIEWS table

Column name Data type Description
BLOB(2M) Internal use only

SYSIBM.SYSVOLUMES

Contains one row for each volume of each storage group

Column name Data type Description
SGNAME VARCHAR(128) Name of the storage group
SGCREATOR VARCHAR(128) Authorization ID of the owner of the storage group
VOLID VARCHAR(18) Serial number of the volume or * if SMS-managed
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
RELCREATED CHAR(1) Release of DB2 used to create object. Blank if created prior to V9

SYSIBM.SYSXMLRELS

Contains one row for each XML table that is created for an XML column

Column name Data type Description
TBOWNER VARCHAR(128) Schema or qualifier of the base table
TBNAME VARCHAR(128) Name of the base table
COLNAME VARCHAR(128) Name of the XML column in the base table
XMLTBOWNER VARCHAR(128) Schema or qualifier of the XML table
XMLTBNAME VARCHAR(128) Name of the XML table
XMLRELOBID INTEGER Internal identifier of relationships between base table and XML table
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
CREATEDTS TIMESTAMP Time when the XML table was created
RELCREATED CHAR(1) The release of DB2 that is used to create the object

SYSIBM.SYSXMLSTRINGS

Each row contains a single string and its unique ID that are used to condense XML data. The string can be an element name, attribute name, name space prefix, or namespace URL

Column name Data type Description
STRINGID INTEGER Unique ID for the string
STRING VARCHAR(1000) The string data
IBMREQD CHAR(1) Y indicates row came basic MRM tape

SYSIBM.USERNAME

Each row is used to carry out one of the following operations: Outbound ID translation or Inbound ID translation and ‘come from’ checking

Column name Data type Description
TYPE CHAR(1) How the row is to be used:

O   For outbound translation

I   For inbound translation and ‘come from’ checking

S   For outbound system AUTHID to establish a trusted connection

AUTHID VARCHAR(128) Authorisation ID to be translated. Applies to any auth ID if blank
LINKNAME VARCHAR(24) Identifies VTAM or TCP/IP network locations associated with this row
NEWAUTHID VARCHAR(128) Translated value of AUTHID. Blank specifies no translation
PASSWORD VARCHAR(24) Password to accompany an outbound request, if passwords are not encrypted by RACF
IBMREQD CHAR(1) Y indicates row came from basic MRM tape

SYSIBM.SYSXMLTYPMOD

Contains rows for XML type modifiers of XML columns. Can be inserted, updated and deleted

Column name Data type Description
XML_TYPEMOD_

ID

INTEGER An ID generated for XML type modifier, it is an identity column and primary key
TYPE_

ANNOTATION

CHAR(1) Indicate whether there is a type annotation

Y   WITH type annotation

N   with no type annotation

CREATEDTS TIMESTAMP The timestamp when is type modifiers created
ALTEREDTS TIMESTAMP The timestamp when is type modifiers altered
RELCREATED CHAR(1) The release of DB2 that is used to create the object
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
CREATEDBY VARCHAR(128) Premier authorization ID of the user who created the database

SYSIBM.SYSXMLTYPMSCHEMA

Contains the XML schema information for ann XML type modifier

Column name Data type Description
XML_

TYPEMOD_ID

INTEGER The ID for the XML type modifier
XSROBJECTID INTEGER The id for an XML schema registered in XSR
ELEMENT_

NAMESPACE

INTEGER String id for namespace name of root element node. By default, it is TARGETNAMESPACE of XML schema. 0 if it is NO NAMESPACE
ELEMENT_NAME INTEGER String id for local name of the root element node. 0 if not specified
CREATEDTS TIMESTAMP The timestamp when this type modifier is created
ALTEREDTS TIMESTAMP The timestamp when this type modifier is altered
RELCREATED CHAR(1) The the release of DB2 that is used to create the object
IBMREQD CHAR(1) Y indicates row came from basic MRM tape
]]>
Exceptions in Db2 12 https://www.bmc.com/blogs/db2-exceptions/ Mon, 01 Apr 2019 19:47:05 +0000 http://s27433.p402.sites.pressdns.com/?p=13261 (This article is part of our Db2 Guide. Use the right-hand menu to navigate.) Status Code Status name Affected objects Corrective action(s) ACHKP Auxiliary CHECK pending Base table space, LOB table space 1.  Update or delete invalid LOBs and XML objects using SQL 2.  Run CHECK DATA with appropriate SCOPE option to verify the validity […]]]>

(This article is part of our Db2 Guide. Use the right-hand menu to navigate.)

Status Code Status name Affected objects Corrective action(s)
ACHKP Auxiliary CHECK pending Base table space, LOB table space 1.  Update or delete invalid LOBs and XML objects using SQL

2.  Run CHECK DATA with appropriate SCOPE option to verify the validity of LOBs and XML objects

AUXW Auxiliary warning Base table space 1.  One update or delete invalid LOBs and XML using SQL

2.  If an orphan LOB or a version mismatch exists between the base table and the auxiliary index, use REPAIR to delete the LOB from the LOB table space

3.  Check data to verify the validity of LOBs and XML objects

LOB table space 1.  Update or delete invalid LOBs and XML using SQL

2.  If an orphan LOB or a version mismatch exists between the base table and the auxiliary index, use REPAIR to delete the LOB from the Lob table space

3.  Run CHECK LOB to verify the validity of the LOBs and XML objects

CHECKP CHECK

Pending

Table space, base table space Check and correct RI constraints using CHECK DATA

 

If a tablespace is in both REORG-pending and CHECK pending (or auxiliary CHECK-pending) status, run REORD first and then use CHECK DATA

Partitioning index, non-partitioning index, index on auxiliary table 1.  Run CHECK INDEX on the index

2.  If errors, run REBUILD INDEX

LOB table space Run CHECK LOB. If errors:

1.  Correct defects found in the LOB table space with REPAIR

2.  Run CHECK LOB again

COPY COPY

pending

Table space, table space partition Take an image copy (best action), use – START DATABASE(db) SPACENAM(ts) ACCESS FORCE, or run REPAIR and reset copy flag
DBETE Database

Exception table (DBET) error

Table space, partition, index, index partition, logical index partition Contact IBM support
GRECP Group buffer pool (GBP) recover pending Table space, index space, RECOVER the object, or use the START DATABASE command
ICOPY Informational COPY pending Partitioned index, non-partitioned index, index on auxiliary table Copy the affected index
NOT LOGGED table space Copy the affected table space
LPL Logical page list Table spaces, index space ·        START DATABASE ACCESS RA/W or R/O

·        Run RECOVER or REBUILD INDEX utility

·        Run LOAD REPLACE

·        DROP the object

PRO Persistent Read Only Table space partitions
ARDBP Advisory REBUILD pending Index Run REBUILD on affected index
RBDP REBUILD pending Physical or logical index partition Run REBUILD or RECOVER on the affect index partition
RBDP* Logical partitions of non-partitioned secondary indexes Run REBUILD INDEX PART or RECOVER on the affected logical partitions
PSRBD Non-partitioned secondary index, index on auxiliary table Run REBUILD INDEX ALL, RECOVER or REBUILD INDEX
Note: The following actions also reset the REBUILD status.

 

·        LOAD REPLACE with table space or partition

·        REPAIR SET INDEX with NORBDPEND on index part (however this action doesn’t correct inconsistencies)

·        Start database ACCESS FORCE (however this action doesn’t correct inconsistencies)

·        REORG INDEX SORTDATA on the index

RECP RECOVER pending Table space Run the RECOVER utility on the affected object
Table space partition Recover the logical partition
Index on auxiliary table Run REBUILD INDEX, RECOVER INDEX, or REORG SORTDATA
Index space Run one of the following utilities on the affected index space:

 

·        REBUILD INDEX

·        RECOVER INDEX

·        REORG INDEX SORTDATA

Any The following actions also reset the RECOVER status:

 

·        LOAD REPLACE with table space or partition

·        REPAIR SET TABLESPACE or INDEX with NORCVRPEND on index part (however this action doesn’t correct inconsistencies)

·        Start database ACCESS FORCE (however this action doesn’t correct inconsistencies)

REFP Refresh pending Table space, index space Run a LOAD REPLACE. The object will also be in RECP or RBDP status and will need appropriate action taken
REORP REORG

pending

Table space Perform one of the following:

·        LOAD REPLACE an entire table space

·        REORG TABLESPACE SHRLEVEL NONE

·        REORD TABLESPACE PART n:m SHRLEVEL NONE

·        REORD TABLESPACE REFERENCE or CHANGE

Partitioned table space For rows <=32 K;

Run REORG TABLESPACE SHRLEVEL NONE SORTDATA

 

For rows > 32 K;

1.  Run REORG TABLESPACE UNLOAD ONLY

2.  Run LOAD TABLESPACE FORMAT UNLOAD

AREO* Advisory REORG Table space Run one of the following utilities:

 

·        REORG TABLESPACE

·        LOAD REPLACE

·        REPAIR TABLESPACE

Index space Run one of the following utilities:

 

·        REORG TABLESPACE

·        LOAD REPLACE

·        REORG INDEX

·        REPAIR INDEX

AREOR Advisory REORG Table space Run one of the following utilities:

 

·        REORG TABLESPACE

·        REPAIR TABLESPACE

Index Space Run one of the following utilities:

 

·        REORG TABLESPACE

·        LOAD REPLACE

·        REBUILD INDEX

·        REPAIR INDEX

RESTP Restart pending Table space, partition, index space, physical index partition Objects are unavailable until back-out work is complete or until restart is canceled and a conditional restart or cold start is performed
STOPE Stop error Table space, index space RECOVER the tablespace or index space
WEPR Write error page range Page range in error Run a RECOVER utility on affected data

Disclaimer: This Db2® 12 for z/OS Reference Guide was developed to help users in their daily activities in administrating and programming in Db2 for z/OS. There are no guarantees expressed or implied with the contents in this guide. We want to provide a quality and useful reference for users. Please notify us of any mistakes or errors in this reference guide at blogs@bmc.com. Db2 is a registered trademark of the IBM Corporation.

]]>