NET/MASTER Network Control Language (NCL) Reference Manual
E2A
Built-in Functions
4–42 106126 Tandem Computers Incorporated
E2A The E2A built-in function translates an input string from EBCDIC to ASCII.
E2A(
string
[, T ] )
string
specifies the EBCDIC string. The output string is the same length.
T
specifies that textual translation is to be performed. The EBCDIC string is
assumed to be textual data. This option is implied if omitted. No special
consideration is given to signed decimal number codes.
Considerations
Characters that have no ASCII equivalent are translated to 'FF'x.
Table 4-4 shows the standard translation table, indexed by the EBCDIC code.
Table 4-4. EBCDIC to ASCII Translation Table
Bottom 4 EBCDIC bits in HEX
Top 4 0123456789ABCDEF
0 00010203FF09FF7FFFFFFF0B0C0D0E0F
1 10111213FFFF08FF1819FFFFFF1DFF1F
2 FFFF1CFFFF0A171BFFFFFFFFFF050607
3 FFFF16FFFF1EFF04FFFFFFFF1415FF1A
4 20FFFFFFFFFFFFFFFFFFFF2E3C282BFF
5 26FFFFFFFFFFFFFFFFFF21242A293B5E
6 FF2FFFFFFFFFFFFFFFFF7C2C255F3E3F
7 FFFFFFFFFFFFFFFFFF603A2340273D22
8 FF616263646566676869FFFFFFFFFFFF
9 FF6A6B6C6D6E6F707172FFFFFFFFFFFF
A FF7E737475767778797AFFFFFF5BFFFF
B FFFFFFFFFFFFFFFFFFFFFFFFFF5DFFFF
C 7B414243444546474849FFFFFFFFFFFF
D 7D4A4B4C4D4E4F505152FFFFFFFFFFFF
E 5CFF535455565758595AFFFFFFFFFFFF
F 30313233343536373839FFFFFFFFFFFF