Using a custom character table
You can create a custom character table file and then translate it to a custom character conversion file by using the Custom Character Table Translate command. The custom character table file is stored in the "GTABLE" file in the library where HULFT is installed. The custom character conversion file is stored in the "GTEXTD" file in the library where HULFT is installed.
Input Encoding |
Output Encoding |
Custom Character Table File |
Custom Character |
Default Used |
---|---|---|---|---|
IBM Kanji |
EUC-JP |
GTITOE |
GTITOE |
0xA2A2 |
IBM Kanji |
Shift-JIS |
GTITOS |
GTITOS |
0x81A0 |
IBM Kanji |
JEF |
GTITOJ |
GTITOJ |
0xA2A2 |
IBM Kanji |
KEIS |
GTITOK |
GTITOK |
0xA2A2 |
IBM Kanji |
NEC |
GTITON |
GTITON |
0x7F7F |
IBM Kanji |
UTF-8 |
GTITO8 |
GTITO8 |
0xE296A1 |
EUC-JP |
IBM Kanji |
GTETOI |
GTETOI |
0x44E9 |
EUC-JP |
UTF-8 |
GTETO8 |
GTETO8 |
0xE296A1 |
Shift-JIS |
IBM Kanji |
GTSTOI |
GTSTOI |
0x44E9 |
Shift-JIS |
UTF-8 |
GTSTO8 |
GTSTO8 |
0xE296A1 |
JEF |
IBM Kanji |
GTJTOI |
GTJTOI |
0x44E9 |
JEF |
UTF-8 |
GTJTO8 |
GTJTO8 |
0xE296A1 |
KEIS |
IBM Kanji |
GTKTOI |
GTKTOI |
0x44E9 |
KEIS |
UTF-8 |
GTKTO8 |
GTKTO8 |
0xE296A1 |
NEC |
IBM Kanji |
GTNTOI |
GTNTOI |
0x44E9 |
NEC |
UTF-8 |
GTNTO8 |
GTNTO8 |
0xE296A1 |
UTF-8 |
IBM Kanji |
GT8TOI |
GT8TOI |
0x44E9 |
UTF-8 |
EUC-JP |
GT8TOE |
GT8TOE |
0xA2A2 |
UTF-8 |
Shift-JIS |
GT8TOS |
GT8TOS |
0x81A0 |
UTF-8 |
JEF |
GT8TOJ |
GT8TOJ |
0xA2A2 |
UTF-8 |
KEIS |
GT8TOK |
GT8TOK |
0xA2A2 |
UTF-8 |
NEC |
GT8TON |
GT8TON |
0x7F7F |
UTF-8 |
GB18030 |
GT8TOG |
GT8TOG |
0xA1F5 |
UTF-8 |
IBM Simplified Chinese |
GT8TOC |
GT8TOC |
0x44E9 |
GB18030 |
UTF-8 |
GTGTO8 |
GTGTO8 |
0xE296A1 |
GB18030 |
IBM Simplified Chinese |
GTGTOC |
GTGTOC |
0x44E9 |
IBM Simplified Chinese |
UTF-8 |
GTCTO8 |
GTCTO8 |
0xE296A1 |
IBM Simplified Chinese |
GB18030 |
GTCTOG |
GTCTOG |
0xA1F5 |
(1) Custom Character Table Translate command
Program interface
CALL library name/UTLGTFEXTD PARM(['LIB=library name'] ['I=IE|IS|IJ|IK|IN|I8|EI|E8|SI|S8|JI|J8|KI|K8|NI|N8|8I|8E|8S|8J|8K|8N|8G|8C|G8|GC|C8|CG|A'] ['O=IE|IS|IJ|IK|IN|I8|EI|E8|SI|S8|JI|J8|KI|K8|NI|N8|8I|8E|8S|8J|8K|8N|8G|8C|G8|GC|C8|CG|A']
['P=filename'] ['G'] ['OUTPUT=filename']['EXIT' CL Variable name])
Parameter explanation
- LIB=library name
-
Library name in which HULFT is installed (HULFT by default)
Specify this parameter in alphanumeric characters within 10 bytes starting with an alphabetic character.
- I=IE|IS|IJ|IK|IN|I8|EI|E8|SI|S8|JI|J8|KI|K8|NI|N8|8I|8E|8S|8J|8K|8N|8G|8C|G8|GC|C8|CG|A
-
Type of translation to be executed (Optional)
You can omit this parameter only if you specify 'O=' parameter.
IE :
Translate the custom character table for IBM Kanji to EUC-JP conversion
IS :
Translate the custom character table for IBM Kanji to Shift-JIS conversion
IJ :
Translate the custom character table for IBM Kanji to JEF conversion
IK :
Translate the custom character table for IBM Kanji to KEIS conversion
IN :
Translate the custom character table for IBM Kanji to NEC conversion
I8 :
Translate the custom character table for IBM Kanji to UTF-8 conversion
EI :
Translate the custom character table for EUC-JP to IBM Kanji conversion
E8 :
Translate the custom character table for EUC-JP to UTF-8 conversion
SI :
Translate the custom character table for Shift-JIS to IBM Kanji conversion
S8 :
Translate the custom character table for Shift-JIS to UTF-8 conversion
JI :
Translate the custom character table for JEF to IBM Kanji conversion
J8 :
Translate the custom character table for JEF to UTF-8 conversion
KI :
Translate the custom character table for KEIS IBM to Kanji conversion
K8 :
Translate the custom character table for Shift-JIS to UTF-8 conversion
NI :
Translate the custom character table for NEC IBM to Kanji conversion
N8 :
Translate the custom character table for NEC to UTF-8 conversion
8I :
Translate the custom character table for UTF-8 to IBM Kanji conversion
8E :
Translate the custom character table for UTF-8 to EUC-JP conversion
8S :
Translate the custom character table for UTF-8 to Shift-JIS conversion
8J :
Translate the custom character table for UTF-8 to JEF conversion
8K :
Translate the custom character table for UTF-8 to KEIS conversion
8N :
Translate the custom character table for UTF-8 to NEC conversion
8G :
Translate the custom character table for UTF-8 to GB18030 conversion
8C :
Translate the custom character table for UTF-8 to IBM Simplified Chinese conversion
G8 :
Translate the custom character table for GB18030 to UTF-8 conversion
GC :
Translate the custom character table for GB18030 to IBM Simplified Chinese conversion
C8 :
Translate the custom character table for IBM Simplified Chinese to UTF-8 conversion
CG :
Translate the custom character table for IBM Simplified Chinese to GB18030 conversion
A :
Translate all custom character tables
- O=IE|IS|IJ|IK|IN|I8|EI|E8|SI|S8|JI|J8|KI|K8|NI|N8|8I|8E|8S|8J|8K|8N|8G|8C|G8|GC|C8|CG|A
-
Output the content of the custom character table conversion file (Optional)
You can omit this parameter only when you specify 'I=' parameter.
If you specify 'P=' parameter, the contents are output to the specified file, while if it is not specified, they are output to the standard output.
IE :
Output the content of the custom character table for IBM Kanji to EUC-JP conversion
IS :
Output the content of the custom character table for IBM Kanji to Shift-JIS conversion
IJ :
Output the content of the custom character table for IBM Kanji to JEF conversion
IK :
Output the content of the custom character table for IBM Kanji to KEIS conversion
IN :
Output the content of the custom character table for IBM Kanji to NEC conversion
I8 :
Output the content of the custom character table for IBM Kanji to UTF-8 conversion
EI :
Output the content of the custom character table for EUC-JP to IBM Kanji conversion
E8 :
Output the content of the custom character table for EUC-JP to UTF-8 conversion
SI :
Output the content of the custom character table for Shift-JIS to IBM Kanji conversion
S8 :
Output the content of the custom character table for Shift-JIS to UTF-8 conversion
JI :
Output the content of the custom character table for JEF to IBM Kanji conversion
J8 :
Output the content of the custom character table for JEF to UTF-8 conversion
KI :
Output the content of the custom character table for KEIS to IBM Kanji conversion
K8 :
Output the content of the custom character table for KEIS to UTF-8 conversion
NI :
Output the content of the custom character table for NEC to IBM Kanji conversion
N8 :
Output the content of the custom character table for NEC to UTF-8 conversion
8I :
Output the content of the custom character table for UTF-8 to IBM Kanji conversion
8E :
Output the content of the custom character table for UTF-8 to EUC-JP conversion
8S :
Output the content of the custom character table for UTF-8 to Shift-JIS conversion
8J :
Output the content of the custom character table for UTF-8 to JEF conversion
8K :
Output the content of the custom character table for UTF-8 to KEIS conversion
8N :
Output the content of the custom character table for UTF-8 to NEC conversion
8G :
Output the content of the custom character table for UTF-8 to GB18030 conversion
8C :
Output the content of the custom character table for UTF-8 to IBM Simplified Chinese conversion
G8 :
Output the content of the custom character table for GB18030 to UTF-8 conversion
GC :
Output the content of the custom character table for GB18030 to IBM Simplified Chinese conversion
C8 :
Output the content of the custom character table for IBM Simplified Chinese to UTF-8 conversion
CG :
Output the content of the custom character table for IBM Simplified Chinese to GB18030 conversion
A :
Output the contents of all custom character tables
- P=filename
-
Output destination of the content of the registered custom character table (Optional)
Specify this parameter in the format of 'Library name/File name(Member name).'
You can specify this parameter only if you specify 'O=' parameter.
As the output format is the same as the custom character table file (fixed filename), if the contents output in the file are copied or renamed, etc., and reflected in the custom character table file, they can be used as they are.
- G
-
Control of error messages (Optional)
When omitted, HULFT displays error messages.
- OUTPUT=filename
-
Destination of the error messages (Optional)
Specify this parameter in the format of 'Library name/File name(Member name).'
When omitted, error messages are not output.
The number of log records that a log file can retain is unlimited.
- EXIT CL Variable name
-
Receiving of an error code and CL Variable name (Optional)
The CL Variable name must immediately follow EXIT tag.
When omitted, an error code is not set.
Command interface
UTLGTFEXTD INPUT( ) OUTPUT( ) PFILE( ) PMBR( )
LIBRARY( ) MSG( ) FILE( ) MBR( )
Parameter explanation
- INPUT
-
Type of translation to be executed (*NO by default)
You can select *NO only if you specify the OUTPUT parameter.
*NO :
Translate no custom character table
IE :
Translate the custom character table for IBM Kanji to EUC-JP conversion
IS :
Translate the custom character table for IBM Kanji to Shift-JIS conversion
IJ :
Translate the custom character table for IBM Kanji to JEF conversion
IK :
Translate the custom character table for IBM Kanji to KEIS conversion
IN :
Translate the custom character table for IBM Kanji to NEC conversion
I8 :
Translate the custom character table for IBM Kanji to UTF-8 conversion
EI :
Translate the custom character table for EUC-JP to IBM Kanji conversion
E8 :
Translate the custom character table for EUC-JP to UTF-8 conversion
SI :
Translate the custom character table for Shift-JIS to IBM Kanji conversion
S8 :
Translate the custom character table for Shift-JIS to UTF-8 conversion
JI :
Translate the custom character table for JEF to IBM Kanji conversion
J8 :
Translate the custom character table for JEF to UTF-8 conversion
KI :
Translate the custom character table for KEIS to IBM Kanji conversion
K8 :
Translate the custom character table for Shift-JIS to UTF-8 conversion
NI :
Translate the custom character table for NEC to IBM Kanji conversion
N8 :
Translate the custom character table for NEC to UTF-8 conversion
8I :
Translate the custom character table for UTF-8 to IBM Kanji conversion
8E :
Translate the custom character table for UTF-8 to EUC-JP conversion
8S :
Translate the custom character table for UTF-8 to Shift-JIS conversion
8J :
Translate the custom character table for UTF-8 to JEF conversion
8K :
Translate the custom character table for UTF-8 to KEIS conversion
8N :
Translate the custom character table for UTF-8 to NEC conversion
8G :
Translate the custom character table for UTF-8 to GB18030 conversion
8C :
Translate the custom character table for UTF-8 to IBM Simplified Chinese conversion
G8 :
Translate the custom character table for GB18030 to UTF-8 conversion
GC :
Translate the custom character table for GB18030 to IBM Simplified Chinese conversion
C8 :
Translate the custom character table for IBM Simplified Chinese to UTF-8 conversion
CG :
Translate the custom character table for IBM Simplified Chinese to GB18030 conversion
A :
Translate all custom character tables
- OUTPUT
-
Outputs the content of the custom character table conversion file (*NO by default)
You can select *NO only if you specify the INPUT parameter.
If you specify the PFILE parameter, the contents are output to the specified file, while if it is not specified, they are output to standard output.
*NO :
Do not output any content
IE :
Output the content of the custom character table for IBM Kanji to EUC-JP conversion
IS :
Output the content of the custom character table for IBM Kanji to Shift-JIS conversion
IJ :
Output the content of the custom character table for IBM Kanji to JEF conversion
IK :
Output the content of the custom character table for IBM Kanji to KEIS conversion
IN :
Output the content of the custom character table for IBM Kanji to NEC conversion
I8 :
Output the content of the custom character table for IBM Kanji to UTF-8 conversion
EI :
Output the content of the custom character table for EUC-JP to IBM Kanji conversion
E8 :
Output the content of the custom character table for EUC-JP to UTF-8 conversion
SI :
Output the content of the custom character table for Shift-JIS to IBM Kanji conversion
S8 :
Output the content of the custom character table for Shift-JIS to UTF-8 conversion
JI :
Output the content of the custom character table for JEF to IBM Kanji conversion
J8 :
Output the content of the custom character table for JEF to UTF-8 conversion
KI :
Output the content of the custom character table for KEIS to IBM Kanji conversion
K8 :
Output the content of the custom character table for KEIS to UTF-8 conversion
NI :
Output the content of the custom character table for NEC to IBM Kanji conversion
N8 :
Output the content of the custom character table for NEC to UTF-8 conversion
8I :
Output the content of the custom character table for UTF-8 to IBM Kanji conversion
8E :
Output the content of the custom character table for UTF-8 to EUC-JP conversion
8S :
Output the content of the custom character table for UTF-8 to Shift-JIS conversion
8J :
Output the content of the custom character table for UTF-8 to JEF conversion
8K :
Output the content of the custom character table for UTF-8 to KEIS conversion
8N :
Output the content of the custom character table for UTF-8 to NEC conversion
8G :
Output the content of the custom character table for UTF-8 to GB18030 conversion
8C :
Output the content of the custom character table for UTF-8 to IBM Simplified Chinese conversion
G8 :
Output the content of the custom character table for GB18030 to UTF-8 conversion
GC :
Output the content of the custom character table for GB18030 to IBM Simplified Chinese conversion
C8 :
Output the content of the custom character table for IBM Simplified Chinese to UTF-8 conversion
CG :
Output the content of the custom character table for IBM Simplified Chinese to GB18030 conversion
A :
Output the contents of all custom character tables
- PFILE
-
Library name and file name of the output file (Optional)
Specify this parameter in the format of 'Library name/File name.'
Specify these names in alphanumeric characters within 10 bytes starting with an alphabetic character, respectively.
- PMBR
-
Member name of the file to which the table is output (*FILE by default)
Specify this parameter in alphanumeric characters within 10 bytes starting with an alphabetic character.
- LIBRARY
-
Library name in which HULFT is installed (HULFT by default)
Specify this parameter in alphanumeric characters within 10 bytes starting with an alphabetic character.
- MSG
-
Control of error messages (*YES by default)
- *NO :
-
Suppress error messages.
- *YES :
-
Show error messages.
- FILE
-
Name of the library and the file to which error messages are output (Optional)
Specify this parameter in the format of 'Library name/File name.'
Specify these names in alphanumeric characters within 10 bytes starting with an alphabetic character, respectively.
When omitted, error messages are not output. The number of log records that a log file can retain is unlimited.
- MBR
-
Member name of the file to which error messages are output (*FILE by default)
Specify this parameter in alphanumeric characters within 10 bytes starting with an alphabetic character.