To transfer data from the terminal buffer to program variable storage, issue a READ LINE FROM TERMINAL statement. READ LINE FROM TERMINAL transfers data to your program as follows:
Uses of READ LINE FROM TERMINAL
Typical uses of the READ LINE FROM TERMINAL function are:
GETEMP HENDON
DC replaces the task code (GETEMP) with leading blanks and returns the data (HENDON) to the program.
Example of READ LINE FROM TERMINAL
In the figure below, the first READ LINE FROM TERMINAL request returns the value in the first data field; subsequent READ LINE FROM TERMINAL requests return the values in the remaining data fields in the order in which they appear on the screen.
Copyright © 2013 CA.
All rights reserved.
|
|