Catalog functions return information about the DB2® UDB for iSeries™ database with which you are working.
To process ODBC SQLTables requests, logical files are built over the server cross reference file QADBXREF in library QSYS. QADBXREF is a database file for database-maintained cross-reference information that is part of the dictionary function for the server.
The following are the actions for SQLTables when TableType is set to the following:
Non-relational files (files with more than one format) are not selected. Also not selected are indexes, flat files and IDDU-defined files.
The result sets returned by the catalog functions are ordered by table type. In addition to the TABLE and VIEW types, the iSeries server has the data source-specific type identifiers of PHYSICAL and LOGICAL files. The PHYSICAL type is handled as a TABLE, and the LOGICAL type is handled as a VIEW.
To process ODBC SQLColumns requests, a logical file is built over the server cross-reference file QADBIFLD in the QSYS library. This logical file selects all relational database files except for indexes. QADBIFLD is a database file for database-maintained cross-reference information that is part of the dictionary function for the server. Specifically, this includes database file column and field information.