NET/MASTER Network Control Language (NCL) Reference Manual
A2E
Built-in Functions
4–4 106126 Tandem Computers Incorporated
A2E The A2E built-in function translates an input string from ASCII to EBCDIC.
A2E(
string
[, T ] )
string
specifies the ASCII source string.
T
specifies that textual translation is to be performed. The ASCII string is assumed
to be textual data. This option is implied if omitted. No special consideration is
given to signed decimal number codes.
Considerations
Table 4-2 shows the standard translation table, indexed by the ASCII code. ASCII
codes with no EBCDIC equivalent are translated to 'FF'x. All codes from '80'x to
'FF'x are also translated to 'FF'x.
Table 4-2. ASCII to EBCDIC Translation Table
Bottom four ASCII bits, in hexadecimal notation
Top 4 0123456789ABCDEF
0 00010203372D2E2F1605250B0C0D0E0F
1 101112133C3D322618193F27221D351F
2 405A7F7B5B6C507D4D5D5C4E6B604B61
3 F0F1F2F3F4F5F6F7F8F97A5E4C7E6E6F
4 7CC1C2C3C4C5C6C7C8C9D1D2D3D4D5D6
5 D7D8D9E2E3E4E5E6E7E8E9ADE0BD5F6D
6 79818283848586878889919293949596
7 979899A2A3A4A5A6A7A8A9C06AD0A107
8 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
9 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
A FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
B FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
C FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
D FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
E FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
F FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
The output string has the same length as the input string.
The suffix “x” indicates that the preceding string is hexadecimal.