Technical data

B
EBCDIC/DMCS Translation Tables
The TCP/IP Services TELNET implementation supports IBM 3270 terminal
emulation. The default translation tables satisfy most users’ needs.
B.1 Macros for Modifying the Translation Tables
If the standard translation table does not suit your needs, you can modify
it by specifying macros in the file TN3270DEF.MAR. You should copy
TN3270DEF.MAR from TCPIP$EXAMPLES into your current default directory
and edit it with any editor supported by your system.
Use the macros described to make any changes you need in the translation tables.
You can specify three macros. The arguments for all three macros are:
eb The EBCDIC code for the character you want to translate.
as The DMCS code for the character you are translating to. (You can specify the actual
DMCS display character instead of the code, if you want to. To do this, enter a single
quotation mark before you type the character, for example, !, A, g, and so on.)
The macros are:
EB2AS eb, as
The EB2AS macro lets you change an entry in the EBCDIC-to-DMCS table
without affecting the DMCS-to-EBCDIC table. For example:
EB2AS 5A,
!
In this example, the EBCDIC hexadecimal code 5A is translated to the DMCS
exclamation point (hexadecimal code 21). The macro does not affect the
translation of a DMCS exclamation point to its EBCDIC equivalent.
AS2EB as, eb
The AS2EB macro lets you change an entry in the DMCS-to-EBCDIC table
without affecting the EBCDIC-DMCS table. For example:
AS2EB [, 5F
In this example, the DMCS open bracket character (hexadecimal code 5B) is
translated to the EBCDIC hexadecimal code 5F. The macro does not affect the
translation of the EBCDIC code 5F to DMCS.
REVTRA eb, as
The REVTRA macro combines the functions of the EB2AS and AS2EB
macros, enabling you to change the same translation in both the DMCS-to-
EBCDIC and EBCDIC-to-DMCS tables. For example:
REVTRA 4A, A2
EBCDIC/DMCS Translation Tables B–1