IBM 5110 User Manual page 132

Apl
Table of Contents

Advertisement

When you read multiple records from a direct access data file, the
records are laminated together along a new first dimension before
they are assigned to the OAT shared variable. For example, assume
you read three records (character vectors) from the following data file:
DATA
FILE
o
I
ABCEF
I
GH IJK
I
CTl...f· ()
")
....
~5
CTI...
()
0
DAT
DAN .•
DAVE.
JERRY
2
3
4
DAN..
J
DAVE.
J
JERRY
I
~)DAT
3
~)
04
_ - - - - - - - - - - - - The shared variable OAT contains
a 3 x 5 character matrix.
The new first dimension represents the number of records read. You
can specify each individual record by indexing the new dimension.
DAT[1;]
DAN ••
DAT[3;J
.JERI~Y
5 \
(
,
Input/Output Control
127

Advertisement

Table of Contents
loading

Table of Contents