EasyManuals Logo

IBM 1620 User Manual

IBM 1620
111 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 #33 background image
READ
Statement
(Card Input)
ACCEPT
Statement
(Typewriter
Input)
This
statement
causes
data
to
be
read
from a
card
in
the
1622
Card
Read
Punch.
Format:
Example:
"READ
n, List"
where
n
is
the
statement
number
of a
FORMAT
statement
and
List
is
a list of
the
quantities to
be
transmitted.
READ
4,
A,
B,
C
READ
30, HRS1, HRS2, HRS3
READ
2,
VOLT(I),
OHM(J)
The
READ statement causes
data
to
be
read
from a
card
(at
object
time)
and
causes
the
quantities from
the
card
to become
the
values of
the
variables
named
in
the
list.
If
the
quantities for a set of values
require
more
than
72 digits
(the
number
of columns available
in
a
card)
the
program
reads successive cards until
the
com-
plete list of quantities has
been
"satisfied," i.e.,
the
data
for all of
the
variables has
been
brought
in
and
stored
in
the
locations specified
by
the
READ statement.
If
there
are
more quantities in the
card
than
there
are on
the
list, only
the
num-
ber
of quantities specified on
the
list
are
read
by
the
program. Thus,
if
a
card
con-
tains five quantities,
but
the
list in
the
READ
statement
contains only two,
the
re-
maining
three
quantities are ignored.
I t
is
important
to note
that
every
item
in
a list corresponds to one
and
only
one quantity. Arrays whose members are so numerous
that
itemizing
them
in
a
list is impractical
may
be
handled
by
using a shorter list
and
including
the
input
or
output
statement
in
the
range of a DO.
For
example, suppose items
B,
A,
and
C
are
to
be
punched,
in
that
order,
and
A represents a one-dimensional array consisting of 100 elements.
The
output
state-
ments could
be
written
in
the
following manner:
STATEMENT
FORTRAN STATEMENT
NUMBER
I
5 6 7
10
15
20
25
30
35
40
45
50 55
..
·
I
I
1
1 I I
·
I I I
I I I
I I
I
PU~CIH
I
.BI
1
I I I
DO
31
I.:; I
"d
00
.1
3
PU.NC,H
5
..
ACr,)
I
I I
iP.UNC
H
J
J.e.
·
·
I I I I
I I
I
I I I
·
I
.L
.-'-
I I
I I I
I I I
The
DO
would
punch
the
100 elements of
the
array
A.
This
statement
is
used
when
input
data
is to
be
entered
into
the
program
from
the
console typewriter.
Format:
Example:
"ACCEPT
n, List"
where
n is
the
statement
number
of a
FORMAT
statement
and
List is a list of
the
quantities to
be
typed.
ACCEPT
30,
A,
B,
C, D ( 3 )
This
statement
selects
the
typewriter as
the
input
device, returns
the
typewriter
carriage,
and
stops
the
computer
to
await
manual
entry
of data.
Data
must
be
typed
in
accordance
with
the
FORMAT
statement until
the
complete list is satisfied.
Writing
the
1620
FORTRAN
Program 33

Other manuals for IBM 1620

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 1620 and is the answer not in the manual?

IBM 1620 Specifications

General IconGeneral
CategoryDesktop
ManufacturerIBM
Model1620
Introduced1959
WeightApproximately 1, 000 pounds
Memory20, 000 to 60, 000 digits
ProgrammingFORTRAN, Symbolic Programming System (SPS)
CPUDecimal, variable word length
StorageMagnetic disk drive (IBM 1311)

Related product manuals