On an &DECODE operation, if the TRANSLATE=ASCII operand is specified, all character strings are assumed to be from the ASCII character set as shown in the following table and are translated to their equivalents in the EBCDIC character set. An &ENCODE operation, however, assumes the character strings to be from the EBCDIC character set and translates them to their equivalents in the ASCII character set shown in the following table.
|
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
|
-0 |
NUL |
DLE |
SP |
0 |
@ |
P |
' |
p |
|
-1 |
SOH |
DC1 |
! |
1 |
A |
Q |
a |
q |
|
-2 |
STX |
DC2 |
” |
2 |
B |
R |
b |
r |
|
-3 |
ETX |
DC3 |
# |
3 |
C |
S |
c |
s |
|
-4 |
EOT |
DC4 |
$ |
4 |
D |
T |
d |
t |
|
-5 |
ENQ |
NAK |
% |
5 |
E |
U |
e |
u |
|
-6 |
AC |
SYN |
& |
6 |
F |
V |
f |
v |
|
-7 |
BEL |
ETB |
' |
7 |
G |
W |
g |
w |
|
-8 |
BS |
CAN |
( |
8 |
H |
X |
h |
x |
|
-9 |
HT |
EM |
) |
9 |
I |
Y |
i |
y |
|
-A |
LF |
SUB |
* |
: |
J |
Z |
j |
z |
|
-B |
VT |
ESC |
+ |
; |
K |
[ |
k |
{ |
|
-C |
FF |
FS |
, |
< |
L |
\ |
l |
| |
|
-D |
CR |
GS |
- |
= |
M |
] |
m |
} |
|
-E |
SO |
RS |
. |
> |
N |
|
n |
~ |
|
-F |
SI |
US |
/ |
? |
O |
|
o |
DEL |
Columns 0 to 1 (code points 00 to 1F) contain a set of 32 control characters. On an &DECODE operation, those characters without an equivalent in the EBCDIC character set are translated to NULLS (X'00'). On an &ENCODE operation, EBCDIC control characters without an equivalent in this code page are translated to the ASCII NULL character (X'00').
Columns 2 to 7 (code points 20 to 7F) contain a set of 94 graphic characters, plus the SPACE and DELETE characters. On an &ENCODE operation, EBCDIC graphic characters without an equivalent in this code page are translated to the ASCII SPACE character (X'20').
Columns 8 to 9 (code points 80 to 9F) and columns A to F (code points A0 to AF) are respectively, control character and graphic character code points not defined for this code page. If they appear on an &DECODE operation, they are translated to the EBCDIC NULL (X'00') and SPACE (X'40') characters respectively.
| Copyright © 2009 CA. All rights reserved. |
|