0

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?

ArnoLamme
  • 3
  • 1

2 Answers2

0

Create a new stack prior to your PULL, delete it when you're done with the PULL.

cschneid
  • 10,237
  • 1
  • 28
  • 39
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