Editing Rules
(Cont'd)
Condition
Code
Logical
Instructions
3.
If
significance
has
not been established, every control code
or
insertion
character
encountered in
the
mask
pattern
(including
the
start
significance code) is replaced
by
the
filler
character.
4.
If
significance has been established, every digit select code (20)
16
or
start
significance code (21)
16
encountered
in
the
mask
pattern
is
replaced
by
a
digit
from
the
source field, which is expanded by
attaching
a zone.
5.
If
significance has been established, every
insertion
character
(other
than
the
digit
select,
start
significance,
or
field
separator
codes)
encountered
within
the
mask
pattern
is
left
in place
without
alteration.
6.
Significance is disestablished
by:
a. encountering a field
separator
code (22)
16
in
the
mask
pattern.
b. encountering a positive (plus) sign
within
the
rightmost
four
bits
of
a source field byte.
7.
A negative
(minus)
sign
within
the
rightmost
four
bits
of
a source
byte
does not disestablish significance. Additional
digit
select codes
encountered
in
the
mask
pattern
are
replaced
by
filler
characters,
but
insertion
characters
are
left
in
place
without
alteration.
8. Field
separator
codes (22)
16
are
always replaced by
the
filler
character.
Note: The filler
character
is obtained
from
the
mask
pattern
as
part
of
the
editing
operation. The first
character
(leftmost
byte)
of
the
mask
pattern
is used
as
a filler
character
and
is
left
unchanged
in
the
result, except:
a. when
it
is a digit select code.
b. when
it
is a
start
significance code.
In
these codes, a source
digit
is examined and, when non-zero,
inserted
in
the
result
field.
To facilitate
blanking
out
all-zero
result
fields,
or
triggering
negative
field special processing,
the
condition code is used to indicate
the
sign
and
zero
status
of
the
last
field edited. All digits examined
are
tested
for
zero,
and
the
presence,
or
absence,
of
an
all-zero source field is indicated
in
the
condition code
at
the
termination
of
the
editing
operation.
Sign
significance
is also indicated
by
the
condition code.
• 0 - indicates a zero source field regardless
of
whether
or
not
significance
is established.
1 - indicates non-zero
result
field
with
significance established
to
indicate less
than
zero.
2 - indicates non-zero
result
field
with
no significance established
to
indicate
greater
than
zero.
3
-not
used.
Note:
The
condition code
setting
reflects only
the
field following
the
last
(rightmost)
field
separator
code
of
the
mask
pattern
for
multiple-
field-editing operations.
185