Appendix A: Conversion Tables  AscEbc translations

Appendix A: Conversion Tables

EbcAsc translations

Table A-1 lists the translations form EBCDIC to ASCII, using the EbcAsc function.

When translating an EBCDIC hexadecimal value, such as A2, go to row value A0 and move across to the third column (2A). This EBCDIC hexadecimal translates to the ASCII character “s.”

Use the upper column numbers for the first 8 values in a hexadecimal sequence (0 to 7), and the lower column numbers for the second 8 values (8 to F). To look up the hexadecimal value 6E, go to row value 68, and move across to column E. This translates to the ASCII character “>”.

Table A-1: EBCDIC to ASCII translations

Row value

0 8

1 9

2 A

3 B

4 C

5 D

6 E

7 F

0x00

0

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x08

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x10

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x18

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘*‘

‘ ‘

‘;’

‘ ‘

0x20

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x28

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x30

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x38

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x40

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x48

‘ ‘

‘ ‘

‘\ \‘

‘.‘

‘<‘

‘(‘

‘+’

‘|’

0x50

‘&‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x58

‘ ‘

‘ ‘

‘!‘

‘$‘

‘*‘

‘ )’

‘;‘

‘^ ‘

0x60

‘-‘

‘ / ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x68

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘%‘

‘_‘

‘>‘

‘?‘

0x70

‘ ‘

‘^’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x78

‘ ‘

‘ ’ ‘

‘:‘

‘#‘

‘@‘

‘ \ ‘

‘=‘

‘ ” ‘

0x80

‘ ‘

‘a’

‘b’

‘c’

‘d’

‘e’

‘f’

‘g’

0x88

‘h’

‘i’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0x90

‘ ‘

‘j’

‘k’

‘l’

‘m’

‘n’

‘o’

‘p’

0x98

‘q’

‘r’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0xA0

‘ ‘

‘~’

‘s’

‘t’

‘u’

‘v’

‘w’

‘x’

0xA8

‘y’

‘z’

‘ ‘

‘ ‘

‘ ‘

‘[‘

‘ ‘

‘ ‘

0xB0

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0xB8

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘]’

‘ ‘

‘ ‘

0xC0

‘{‘

‘A’

‘B’

‘C’

‘D’

‘E’

‘F’

‘G’

0xC8

‘H’

‘I’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0xD0

‘}’

‘J’

‘K’

‘L’

‘M’

‘N’

‘O’

‘P’

0xD8

‘Q’

‘R’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0xE0

‘\ \’

‘ ‘

‘S’

‘T’

‘U’

‘V’

‘W’

‘X’

0xE8

‘Y’

‘Z’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

0xF0

‘0’

‘1’

‘2’

‘3’

‘4’

‘5’

‘6’

‘7’

0xF8

‘8’

‘9’

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘

‘ ‘





Copyright © 2005. Sybase Inc. All rights reserved. AscEbc translations

View this book as PDF