Multiple Repeat Commands
95
Incrementing or decrementing numbers and characters is s imilar to adding or
subtracting numbers. Align the numers and/or letters vertically in columns and
add or subtract each column. For example, K + 1 means to advan ce 1
character position from K to the next letter (i.e., K+1 = L and K -1 = J).
The following examples show how automatic increments (additi on) and
decrements (subtraction) apply to numeric and character fields:
0A 0 A9 0A (Operand)
+1 -1 +1 +11 (Operator)
0B 9 B0 1B (Answer)
In automatic incrementing and decrementing, the alphabet wraps around
itself, meaning that A is one character position beyond Z. The normal
arithmetic rules of carrying or subtracting a 1 from other columns when adding
or subtracting also apply. For example:
0Z 1B (Operand)
+1 -2 (Operator)
1A 0Z (Answer)
Below are two additional examples showing how this carry function operates:
0T 0A (Operand)
+17 +27 (Operator)
2A 2H (Answer)
The answer is always limited to the total number of characters and s paces in
the operand, even if the operator value has the full twelve characters all owed.
For example:
Y 2F 16A (Operand)
+112 -105 +1234 (Operato r)
A 2A 39E ( Answer)
If spaces are included in the operand value, only numeric val ues can appear
in the answer for those same columns. No letters are permitted. F or example:
(1 space) Y 2F (Operand )
+112 -105 (Operator)
2A 2A (Answer)