The )Copv And )Pcopv Commands; The )Proc Command - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

46
The )COPV and )PCOPV Commands
The )COPY and )PCOPY commands are used to copy all or selected
objects (variables or user-defined functions) from a stored workspace
into the active workspace. When these commands are used, the
objects are copied into the active workspace without replacing the
lentire contents of the active workspace. When the )COPY command is
used, any objects already in the active workspace are replaced by the
objects specified by the )COPY command if the objects have the same
name. When the )PCOPY command is used, any objects in the active
workspace are protected and not replaced by the specified objects if
the objects have the same name. These commands have the
following characteristics:
• These commands can only be used to copy objects from a
workspace written to tape or diskette by the )SAVE command. If
you want to copy objects from a workspace written to tape or
diskette by the )CONTINUE command, the stored workspace must
be loaded into the active workspace and then written to the media
by the )SAVE command.
• These commands cannot be used if the active workspace contains
suspended functions.
• These commands can be used to copy objects from several stored
workspaces into the active workspace.
The )PROC Command
An alternative to entering data from the keyboard is to get the data
from a procedure file. A procedure file contains character records that
represent any input that is possible from the keyboard, such as system
commands, function definition, and APL expressions. When the )PROC
command is issued, the 5110 reads and executes one procedure file
record at a time until the last record (end-of-data) is processed. Then
the 5110 goes back to using regular keyboard input. [See the IBM
5110 APL Reference Manual, SA21-9303, for a complete description of
procedure files and the )PROC command.]
A procedure file must be a type I or U data file and. the records cannot
be greater than 128 characters. (See Chapter 10, Input/Output
Control, for a complete description of data files.)

Advertisement

Table of Contents
loading

Table of Contents