Sample Input/Output Operations - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

140
SAMPLE INPUT/OUTPUT OPERATIONS
'1
.:.,
o
0
o
0
o
0
o ()
o ()
**
SEQUENTIAL I/O
**
Se<:ltH~n
1:
i
('~
l
of i
l
(~.~~
on
cI i
~:)k
e
t t
(0,\
al"
f~
es~:;en
t i all
y
th e
~:;ame
i:l~)
ti:lPe
f i l
e~:;.
The
1:tLlO
typ~~~:~
{~l"('~:
GENERAL EXCHANGE (Fi le type 2)
'~PL.
INTEI~NAI...
(F i
l
(0,\
typ e
B)
:1.
[lSVO
'SEQDSI('
Thi~;
eX(':lmplf~
SP('~c:i'fif~~:>
'OUT' to
inclic:atf~
ou'ti:>ut
clnd clef.au
l
t~:;
to th(-,\ API...
INTEI~NAI...
F
i
l
e Type,
BE
Q
D S I(
~..
· (] U T
j, j, ()
0:1.
I
[I :::: (
T EST) •
Once the operation is established and checked
f () r
v
(~
lid
com
p
let
ion ... , i t h a
· 0
1"
e t
tH'
n
C: 0
d
(~
,
SEQDBI<
1"
(,~
COt"
d~;;
m
(~
y
b
e
tin" i t t
f~
n
tot
h
e dis
I<
e
t t
e f i
l (-, \ .
Ani
n
t e
9
e
1"
1- (~ (: 0)"
d
i~:;
~In"
itt e
n f i
1- f:)
t .
BEQDSI(~"
\
1. 0
Always checl< the return c:ode on output.
SEQDSK
APL..
INTEI~NAL
f:;f~qUent
i
i~
l
'f
i l
e~;
per'iIl
it
l,n-
i t i
n<;J
of
any t
yp
(,~
0
f
di-l
t
a
lLl
i
t h
i nth
(o~
S<HIl
e
f
i l e,
F ())-
example, you can write
a
floating point record,
SEQDSJ(~"
,
5+ \
1.
0
SEQDBI<
and a binary record,
SEQDSK~
15pO 1 0 1 0
j,
1
SEQDSI(
and
a
c:haracter record.
SEQDSK~'This
is the LAST record.'
BEQDBI(

Advertisement

Table of Contents
loading

Table of Contents