EasyManuals Logo
Home>RCA>Computer Hardware>Spectra 70

RCA Spectra 70 Training Manual

RCA Spectra 70
63 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #39 background imageLoading...
Page #39 background image
DATA
EDITING
In
previous
sections
we
have
seen
that
data
may
be
moved
from
one
area
to
another
either
unchanged
in
byte
structure
or
with
packing
or
unpacking
being
performed;
or,
data
may
be
edited
as
it
is
moved.
Editing
is
very
much
like
unpacking
data
except
that
two
additional
functions
are
performed
as
the
data
is
unpacked.
The
editing
instruction
can
(1)
suppress
leading
zeros
to
a
predetermined
location
in
the
edited
field
and
(2)
insert
editing
characters
as
the
data
is
moved
to
the
edited
field.
A
data
field
to
be
edited
is
assumed
to
be
in
valid
packed
format,
i.
e.,
each
half-byte
is
a
valid
num-
eric
(0-9)
except
the
rightmost
half-byte
which
is
a
sign.
Data
is
moved
from
this
packed
field
to
a
receiving
field
that
controls
the
insertion
of
the
numeric
digits
(half-bytes)
.
The
numeric
digits
are
unpacked
as
they
are
transferred
to
the
edited
field.
The
receiving
field
(edit
mask)
consists
of
charac-
ters
to
be
inserted
as
editing
symbols
such
as
the
comma,
decimal
point,
and
asterisk,
for
example.
In
addition,
the
following
characters
are
control
characters
in
the
edit
mask:
(Hexadecimal
format
of
byte
shown.)
X'20'
- DIGIT
SELECT
This
character
is
placed
in
the
edit
mask
where
it
is
desired
to
insert
a
digit
from
the
packed
field.
The
digit
is
inserted
unless
it
is
a
leading
insignificant
zero
and
a
Significance
Start
character
has
not
been
encountered
previously.
X'21'
-
SIGNIFICANCE
START
This
character
serves
the
same
function
as
the
Digit
Select
character
with
one
added
function;
it
specifies
that
all
of
the
following
digits
are
to
be
inserted
from
the
packed
field
even
if
one
or
more
leading
zeros
are
still
present.
X'22'
-
FIELD
SEPARATOR
This
character
is
used
for
editing
multiple
fields;
it
specifies
the
end
of
one
and
the
start
of
another
field
and
resets
the
edit
operation
for
the
beginning
of
another
field.
To
illustrate
the
editing
functions,
assume
that
a
packed
field
has
the
following
format
and
value:
33
AMT
00
01
02 03
20
00
02
37
8+
and
that
the
field
is
to
be
edited
so
that
leading
zeros
will
be
suppressed.
To
do
this,
allocate
an
edit
mask
as
follows:
NAME
OPERATION
OPERAND
MASK DC
X'E02020202020202060'
Hexadecimal
characters
are
used
because
some
of
the
bytes
cannot
be
represented
by
a
character
constant.
The
first
character
of
the
mask
is
a
fill
character;
it
replaces
digit
select
(X'20')
and
editing
symbols
in
the
mask
until
one
of
the
following
conditions
takes
place:
1.
The
first
non-zero
numeric
digit
is
encountered
in
the
packed
(sending)
field.
2.
A
Significance
Start
character
has
been
encoun-
tered
in
the
edit
mask
(receiving)
field.
The
fill
character
also
replaces
all
remaining
posi-
tions
in
the
edit
mask
when
a
plus
sign
is
encountered
in
the
packed
(sending)
field
unless
processing
mul-
tiple
packed
fields.
To
illustrate
the
above
example,
assume
the
edit
mask
above
has
been
assigned
the
following
mem-
ory
allocation:
00 01 02 03 04 05 06 07 08
29
d
d d d
-
d d
d
e
where:
BLANK
d DIGIT
SELECT
s=
MINUS SIGN
HSM
BEFORE
AMT
AND
AFTER
00
01
02
03
EXECUTION
00
02
37
8+

Table of Contents

Other manuals for RCA Spectra 70

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the RCA Spectra 70 and is the answer not in the manual?

RCA Spectra 70 Specifications

General IconGeneral
BrandRCA
ModelSpectra 70
CategoryComputer Hardware
LanguageEnglish

Related product manuals