Question
How can I convert to EBCDIC series character codes in HULFT Integrate?
Answer
Conversion can be done using the Fixed Length Writing operation.
Enter the EBCDIC character code of the other host in the field "Encoding method" in the Fixed Length Wizard of Fixed Length Writing (the encoding method is not displayed in the pull-down menu).
The character encodings that can be specified are those supported by Java SE Runtime Environment 8.
For the character codes supported by Java SE Runtime Environment 8, please refer to the following website.
Supported Encodings - Java documentation
http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html
As an example, the following character codes can be specified.
- cp930 : IBM codepage 930, EBCDIC (Katakana) and IBM mainframe Japanese character set
- cp939 : IBM codepage 939, EBCDIC (lowercase) and IBM mainframe Japanese character set
Supplementary information
The following restrictions apply.
- When writing in EBCDIC(Cp930), multibyte characters are surrounded by the control characters "Shift-OUT(0x0e)", which indicates the change to multibyte characters, and "Shift-IN(0x0f)" (1 byte each), which returns to single-byte characters.
- When writing in EBCDIC (Cp930) and padding with multi-byte characters (e.g., double-byte space), "Shift-OUT(0x0e)" and "Shift-IN(0x0f)" are added for each padding character.
- If the output data exceeds the field length set in the Fixed Length Write Wizard, the excess will be truncated. Please adjust the field length from the Fixed Length Write Wizard accordingly, taking into account the shift code.
- In the Fixed Length File Writing operation, if you output a field with both of the following settings, an error may occur and the writing process will fail.
---
- Set encoding to use shift code
- Set double-byte characters for padding characters.
---
When using an encoding that uses a shift code, specify a one-byte space or other character for the padding character.
Write Fixed-Length File
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/fixedlength_put_data.htm
Fixed Length Write Wizard
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/fixed_put_wizard.htmFixed
Fixed-Length Connector
https://www.hulft.com/help/en-us/HULFTSquare/Content/CN_MPP/CN_message/msg_Fixed_length.htm
Related FAQs
Does HULFT Transfer support EBCDIC code sets?
https://support.square.hulft.com/hc/articles/10670145343124
Are the listed character codes the only ones supported by connectors/logics that can change encoding type?
https://support.square.hulft.com/hc/articles/9465787825556
Comments
0 comments
Article is closed for comments.