The statement <PULL reads from STDIN if there's no data in the REXX queue.
Use the function <LINEIN("QUEUE:") to read from a REXX queue and wait for
the data if the queue is empty.
(see also Using a queue) Reading from an invalid queue raises the condition FAILURE Therefor you should test a queue before using it res=10410008.Using a queue