DB2 Version 10.1 for Linux, UNIX, and Windows

sqledbterritoryinfo data structure

This structure is used to provide code set and territory options to the sqlecrea API.

Table 1. Fields in the SQLEDBTERRITORYINFO Structure
Field Name Data Type Description
SQLDBCODESET CHAR(9) Database code set.
SQLDBLOCALE CHAR(5) Database territory.

API and data structure syntax

SQL_STRUCTURE sqledbcountryinfo
{
        char sqldbcodeset[SQL_CODESET_LEN + 1]; 
        char sqldblocale[SQL_LOCALE_LEN + 1];
};
typedef SQL_STRUCTURE sqledbcountryinfo SQLEDBTERRITORYINFO;

COBOL Structure

* File: sqlenv.cbl
01 SQLEDBTERRITORYINFO.
    05 SQLDBCODESET           PIC X(9).
    05 FILLER                 PIC X.
    05 SQLDBLOCALE            PIC X(5).
    05 FILLER                 PIC X.
*