Example of creating a custom character table

The method of including '' (Shift-JIS: 0x878A, IBM Kanji: 0x446D) in the custom character table when you convert from Shift-JIS code to IBM Kanji code is explained below as an example.

The example explains about the case where HULFT is installed in HULFT library.

(1) Editing the custom character file

Edit the custom character table file for the Shift-JIS to IBM Kanji conversion with SEU

Content of the custom character table (GTSTOI)

*
* FROM SJIS TO IBM KANJI
*

* DEFAULT OUTPUT CODE
DEFAULTCODE=0X44E9

*INCODE *OUTCODE
0X878A 0X446D

The lines starting with '*' in the file shown above are comments.

Lines starting with 0x7B are also comments. However, the character represented by 0x7B varies depending on the code set. In the code sets for Japanese, 0x7B represents '#.'

(2) Creating the conversion file

Create the custom character conversion file.

CALL HULFT/UTLGTFEXTD PARM('I=SI')

(3) Confirming the conversion file

Verify the content of the conversion file in standard output.

CALL HULFT/UTLGTFEXTD PARM('O=SI')

(4) Including the conversion table into HULFT

Incorporate the custom character table into HULFT

Set '1' or '2' for the Use Custom Character Table (GAIJIFILE) in the System Environment Settings, and restart HULFT. For the System Environment Settings, refer to System Environment Settings.