Joined: 26 Apr 2004 Posts: 4648 Location: Raleigh, NC, USA
I'm reading this post thinking "and ???". Anyway, to respond to the topic title, I'd say "run it in batch, pointing the SYSTSPRT DD statement to a dataset rather than sysout.".
Beyond that, seeing as WHOHAS isn't a (standard) TSO command, I don't know what you were expecting for results. There are other topics on the same issue of a dataset being in use, and I believe a few offer some other options.