To Read-Only Data From A Direct Access Data File - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

132
See the IBM 5110 APL Reference Manual for a description of when a
search by key is complete. If the search is successful, the record(s) in
the sector containing the appropriate record is assigned to the OAT
shared variable (multiple records are laminated together along a new
first dimension). Also, the second element of the return code assigned
to the CTL shared variable represents the record number of the first
record assigned to the OAT shared variable.
eTL
o
1+
"-The search was successful, and the first record aSSigned
to OAT is record number 4.
To Read-Only Data from a Direct Access Data File
To read-only data from a direct access data file is the same as reading
records when updating data in a direct access data file. However,
when you specify a read-only operation, you cannot write data back to
the data file (a CTL DOMAIN ERROR is generated); this prevents data
from accidently being written to the data file. You specify the
read-only operation as follows:
CTL
+-
'IIR [device/file number] [lD
=
(file ID)] [MSG
=
OFF] [TYPE
=
N]'
Read-only data from
a direct access data file.

Advertisement

Table of Contents
loading

Table of Contents