I am looking an idea /concept by which cobol program can execute REXX program or TSO command and get the execution output in cobol. For example if I run TSO HELP then all information i wanted to get in cobol and wanted to right in commarea to pass to some other programs.
I am able to execute the tso command and rexx but not able to get back the output of TSO command using TSOLNK and IKJEFTSR..
Joined: 20 Oct 2006 Posts: 6970 Location: porcelain throne
OUTTRAP will catch most output for the REXX.
then write the OUTTRAP stem to a file to be read by the COBOL program.
you could write to a variable pool,
but then your COBOL program would need to code the necessary TSO commands to access the data.
By using a file, the COBOL program do not need to use ISPF or TSO commands.,
the above is not a proof of concept, it is only a method by which you can
accomplish the task.