On Thu, May 21, 2009 at 3:14 PM, Walt Farrell <[email protected]> wrote:

> On Wed, 20 May 2009 14:51:10 +0100, Jim McAlpine <[email protected]>
> 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.
>
> I don't think anyone else has mentioned it, so I will.  You could run
> IKJEFT01 in your batch job and have it CALL your COBOL program.  Then, when
> your program invokes the REXX exec it would have the TSO facilities
> available to it.
>
>
> --
> Walt
>
> ----------------------------------------------------------------------
> 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
>


Thanks for all the replies and suggestions.  Having spoken again to the
developer who originally asked the question,  it seems it is a tad more
complicated in that he actually wants to do i/o against the file from the
REXX program.  The question now becomes, can we call TSO from a COBOL
program without being authorised.  And to answer Walts suggestion, no we
can't have the COBOL program invoked from IKJEFT01 as that part of the
architecture is carved in stone.

Jim McAlpine

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