Previous Topic: When to Use Character Conversion

Next Topic: Hexadecimal Numbers in Conversion Tables


Procedure

To create a custom character translation table

  1. From the command line, use vi or another editor to create and open a file.
  2. Define each character on a separate line.

CA XCOM Data Transport for UNIX or Linux performs the EBCDIC to ASCII translation as follows:

Because the first line is for code 0, you need to add 1 to the line number when determining which line of the table to modify.

Example 1

A question mark (?) must be sent to the mainframe in EBCDIC. Set up the translation table to translate it from ASCII to EBCDIC.

The ASCII code for ? is 63 (decimal). The EBCDIC code for ? is 111 (decimal). Take the ASCII code and add 1. This is 64. Go to line 64 of the ATOE table and type the value 111.

Example 2

An A is received from the mainframe in EBCDIC. Set up the translation table to translate it to ASCII.

The EBCDIC code for A is 193 (decimal). The ASCII code for A is 65. Take the EBCDIC code for A and add 1. This is 194. Go to line 194 of the ETOA table and type the value 65.