One solution is to call BPXWDYN to alloc the dataset.  
If success it exist, otherwise not (depending on the 
error code of course...).
 

 

Regards, 
Thomas Berg 
__________________________________________ 
Thomas Berg   Specialist   IT-U   SWEDBANK 

 

 

> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Discussion List 
> [mailto:ibm-m...@bama.ua.edu] För Jim McAlpine
> Skickat: den 20 maj 2009 15:51
> Till: IBM-MAIN@bama.ua.edu
> Ämne: checking for the existence of a file in batch REXX
> 
> 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.
> 
> Jim McAlpine
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access 
> instructions, send email to lists...@bama.ua.edu with the 
> message: GET IBM-MAIN INFO Search the archives at 
> http://bama.ua.edu/archives/ibm-main.html
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to