COBOL applications written using a mainframe COBOL dialect require that any DB2 LUW database accessed by such an application use an EBCDIC collating sequence. The HCO Create Database Tool enables you to create a compatible DB2 LUW database on a Windows or UNIX platform for access from a COBOL application coded using a mainframe COBOL dialect.
The Create Database Tool is available using the mfhco create command and via a GUI. See the mfhco create command and To create a database topics for additional details.
Before using the Create Database tool to create a database, set the MFCODESET environment variable to an appropriate country code value listed on the Supported Country Codes topic. A correct setting of MFCODESET ensures that the database EBCDIC collating sequence matches the CHARSET EBCDIC behavior of your application. The correct code for a given country could vary depending on your platform and whether or the database requires Euro (€) character translation enablement.
In light of this, we recommend that you create your UNIX DB2 LUW database using the UNIX mfhco create command-line tool.
You can determine which code page was used to create an existing database by connecting to the database, starting a DB2 command prompt, and issuing a get db config command. See the IBM GET DATABASE CONFIGURATION command documentation for details.
The following is an example of get db config output showing a Database code page of 1252:
C:\Program Files\IBM\SQLLIB\BIN>db2 get db config Database Configuration for Database Database configuration release level = 0x1400 Database release level = 0x1400 Database territory = En_US Database code page = 1252 Database code set = 1252 Database country/region code = 1 Database collating sequence = UNIQUE Alternate collating sequence (ALT_COLLATE) = Number compatibility = OFF Varchar2 compatibility = OFF