IBM 5110 User Manual page 61

Apl
Table of Contents

Advertisement

56
5.
Before the contents of the active workspace can be written to the
media by the }SAVE command, the input/ output operations to the
data file must be terminated. For example, you might use the
following user-defined function:
'i,lCI...OSE
I::
[1::1
\I
'\l
CI .. ,DSE
FII...EID __
- - - - - Y o u must specify the file ID
r:
1]
CTI...F;A\'l[~-·~
n
enclosed in single quotes.
[
::.:~
::I
X
~-
C
:f C
~:; f~
V E
[3]
~(O¢lf~57ERROR
[!.~]
I
THE FILE
CI...D~:)ED
~:;UCCFS~:)FI.Ji...I...Y
I
I::
~:.i::l
..
~
0
[6]
EI~~:nF~:'
THE
FILE DID
NOT
CI...O~:~E
......
··THF
PFTI.JF)N COnE
I~::;:'
[7::1
X
V
Note: If you want to use the data file at a later time, do not
terminate the input/output operations. Instead, you should use
the }CONTINUE command to write the contents of the active
workspace to the media and then use the }RESUME command to
reestablish the input/output operations at a later time.
This procedure works as follows, using the sample user-defined
functions:
)
i"l(.~Pl<
:1.0 :I. B :I. : 1 ..... - - - - - File number 8 is used as
MA
I~I< [J)
000 BOO
:I. 0
the data file,
DI..H'li'f'( ..
Create the data file
THE
))?~
T
,~)
FILE I
~:)
C:
I~E{~
TED
BUCCF~:~~;FUI...I...
Y
used to save the
variables.
() PEN
·
I~Ff~1...
I
STO Rf.,GF '- .. - - - The data file is ready
SUCCESSFUL D PF
I~tl
T
J
ON
for input/output operations.
A variable to
be saved for later
INFORMATION~'A
PROGRAMMING
us/
l...f.lNCil.JtlGF '

Advertisement

Table of Contents
loading

Table of Contents