|  | BEA eLink TCP for TUXEDO 3.0 Information Center
HOME | SEARCH | CONTACT | PDF FILES | WHAT'S NEW
| TABLE OF CONTENTS | PREVIOUS TOPIC | INDEX

# COBOL Data Encoding

An additional encoding library, `ConvMVSC`, has been included for TUXEDO clients using COBOL data types. This library, `ConvMVSC`, is similar to the default library, `ConvMVS`, but differs in the following ways:

- For the STRING data type, both `ConvMVSC` and `ConvMVS` perform ASCII-to-EBCDIC and EBCDIC-to-ASCII translation.

- For strings sent to a remote gateway, both libraries will perform ASCII-to-EBCDIC conversion, and forward the string to the mainframe.

- For string received from a remote gateway, the `ConvMVS` library will perform EBCDIC-to-ASCII translation, truncate any trailing space characters and add a NULL terminator. The `ConvMVSC` library will perform the translation, but will not truncate spaces or add the terminator.

- For the VIEW data type, the `ConvMVS` and `ConvMVSC` libraries treat all field types except STRING the same.

  - For STRING fields within a view sent to a remote gateway, `ConvMVS` will perform ASCII-to-EBCDIC conversion, and append space to `pad' the string with space characters to the size of the field. `ConvMVSC` will perform the character conversion, but will not perform any `padding'.

  - For STRING fields within a view received from a remote gateway, `ConvMVS` will perform EBCDIC-to-ASCII conversion, truncate any trailing space characters, and add a NULL terminator. The `ConvMVSC` library will perform the character conversion, but will not truncate spaces or add the terminator.

  ## Using the COBOL Data Encoding Library

  There are two methods for enabling the COBOL data-encoding library:

  - COBOL data encoding for all services

  - COBOL data encoding for messages to and from a specific host

  ### Encoding for All Services

  If COBOL data encoding is desired for every service in the gateway, set the parameter `DFLTTYPE="MVSC"` in the *GLOBAL section of the GWICONFIG file.

  > Listing D-1 Encoding for All Services

  >     *GLOBAL

  >     DFLTTYPE="MVSC"

  ### Encoding Messages To and From a Specific Host

  To enable COBOL data encoding for messages to and from a specific host, set the parameter `TYPE="MVSC"` for that hosts *FOREIGN entry in the GWICONFIG file.

  > Listing D-2 Encoding for Messages To and From a Specific Host

  >     *FOREIGN

  >     HOST_NAME
  >     TYPE="MVSC"

  TABLE OF CONTENTS | PREVIOUS TOPIC | INDEX