EasyManua.ls Logo

IBM 5100 - Page 165

IBM 5100
228 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
("
I
c
MSG=OFF (optional) specifies
that
no error message
is
to
be displayed for
nonzero return codes (see
Return Codes
in
this chapter).
A
or
~
TYPE=~~
(optional) can only be specified for OUT operations.
or
12
It specifies
the
data
format
to
be used when writing data
to
tape:
When TYPE=A
is
specified,
the
APL internal data.
format
is
used;
that
is,
the
data
is
written on
tape
in
the
same format
that
it
is
stored in,
in
the
active workspace.
When TYPE=I
or
TYPE=ll
is
specified,
the
exchange
data
format
is
used.
When
the
exchange data
format
is
used, only character scalars
or
vectors
can be assigned
to
the
variable being shared. Therefore, when storing numeric
data
or
arrays
on
tape using
the
exchange data format,
the
data must first be
changed
to
a character scalar
or
vector (see the
"f
function
in
Chapter 4).
The following items apply
to
an exchange data file
that
is
used by both
the
5100
APL and BASIC languages:
1.
2.
3.
All
data items must be separated by commas. For example, the numeric
vector 1 3 5 6 must be changed
to
character
data,
then commas placed
in
the
blank positions.
Negative signs must be replaced by minus signs.
Enclosing single
quotes
must be part of any data
that
represents character
constants. Also, any embedd.ed quotes
in
the
character constant
must
be
represented by double quotes.
Note: The
5100
BASIC language accepts
only
the
first 18 characters
in
each character constant.
4. The
5100
BASIC language creates a logical record for each PUT
statement
or each row of an array with a MAT PUT
statement.
When TYPE=12
is
specified,
the
general exchange
data
format
is
used; it
is
the
same
as
TYPE=I (and TYPE
11)
except
that
the data file can also be used as
a BASIC language source file.
Note: The data format can be specified only for an
OUT
operation. For fN
or ADD operations,
the
data format
is
specified by
the
data
file
type
(see
)L1B
command in Chapter 2).
If
the
data
format
is
not
specified
for
an OUT
operation,
the
APL internal data format (TYPE=A)
is
used.
CAUTION
If
the
tape cartridge
is
removed from
the
5100
when an OUT
or
ADD file
is
open,
the
file will
be
unusable. If
another
tape
is
inserted
at
this point, one
of
its files
may be destroyed. See
Closing a Data File
or
Terminating the Printer
Output
in
this chapter for information
on
how
to
close a data file.
1S1

Table of Contents

Other manuals for IBM 5100

Related product manuals