This section discusses two examples of using the application server default CHARNAME JAPANESE-ENGLISH (CCSID=5035). The first example shows how to specify this CHARNAME and enable mixed string manipulation. The second example shows how to specify this CHARNAME without enabling mixed string manipulation and how to prevent the verification of character strings that contain mixed data. (Mixed string manipulation is the ability to specify mixed SQL identifiers, such as columns.)
Suppose that you want to use the mixed JAPANESE-ENGLISH CCSID, 5035, as your application server default CCSID, and you also want to have the ability to do mixed string manipulation. To do this, set up your environment as follows:
The CCSID you want to use is 5035. You must define the controller to use the character set 1172 for the SBCS character set, and code page 1027 for the SBCS code page. For the DBCS characters, specify the character set 370 and the code page 300.
The application server default CCSID for a newly installed database manager is 500 (CHARNAME=INTERNATIONAL). After installation, the SYSTEM.SYSOPTIONS catalog table contains the following information:
CHARNAME=INTERNATIONAL (the name of 500) CCSIDSBCS=500 CCSIDMIXED=0 CCSIDGRAPHIC=0 DBCS=NO CHARSUB=SBCS .............
Start the application server. Specify CHARNAME=JAPANESE-ENGLISH. Message ARI0159D is displayed that informs you that the new CHARNAME (JAPANESE-ENGLISH) is different from the current default (INTERNATIONAL). You are prompted to enter either 1 (YES) to change the default, 0 (NO) to leave the default unchanged, or 111 (QUIT) to shut down the application server. Type 1 (for YES) and press ENTER.
After the application server is started, the SYSTEM.SYSOPTIONS catalog table should contain the following information:
CHARNAME=JAPANESE-ENGLISH CCSIDSBCS=1027 (the single-byte portion of 5035) CCSIDMIXED=5035 CCSIDGRAPHIC=4396 (the double-byte portion of 5035) DBCS=NO CHARSUB=SBCS .................
The changes are now complete. The SYSTEM.SYSOPTIONS catalog table contains the following information:
CHARNAME=JAPANESE-ENGLISH CCSIDSBCS=1027 (the single-byte portion of 5035) CCSIDMIXED=5035 CCSIDGRAPHIC=4396 (the double-byte portion of 5035) DBCS=YES CHARSUB=MIXED .................
DSQG JAPANESE-ENGLISH,,YES
Suppose that you want to use the mixed JAPANESE-ENGLISH CCSID, 5035, as your application server default CCSID. Because you must be able to both store DBCS characters, and retrieve DBCS characters from graphic columns (GRAPHIC, VARGRAPHIC, or LONG VARGRAPHIC), you cannot specify an ENGLISH single-byte CCSID such as 37 or 1027. Also suppose that you do not want the ability to do mixed string manipulation, and you want to prevent the database manager from verifying character strings for mixed data. In addition, you also want character columns that are created without the explicit specification of a CCSID or a subtype to default to the SBCS subtype and CCSID. To do this, set up your environment as follows:
The CCSID you want to use is 5035. You must define the controller to use the character set 1172 for the SBCS character set, and code page 1027 for the SBCS code page. For the DBCS characters, specify the character set 370 and the code page 300.
The application server default CCSID for a newly installed database manager is 500 (CHARNAME=INTERNATIONAL). After installation, the SYSTEM.SYSOPTIONS catalog table contains the following information:
CHARNAME=INTERNATIONAL (the name of 500) CCSIDSBCS=500 CCSIDMIXED=0 CCSIDGRAPHIC=0 DBCS=NO CHARSUB=SBCS .............
Start the application server. Specify CHARNAME=JAPANESE-ENGLISH. Message ARI0159D is displayed that informs you that the new CHARNAME (JAPANESE-ENGLISH) is different from the current default (INTERNATIONAL). You are prompted to enter either 1 (YES) to change the default, 0 (NO) to leave the default unchanged, or 111 (QUIT) to shut down the application server. Type 1 (for YES) and press ENTER.
After the application server is started, the SYSTEM.SYSOPTIONS catalog table should contain the following information:
CHARNAME=JAPANESE-ENGLISH CCSIDSBCS=1027 (the single-byte portion of 5035) CCSIDMIXED=5035 CCSIDGRAPHIC=4396 (the double-byte portion of 5035) DBCS=NO CHARSUB=SBCS .................
DSQG JAPANESE-ENGLISH,,YES
For an application requester to be able to use graphic data, the application requester must use a mixed CCSID as the default. One exception exists. If the application requester is connecting to a local application server, the application server responds to the application requester with the expectation that the application requester is using the same mixed CCSID as the application server is using. If the user specified a different value for the SQLGLOB CHARNAME parameter, the application server ignores this value. However, folding performed by the application requester is always based on the application requester's CHARNAME setting. For more information on the application requester's CHARNAME setting, see Setting the Application Requester Default CHARNAME and CCSIDs. In this case, if the application requester CHARNAME and the application server CHARNAME are not the same, unexpected results can occur.
To identify either the classification table or the translation table that is used for folding characters to uppercase for a specific CCSID, do the following: