When issuing a TSO command through an ADDRESS TSO in OPSMVS, customers may receive a RC(4) and not results.
See here a sample:
OPS0997T *-* 2: TRACE I
OPS0997T *-* 4: ADDRESS TSO
OPS0997T >L> TSO
OPS0997T *-* 5: "LU ABCDE"
OPS0997T >L> LU ABCDE
IEF196I IGD100I VIO ALLOCATED TO DDNAME SYS00041 DATACLAS (DCDFLT)
OPS0997T +++ RC(4)
OPS0997T *-* 6:EXIT
Release : 14.0
The error message doesn't adequately identify the reason for the abend.
Change the code to the below and see the EDQ message about the command. It will provide information on the error being received:
/* rexx */
Trace i
Address TSO
"LU ABCDE"
Say 'rc: ' rc
Do while queued() <> 0
Pull Line
Say Line
End
Exit
** end code