IBM AS/400e Computer Hardware User Manual


 
ASCII-to-EBCDIC Mapping Table
Table 68 and Table 69 show the hexadecimal values that may be used when
mapping characters from ASCII to EBCDIC.
For example, ASCII uses X'4E' to represent the letter N; the EBCDIC equivalent for
the letter N, as shown in Table 68, is X'D5'.
System-supplied table object QTCPEBC in library QUSRSYS is the old default
character mapping table. This table was used prior to Version 2 Release 1
Modification 1 to generate mapping tables used for TELNET and FTP. The mapping
tables that are now used are built dynamically and are based on your national
language.
Table 68. ASCII-to-EBCDIC Mapping
Main Storage Bit
Positions 4,5,6,7
Main Storage Bit Positions 0,1,2,3
0000 0001 0010 0011 0100 0101 0110 0111
Hex01234567
0000 0 00 10 40 FO 7C D7 79 97
0001 1 01 11 5A F1 C1 D8 81 98
0010 2 02 12 7F F2 C2 D9 82 99
0011 3 03 13 7B F3 C3 E2 83 A2
0100 4 37 3C 5B F4 C4 E3 84 A3
0101 5 2D 3D 6C F5 C5 E4 85 A4
0110 6 2E3250F6C6E586A5
0111 7 2F267DF7C7E687A6
1000 8 16 18 4D F8 C8 E7 88 A7
1001 9 05 19 5D F9 C9 E8 89 A8
1010 A 25 3F 5C 7A D1 E9 91 A9
1011 B 0B 27 4E 5E D2 AD 92 C0
1100 C 0C226B4CD3E0934F
1101 D 0D1D607ED4BD94D0
1110 E 0E 35 4B 6E D5 5F 95 A1
1111 F 0F 1F 61 6F D6 6D 96 07
Table 69. ASCII-to-EBCDIC Mapping
Main Storage Bit
Positions 4,5,6,7
Main Storage Bit Positions 0,1,2,3
1000 1001 1010 1011 1100 1101 1110 1111
Hex 8 9 A B C D E F
0000 0 00 10 40 FO 7C D7 79 97
0001 1 01 11 5A F1 C1 D8 81 98
0010 2 02 12 7F F2 C2 D9 82 99
0011 3 03 13 7B F3 C3 E2 83 A2
0100 4 37 3C 5B F4 C4 E3 84 A3
0101 5 2D 3D 6C F5 C5 E4 85 A4
0110 6 2E3250F6C6E586A5
Appendix C. Mapping Tables Associated with TCP/IP Function 529