IBM 5110 User Manual page 135

Apl
Table of Contents

Advertisement

130
The data file now looks like this:
o
2
3
RECORD 1
RECORD 2
RECORD
3
RECORD 4
CTLX~'IOR
1100~
ID=(DIRECT),
CTL.X
4
RECORD 5
()
~:;
.... - - - - - - - - - - - - - - When you specify the operation to a direct
access data file, the second element of
CTLX
records in the file.
o
0
DATX'"
D.areoo~s~n~
CTL..X~"O
0
~the
return code is the number of
RECORD
1
re~,
o
0
o
0
~
updated, and
DATX~H'
RECORD
A~ written back at the same record location.
CTLX~"l
0....-------
CTLX
CTl..X~O
1 2
CTl..X
o
2
3
DATX
RECORD
2
RECORD 3
Data records can be moved from
one record location to another
record location.
o
0
o
0
() 0
'CTl..X~Hl
3 2
2
3
CTl..X
DArX~H'
NEW
nATA~
New records can replace existing records
CTLX
~
1 2....-------
in the data file.
CTLX
o
2
3
CTL.X~\O
CTLX\
Remember, when you write records to the
data file, the records must meet the
requirements of the data file.
Terminate the operation. Now CTLX and
DATX can be used for other input/output
operations.
4
4
4

Advertisement

Table of Contents
loading

Table of Contents