To transfer data from the terminal screen to program variable storage, issue either a READ TERMINAL or a WRITE THEN READ TERMINAL statement. This transfer begins when the user signals completion of the data entry by pressing an AID key. With 3270-type devices, data can optionally be transferred to the program without user intervention.
Note: WRITE THEN READ TERMINAL is not recommended because it is inherently conversational and holds resources.
Acquiring the Input Buffer
You must dynamically acquire the input buffer for record-element descriptions from the storage pool when the read operation is complete:
Where to Define Data
Because storage is acquired by an explicit program request, you must define the associated data-item descriptions in the program's LINKAGE SECTION.
Copyright © 2013 CA.
All rights reserved.
|
|