IBM 5110 User Manual page 52

Apl
Table of Contents

Advertisement

A procedure file is useful for doing unattended applications that
require using system commands and/or function definition. For
example, assume you have· an application that requires several
user-defined functions. However, not enough workspace storage is
available to contain all of the user-defined functions. In this case, you
might:
1.
Use the )SAVE command to store the user-defined functions on
tape or diskette.
2.
Create a procedure file that contains the following character
records:
a. A )COPV command to copy the first user-defined function(s)
required for the application into the active workspace
b. The statement(s) required to execute the user-defined
function(s)
c. An )ERASE command that erases user-defined functions and
variables that are no longer required
d. A )COPV command that copies the next user-defined
function(s) required for the application into the active
workspace
The previous steps are repeated until the application is complete.
3.
Use the )PROC command to execute the statements from the
procedure file. After the last statement is read and executed, the
5110 again accepts input from the keyboard.
Note: Using the )PROC command requires approximately 800
bytes of active workspace storage. The active workspace is
always cleared the first time a )PROC command is used after you
turn the power on or press RESTART, because the required 800
bytes can be allocated only in a CLEAR WS. The active
workspace is not cleared for any subsequent )PROC commands
because the 800 bytes are already allocated until the power is
turned off or RESTART is pressed. Therefore, if you have any
useful data in the active workspace, you should save this data
before using the )PROC command the first time.
Active Workspace Control
47

Advertisement

Table of Contents
loading

Table of Contents