Hello Everyone,
I am planning to automate some of our console command like
D R,L
D R,U
My requirement is
Want to issue this commands either through JCL or REXX and Capture the output in a Dataset.
I was able to achive this by executing the below rexx program
------------------------------------------------------------
/*REXX - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
ISFRC = ISFCALLS("ON")
IF ISFRC <> 0 THEN DO
SAY "ISFCALLS RC" ISFRC
EXIT
END
CMD = "/RO *ALL,D R,U"
ADDRESS SDSF "ISFEXEC '" || CMD || "' "
IF RC <> 0 THEN DO
SAY "ISFEXEC RC" RC
SAY ISFMSG
DO IM = 1 TO ISFMSG2.0
SAY ISFMSG2.IM
END
EXIT
END
CALL ISFCALLS ("OFF" )
OUTDSN='OUTPUT.DATA'
"ALLOC DD(OUTDSN) DA('"OUTDSN"') OLD REU"
"EXECIO * DISKW OUTDSN (STEM ISFULOG. FINIS"
"FREE DD(OUTDSN)"
EXIT
----------------------------------------------------
However, we dont have SDSF in one of our old mainframe, so iam unable to use this code. (TSO and ISPF are avaliable)
Could anyone please help me with the code to execute and capture the console command o/p in a dataset.
FYI.. I dont have console command authority. so i will not be able to activate or deactivate the console through REXX.