FCOPY Reference Manual (32212-90008)
138 AppendixC
Codes
ASCII/EBCDIC Conversion Table
ASCII/EBCDIC Conversion Table
This table is sorted by character code, each code being represented by its decimal, octal,
and hexadecimal equivalents. Each row of the table gives the ASCII and EBCDIC meaning
of the character code, the ASCII/EBCDIC conversion code, and the Hollerith representation
(punched card code) for the ASCII character.
Examples
The following examples illustrate how to use the table.
Example 1
Suppose you want to determine the ASCII code for the $ character. Scan down the ASCII
graphic column until you locate $, then look left on that row to find the character code; 36
(decimal), 044 (octal), and 24 (hex). This is the code used by an ASCII device (terminal,
printer, computer, etc.) to represent the $ character. Its Hollerith punched card code is
11-3-8.
Example 2
Suppose you want to find out what EBCDIC character the character code 5B (hex)
represents. Also, when 5B is converted to ASCII (for example by FCOPY with the
EBCDICIN option), you want to know the octal character code. First, locate 5B in the hex
character code column and look right on that row to the EBCDIC graphic, which is $. The
next column to the right gives the conversion to ASCII, which is 044. As a check, find 044
(octal) in the character code column, look right to the ASCII graphic column and note that
$ converted to EBCDIC is 133 (octal), which equals 5B (hex).