To receive input from the screen, we use the command:
-
Read
-
Pull
-
Accept
-
Receive
REXX uses the PULL instruction to read input from the standard input stream (the terminal/screen). PULL reads a line of text and parses it into variables. The PARSE instruction can also be used with PULL for more control, but PULL alone is the simple input method.
In REXX, PULL (or PARSE PULL) reads a line from the external data queue, or directly from the terminal if the queue is empty — this is the standard way a REXX exec receives interactive input from the screen. READ, ACCEPT, and RECEIVE are not REXX input instructions (ACCEPT is a COBOL statement for terminal input, and RECEIVE is a CICS/mainframe messaging verb, not REXX), so in a REXX context they're incorrect.