Technical data

EBCDIC/DMCS Translation Tables
B.3 Examples of Modifying Translation Tables
REVTRA 4A,A2 ; Map the EBCDIC cent character (4A)
; to/from the ASCII cent character (A2).
AS2EB 5B,3F ; Map the ASCII "[" (5B) to the EBCDIC
; SUB character (3F).
The preceding macro could also be written in the following way:
AS2EB ’[,3F
2. The following example shows the macros used to modify the standard
translation tables to the translation tables used by IBM 3270TE.
DMFILL = 26.
REVTRA 4A,A2 ; Map the EBCDIC cent character (4A)
; to the ASCII cent character (A2).
; Because this macro leaves ASCII "[" (5B)
; still mapped to the EBCDIC cent character
; (4A), it must be remapped.
REVTRA 4F,7C ; Map the EBCDIC "|" (4F) to/from
; the ASCII "|" (7C).
REVTRA 6A,A1 ; Map EBCDIC "dashed vbar" (6A) to/from ASCII
; inverted ! (A1).
REVTRA 5A,’! ; Map EBCDIC "!" (5A) to/from ASCII "!" (21).
AS2EB ’],3F ; Map ASCII "]" (5D) to the EBCDIC SUB
; character (3F).
AS2EB 5B,3F ; Map the ASCII "[" (5B) to the EBCDIC
; SUB character (3F).
The changes that are described modify a version of the ANSI standard X3.26
1970 EBCDIC-to-ASCII translation table. Table B–1 shows these modifications:
Table B–1 Modifications to Translation Tables
DMCS
Character
Hexadecimal
Code
EBCDIC
Character Hexadecimal Code
¢A2¢4A
|7C|4F
!21!5A
¡
1
A1 dashed vbar 6A
[5B
2
]5D
2
1
The display of these characters depends on the type of terminal.
2
These characters translate to the EBCDIC SUB character, which has an EBCDIC code of 63 decimal
(3F hexadecimal).
The DMCS contains 256 characters. The first 128 characters are the same as
the standard ASCII character set. None of the remaining characters map to
a printable EBCDIC character; therefore, they translate to the EBCDIC SUB
character.
EBCDIC/DMCS Translation Tables B–3