IBM 5110 User Manual page 149

Apl
Table of Contents

Advertisement

o
0
o
6
1.00
144
CTLDBI(
~"
\ 0
CTI...DBI{
The output operation is now terminated.
Normally, you would want to check return codes
to assure proper operation.
For example, ltRCODE
should always be 0 with record input/output
C T
I...
D S
I(~"
· I 0 R
:1.:1. () ()
:I.' I D :;:: ( T EST) ·
T h
~~
of i
l
~~
i s n ()
tIl
b
e
i n
q
s
p
(,~
c::
i
fie
d
of () r
i n
put ()
l"
() U
t
P
H
t
o
p
~~ 1"
c1
t
ion~;.
.
You could have used
INR~---to
READ ONLY
or IORN----to READ or WRITE.
lOR and lORN differ in storaqe requirements and
p
(,~ 1"
f
0 1"
man
c e .
T h
(,~
Y
':;1)" ~~
t h
(,~
-:;
<o~ in (~\
i
n
fun
c
t i ()
n .
CTL.DBI(
N () T E
t hat t
1' 1
(-~ 1" (,~
<' : 1 1" (~
6
1" (-~
cor'
d
s;'
<:1
v ail a b l
(~
.
All reads and writes must address one of these
<:lctU<:1
l
r·~~cor'ds.
T
0
add r'
~~ COl"
d
s t
0
a
1"
e c: ()
l"
d
I / () of
i
l,;,\
0 l"
i q ina
l l
y
created usinq OUTF, you must specify an ADD
oP~~l"at
i
on.
C
T L
[I
S I{
I.JI
ill
n
0 I.JJ
b
f~
U ~~ (.~
d
t
0
1" f~ cl
dan d
h.I)"
i t
f~
a
n
cI
DATDSK is the variable containing the data.
CTLDBI(
~"i:':)
B C
t t t
NUMBER OF RECORDS TO READ OR WRITE
t
t
FIRST RECORD TO READ OR WRITE
-.
.................... ..
t
READ OR WRITE (READ=O AND WRITE=1)
CTI...DSI{~"
0 0
This says to read the first record (RECORD 0) and
read only one record which is the default for
the number of records
(.>DATDBI{

Advertisement

Table of Contents
loading

Table of Contents