Writing Data To A Tape Or Diskette File; Using The )Save Command - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

WRITING DATA TO A TAPE OR DISKETTE FILE
You can write data to a file by using the )SAVE command, the
)CONTINUE command, or an APL shared variable. The )SAVE or
)CONTINUE commands are used to write the contents of the 5110
active workspace to a file. An APL shared variable is used to write
individual data records to a data file (shared variables are discussed in
detail under Input/Output Control).
The following list shows the advantages and disadvantages of using
the )SAVE command versus the )CONTINUE command. You should
consider these advantages and disadvantages when choosing which
command you are going to use when writing the contents of the
active workspace to the media.
Using the )SAVE Command
Advantages:
• The stored workspace can be loaded into a 5110 that has a smaller
active workspace than the original active workspace, providing the
stored workspace does not require more storage than is available in
the smaller active workspace.
• The additional storage is available to the user when the stored
workspace is loaded into a 5110 that has a larger active workspace
than the original active workspace.
• The symbol table is cleared of unused or expunged symbol
references.
• The )COPY and )PCOPY commands can be used to copy specified
variables or user-defined functions from the stored workspace.
Disadvantages:
• The active workspace is not written to the media as fast as when
the )CONTINUE command is used.
• The stored workspace is not loaded into the active workspace as
fast as when the )CONTINUE command is used to write the
workspace to the media.
• If the active workspace contains suspended functions or open data
files exist, the active workspace cannot be written to the media.
Library Control
69

Advertisement

Table of Contents
loading

Table of Contents