Getting Information Froma Tape Or Diskette File - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

GETTING
INFORMATION FROM
A TAPE OR DISKETTE FILE
You can read information from a tape or diskette file by using the
)LOAD, )RESUME, )COPY, )PCOPY commands, or an APL shared
variable. The )LOAD, )COPY, )PCOPY, and )RESUME commands are
used to place the contents of a stored workspace into the 5110 active
workspace. An APL shared variable is used to read individual data
records from a data file (shared variables are discussed in detail under
Input/Output Control).
Generally, you use the )LOAD command to replace the contents of the
active workspace with the contents of a stored workspace. However,
if there were shared variables or suspended functions in the active
workspace and the )CQNTINUE command was used to write the active
workspace to the media, the )RESUME command reads the stored
workspace into the active workspace and reestablishes the shared
variables and/or suspended functions. That is, the system
environment is reestablished as it was when the )CONTINUE command
was issued.
Using the )CONTINUEand )RESUME commands allows you to work
with shared variables or suspended functions, write the active
workspace to the media, and then reestablish the system environment
at a later time so that you can continue working with the shared
variables and/or suspended functions. See The )RESUME Command
in the IBM 5110 APL Reference Manual, SA21-9303, for a description
of how the shared variables are reestablished.
If a workspace was stored on the media using the )SAVE command,
you can copy all or part of that workspace into the active workspace
by using the )COPY or )PCOPY commands. The )COPY command
copies all or specified objects (variables or user-defined functions) into
the active workspace and replaces any objects in the active workspace
that have the same name. The )PCOPY command copies all or
specified objects into the active workspace; however, any objects in
the active workspace that have the same name are not replaced (they
are protected). The )COPY and )PCOPY commands allow you to read
more than one stored workspace or parts of more than one stored
workspace into the active workspace without replacing objects already
existing in the active workspace.
Library Control
71

Advertisement

Table of Contents
loading

Table of Contents