Using the SEND Table for EBCDIC to ASCII Translation

To convert a character from EBCDIC to ASCII, you can simply get the HEX representation of that character in EBCDIC and ASCII.

Procedure

  1. Take the HEX representation of the EBCDIC character.
  2. Look that many bytes into the SEND table, and place the HEX representation of the ASCII character in the correct entry in the table.
    Note: The displacements in the table start at 0, and there are two characters in the table for each actual byte of data.

    For example: number 1 in EBCDIC is X'F1', and in ASCII is X'31'.

    In the SEND table, if you go to displacement F1, you can go to the last line in the SEND table, and the second pair in the line, you can get the character 31, which is the ASCII representation of the EBCDIC character 1.