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.