Joined: 14 Mar 2007 Posts: 8620 Location: Back in jolly old England
HSM is a law unto itself.
You either accept where HSM puts the output or ...................... well, you don't have a choice. You have the option to write to a dataset or the terminal. I believe that the terminal output is done via TPUT and hence you can not intercept it.
You need to issue the HLIST command in REXX and use the WAIT parameter and then process the dataset created - as specified by your HLIST parameter cards.