Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Java/EBCDIC conversion

For conversion, proceed as follows:

  1. Create the Cobol2Java objects with an empty constructor.

    cob2javaclass cob2java = new cob2javaclass();

  2. Then set the encoding of the connection:

    cob2java.setEncoding( connection.getEncoding() );
    cob2java.setEncodingActive( connection.isEncodingActive() );

  3. Specify the Cobol2Java objects directly in the communication methods:

    sndRecord(ByteContainer), rcvRecord(ByteContainer),
    call(ByteContainer, ByteContainer)

Detailed information on encoding is provided in the Encoding and national language support .