Conversion from KEIS to other code sets
When you carry out Code Conversion for a file transfer from a host where you have specified KEIS for Code Set for Transfer (cs4trnsfr) in the System Environment Settings to a host that uses another code set, single-byte spaces (0x40) may exist among the full-width characters.
In this case, HULFT replaces the single-byte space codes with double-byte space codes (0x4040) and then carries out code conversion.
'Other code sets' refers the following code sets:
-
Shift-JIS
-
EUC-JP
-
UTF-8
-
IBM Kanji
-
Fujitsu Kanji (JEF)
-
NEC Kanji (JIPS (E))
When HULFT converts codes after it replaces each single-byte space code with a double-byte space code (0x4040), the data size may increase.
In format transfer or in multi format transfer, if the increased data size exceeds the field size, HULFT cuts the excess data.
To prevent the data loss that is caused by cutting of the excess, calculate the increment in data size, and set single-byte spaces that amount to the increment at the end of the data.
In addition, configure the data format and the Format Information according to the increased data size.
(1) Example of conversion from KEIS to Shift-JIS
Shown below are examples of conversion from KEIS to Shift-JIS:
<Example> Conversion from KEIS to Shift-JIS

The above examples show how conversion works when you specify the following values in the Send Management Information:
-
'R (Receiving Side)' for Code Conversion
-
'C (Cut)' for Shiftcode Mode
(2) Example of conversion from KEIS to IBM Kanji
Shown below are examples of conversion from KEIS to IBM Kanji:
<Example> Conversion from KEIS to IBM Kanji

The above examples show how conversion works when you specify 'R (Receiving Side)' for Code Conversion in the Send Management information.