I want to ask for console input without disturbing the contents of the stack. However, the PULL function will always pull from the stack first if it is not empty. How can I do this?
Asked
Active
Viewed 62 times
2 Answers
0
Depending on the platform, you may be able to use PARSE EXTERNAL
. Not every Rexx implementation supports it - it's not part of the ANSI standard. But, for example, IBM's TSO/E and z\VM implementations do. PARSE EXTERNAL
always reads from the console, no matter what the contents of the stack.

Ross Patterson
- 9,527
- 33
- 48