IBM 1130 User Manual page 562

Computing system
Hide thumbs Also See for 1130:
Table of Contents

Advertisement

High/Low/Equal Alpha Compare. Everything said
about the Match/No Match compare also applies
here, with two exceptions:
1.
The fields to be compared should always be
in Al format.
2.
The Al representation for a blank must be
changed
if
you want it to fall in the proper
collating sequence.
Figure 70. 31 shows the decimal representation of
various characters in Al format. Note that the
blank falls after the letters and numbers. If it is
left there, alphabetic compares will yield an ascending
sequence--for example:
Character
A
B
C
D
E
F
G
H
I
J
K
L
M
N
0
P
Q
R
Figure 70.31.
WILLIAMSON
WILLIAMSbb
WILLIAMbbb
A1
Decimal
Equivalent
Character
-16064
S
-15808
T
-15552
U
-15296
V
-15040
W
-14784
X
-14528
't
-14272
Z
-14016
0
-11968
1
-11712
2
-11456
3
-11200
4
-10944
5
-10688
6
-10432
7
-10176
8
-9920
9
A1
Decimal
Equivalent
Character
-7616
blank
-7360
. (period)
-7104
<(less than)
-6848
(
-6592
+
-6336
&
-6080
$
-5824
"
-4032
)
-3776
-(minus)
-3520
/
-3264
-3008
%
-2752
#
-2496
@
-2240
, (apostrophe)
-1984
=
-1728
Section
70
rather than the correct
WILLIAMbbb
WILLIAMSbb
WILLIAMSON
Subsections
40
I
20
This can easily be corrected
if
blanks are
converted from 16448 to something less than
-16064, the letter A. In fact, you might as well
change it to -16448. With a DO loop, the input
record can be scanned for + 16448s, and each one
found can be changed to -16448.
Page
11
They need not be converted back to +16448 for
printed output, since any invalid character (such
as -16448) will be printed as a blank anyway.
For
punched output, however, this will not be so, and
the -164488 should be changed back to +16448s.
A1
Decimal
Equivalent
16448_
19264
19520
19776
20032
20544
23360
23616
23872
24640
24896
27456
27712
31552
31808
32064
32320
-
Note
position
of blank

Advertisement

Table of Contents
loading

Table of Contents