On Wed, 20 May 2009 17:15:38 -0400, Bob Woodside wrote:

>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?
>
Doesn't IKJEFT01 require that it be invoked only from an
APF authorized program, which might be an obstacle to the
OP?

If the OP intends to process the file in the COBOL program,
might allocating it in Rexx shortcut the need to allocate
it in the COBOL code?

-- gil

----------------------------------------------------------------------
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

Reply via email to