I am trying to run the Jes2 command $d spl,all using Rexx and want to capture the output in dataset. But I am getting only some part of the output in DS, For other command I am getting complete output. Please Check where I am making mistake.
ADDRESS TSO "CONSPROF SOLDISP(NO)"
DO X=1 TO 3
IF RESMSG1.0 = 0 THEN DO
SAY 'NO MESSAGE RETURNED'
DO I=1 TO RESMSG1.0
Joined: 30 Nov 2013 Posts: 787 Location: The Universe
I'm pretty sure Pedro is correct when he says it's a timing problem. $DSPL has to do I/O to collect the utilization statistics it reports and that takes a little while. Long, long ago JES2 could keep free space information in the checkpoint so no I/O would be required, but that was long, long ago, long before the $DSPL command was envisioned.