Hello all.
I'm running a JES command from a REXX ($D N,ALL) and I want to collect all output from it, but I'm only getting the first item. My REXX code is the follow:
COMANDO = '$D N,ALL'
"CONSOLE DEACTIVATE"
"CONSPROF SOLDISP(NO) SOLNUM(5) UNSOLDISPLAY(NO)"
"CONSOLE ACTIVATE"
ADDRESS CONSOLE
"CART JES20001"
INTERPRET '"'COMANDO'"'
CR = GETMSG('MENSA.','SOL','JES20001',,60)
ADDRESS TSO
IF CR = 0 THEN
DO I = 1 TO MENSA.0
SAY '***' MENSA.I
END
ELSE SAY '****** ERROR EN EL COMANDO'
"CONSOLE DEACTIVATE"
Please, could anybody help me?
Thanks in advance.
I'm running a JES command from a REXX ($D N,ALL) and I want to collect all output from it, but I'm only getting the first item. My REXX code is the follow:
COMANDO = '$D N,ALL'
"CONSOLE DEACTIVATE"
"CONSPROF SOLDISP(NO) SOLNUM(5) UNSOLDISPLAY(NO)"
"CONSOLE ACTIVATE"
ADDRESS CONSOLE
"CART JES20001"
INTERPRET '"'COMANDO'"'
CR = GETMSG('MENSA.','SOL','JES20001',,60)
ADDRESS TSO
IF CR = 0 THEN
DO I = 1 TO MENSA.0
SAY '***' MENSA.I
END
ELSE SAY '****** ERROR EN EL COMANDO'
"CONSOLE DEACTIVATE"
Please, could anybody help me?
Thanks in advance.