Testing for valid DBCS characters

The Kanji class test tests for valid Japanese graphic characters. This testing includes Katakana, Hiragana, Roman, and Kanji character sets.

About this task

Kanji and DBCS class tests are defined to be consistent with their IBM Z® definitions. Both class tests are performed internally by converting the double-byte characters to the double-byte characters defined for z/OS®. The converted double-byte characters are tested for DBCS and Japanese graphic characters.

The Kanji class test is done by checking the converted characters for the range X'41' through X'7E' in the first byte and X'41' through X'FE' in the second byte, plus the space character X'4040'.

The DBCS class test tests for valid graphic characters for the code page.

The DBCS class test is done by checking the converted characters for the range X'41' through X'FE' in both the first and second byte of each character, plus the space character X'4040'.

Related references  
Class condition (COBOL for Linux on x86 Language Reference)