IBM 5110 User Manual page 140

Apl
Table of Contents

Advertisement

In each case, after reading or writing records on the display screen,
the I/O processor assigns a return code to the CTL shared variable.
Following is an example of reading and writing data on the display
screen:
() 0
o
0
6
1
+
:I.
osva
2 7p'CTLDISPDATDISP'
CTI...DIHP~"·
DISPLAY'
CTI...DIBP
CTI...DIHP~··O
6
1
+
6
1
+
CTI...DIBP
The cursor appears on line 14.
1'--
Now, enter DISPLAY
I/O and press
EXECUTE.
DATDISP
DISPLAY
IIO
Dr-ITDI
BP~··:I. ()21+?)DATDISP--~After
the data is assigned to
CTI...DISP~··:t.
0 :t. ()
2'+
the DAT shared variable, the
DAT shared variable can be used
like any other variable.
~
Write the value currently assigned
to DAT on the display screen.
I nput/Output Control
135

Advertisement

Table of Contents
loading

Table of Contents