WAITREAD

WAITREAD performs full screen terminal input and places the results into the compound variable.

Read syntax diagramSkip visual syntax diagram WAITREAD

The results in the compound variable are as follows:P

WAITREAD.0
contains the number of elements returned.
WAITREAD.1
contains the AID description.
WAITREAD.2
contains the cursor position.
WAITREAD.3 through WAITREAD.n
contains the remaining 3270 fields that have been modified.

Return codes

0
Normal return
3021
No terminal is attached
3099
Internal error

Example

'WAITREAD'

This example reads input from the terminal screen and places the results in the REXX compound variable WAITREAD.1 through WAITREAD.n.

Note: A read modified is performed to the terminal and an array is returned with information from this read. The format of these elements is: field_row field_column data