On Wednesday 20 May 2009, Jim McAlpine wrote:
> We have a REXX program which is called from COBOL in batch in which
> we need to check for the existence of a file. Obviously there is no
> TSO environment here so no commands like LISTDS. Is there anyway to
> acheive this without the TSO environment.
Would it be feasible for you to invoke IKJEFT01 instead of the
Rexx interpreter to run your Rexx exec? That way you have the TSO
environment available to your Rexx script, and can use SYSDSN and
friends. IKJEFT01 will return the return value from last command
executed.
Or is your COBOL program linked with compiled Rexx code? How
does your program communicate with Rexx?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html