Previous Topic: Writing a Line of DataNext Topic: Ending a Line Mode Session


Reading a Line of Data

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:

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.