Conversion from Type-EBCDIC Code Set to Type-ASCII Code Set
When you convert from the Type-EBCDIC Code Set to the Type-ASCII Code Set during a file transfer, the setting of Shiftcode Mode in the Send Management Information on the host on the sending side and the settings of the following fields determine how HULFT handles shift codes:
Product |
Setting Field |
---|---|
HULFT for Mainframe |
Shiftcode Mode for Send Files (RECLEN) in the System Environment Settings |
HULFT for IBMi |
Fixed Length Transfer (FIXLEN) in the System Environment Settings |
For details on the settings, refer to the following for the host on the sending side.
HULFT10 for IBMi Administration Manual :
HULFT10 for zOS Administration Manual :
HULFT10 for IBMi Operation Manual :
HULFT10 for zOS Operation Manual :
When shift codes are deleted (text transfer only)
When you specify 'T (Text)' for Transfer Type in the Send Management Information, HULFT deletes shift codes if all the following conditions are met:
-
The data to be converted contains shift codes
-
'C (Cut)' is specified for Shiftcode Mode in the Send Management Information
-
'S (Sending Side)' is specified for Code Conversion in the Send Management Information
-
The System Environment Settings are specified as follows:
Product
Setting Field
Setting
HULFT for Mainframe
Shiftcode Mode for Send Files
"N" (Delete shift codes, and shorten the record length)
HULFT for IBMi
Fixed Length Transfer
'N' (Do not pad records with spaces)
In addition, when you specify 'T (Text)' for Transfer Type in the Send Management Information, HULFT deletes shift codes if all the following conditions are met:
-
The data to be converted contains shift codes
-
'C (Cut)' is specified for Shiftcode Mode in the Send Management Information
-
'R (Receiving Side)' is specified for Code Conversion in the Send Management Information
The record length becomes shorter by the size of the deleted shift codes.
When shift codes are deleted and spaces are added at the end of the data
When you specify 'T (Text)' for Transfer Type in the Send Management Information, HULFT deletes shift codes and adds a number of spaces equal to the length of the deleted shift codes at the end of the data, if all the following conditions are met:
-
The data to be converted contains shift codes
-
'C (Cut)' is specified for Shiftcode Mode in the Send Management Information
-
'S (Sending Side)' is specified for Code Conversion in the Send Management Information
-
The System Environment Settings are specified as follows:
Product
Setting Field
Setting
HULFT for Mainframe
Shiftcode Mode for Send Files
"Y" (Delete shift codes, and add spaces at the end of the record for the length of the deleted shift codes)
HULFT for IBMi
Fixed Length Transfer
'Y' (Pad records with spaces)
In addition, when all the following conditions are met, HULFT adds a number of spaces equal to the length of the deleted shift codes at the end of the data:
-
The data to be converted contains shift codes
-
HULFT carries out format transfer or multi format transfer when the field type in the Format Information is Variable-length Characters (M)
-
'C (Cut)' is specified for Shiftcode Mode in the Send Management Information
The record length is preserved.
When shift codes are converted into spaces
When Shiftcode Mode in the Send Management Information is 'S (Space),' the data contains shift codes, and either of the following conditions is met, HULFT converts the shift codes into spaces:
-
HULFT carries out text transfer
-
HULFT carries out format transfer or multi format transfer when the field type in the Format Information is Variable-length Characters (M)
The record length is preserved.
Example of conversion from JEF to Shift-JIS
Shown below is an example of conversion from JEF to Shift-JIS:
<Example> Conversion from JEF to Shift-JIS

Additional note on X type field
There is an additional note on conversion of X type fields when you convert to the Type-ASCII Code Set in HULFT for IBMi.
When all the following conditions are met, HULFT converts shift codes if X Type Conversion in the System Environment Settings is 'Mode 0,' but does not convert them if it is 'Mode 1':
-
Transfer to HULFT for Linux/AIX, HULFT for NonStop, or HULFT for Windows
-
Use of format transfer or multi format transfer when the field type in the Format Information is Character (X)