EasyManuals Logo
Home>IBM>Laptop>5100

IBM 5100 Basic Reference Manual

IBM 5100
187 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 #144 background imageLoading...
Page #144 background image
MAT PUT file ref, array-name [,array-name]
...
1140
MAT
PUT
The
MAT
PUT statement allows you
to
place the value of each element
of
an array
into a specified file, without referring
to
each individual array element. The file
must have already been opened with an OPEN statement. The syntax
of
the
MAT
PUT statement
is
as
shown:
MAT PUT file ref, array-name [,array-name]
where:
file
ref
is
FLO
to
FL9
to
identify
the
file defined
in
the OPEN statement.
array-name
is
the
name
of
a character
or
numeric array. Only one array
is
required
..
When a
MAT
PUT statement
is
executed,
the
values
of
the specified array elements
are entered into a buffer for
the
specified file, beginning
at
the
current file position.
The file
is
arranged sequentially so
that
the first value entered will be
the
first value
assigned from
the
file when it
is
referred
to
by a
MAT
GET (or GET) statement.
When
the
buffer becomes full,
the
contents are written
out
as a record.
A file can only
be
activated by an OPEN statement and
is
deactivated by a CLOSE'
statement
or
at
the end
of
program execution.
Notes
About
MAT PUT
A file currently activated as an input file cannot
be
specified
in
a
MAT
PUT
statement.
It
must be closed first, then reopened as an
output
file,
or
a RESET
END
statement must be issued (see
RESEn.
If
space
in
the
output
file
is
exhausted before
all
items
in
the
output
list are
pl/ilced
in
the
file, program execution
is
terminated.
A
MAT
PUT statement referring
to
a currently closed file causes program
execution
to
be
terminated.
A
MAT
PUT statement writes one matrix row
in
each record on
the
tape. When
accessed with a LOADx, DATA command (which uses a 324-character buffer),
the
matrix data per row cannot exceed
324
characters (including commas).
Example
The following example shows a
MAT
PUT statement:
0100
MAT
PUT FL4,
B,
C$
In this example,
the
values
of
the
elements
in
array B and array C$ are
put
into
file FL4.
/
/
\
\....
.,/

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

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

IBM 5100 Specifications

General IconGeneral
BrandIBM
Model5100
CategoryLaptop
LanguageEnglish

Related product manuals