EasyManua.ls Logo

IBM 5100 - Page 166

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...
162
The
following
four
examples, using an
APL
shared variable
named
EXAMPLE,
show
how
the
information
required
to
open
a
data
file
or
specify
printer
output
can
be
entered:
1.
EXAMPLE~'IN
1001 ID=(TEST)
L
LThe
value TEST
will
be compared
to
the
file
header
field.
File 1
on
tape
unit
1
is
to
be
opened.
Data
is
to
be
transferred
from
tape
into
the
active workspace.
2
EXAMPLE~'OUT
003 ID=(TEST2) TYPE=I'
L
t Exchange
data
format"
is
to
be used.
The
value
TEST2
will be placed
in
the
device
header
field.
File 3
on
tape
unit
1 (assumed)
is
to
be
opened.
Data
is
to
be
transferred
to
tape
from
the
active workspace.
a
EXAMPLE~'ADD
3'
L
lFile
3 on tape unit 1 (assumed)
is
to
be opened.
Data
is
to
be
transferred
into
an existing file
on
tape.
Note: Since
the
file I D was
not
specified, no value
is
compared
to
the
file
header
field.
4.
EXAMPLE~'PRT
MSG=OFF'
1
LNO
error messages
will
be displayed
~
for nonzero return codes.
Data
is
to
be
printed.
After
the
information
has been
entered,
a
code
(2-element vector)
that
indicates
whether
the
operation
was successful
or
not
is
assigned
to
the
shared variable. A
return
code
of
0 0 indicates
the
operation
was successful,
and
a
nonzero
return
code
indicates
that
the
operation
failed. See Return Codes
in
this
chapter
for
a
description
of
each
return
code.

Table of Contents

Other manuals for IBM 5100

Related product manuals