Chapter 10: IBM - Standard Functions
10-22
The IBM character sets I and II also differ in the range from decimal
0 to 31. In character set II printable characters being assigned to the
decimal values 3 to 6 and 21, which are not available in character set
I. The complete IBM character sets can be found in a subsequent
chapter.
Function Dec. Hex. ASCII
Print a character from 27 94 n 1B 5E n ESC ^ n
the all character set n = character code
Print several characters 27 92 1B 5C ESC \
from the all character set n
1
n
2
n
1
n
2
n
1
n
2
n
1
, n
2
= 0 to 255
With these commands control characters from the ranges decimal 0
to 31 of IBM character sets I and II and 128 to 159 of IBM character
set I can be addressed as printable characters. This all character set
is called IBM character set III or All Character Set. If only one char-
acter is being printed from the control range, ESC ^ n is to be used,
where n has the value of the character to be printed.
With ESC \ n
1
n
2
the total number of the characters to be printed from
the control range must be defined with the parameters n
1
and n
2
:
n
2
= integer value (total number of characters / 256)
n
1
= total number of characters - (n
2
* 256)
All character set
0123 6789 BCD
0
1
9
A
B
F
45 A EF
E
D
C
8
7
6
5
4
3
2
0123 6789 BCD
0
1
9
A
B
F
45 A EF
E
D
C
8
7
6
5
4
3
2
IBM character set I IBM character set II