IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

check if the files are existing or not


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Thu Mar 12, 2009 10:22 pm
Reply with quote

I have a requirement : I have a file with the names of around 100 files. I have to manually check if the files are existing or not. Can someone help me to do this in Rexx ?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 12, 2009 11:20 pm
Reply with quote

OK. Help us out a bit. How would you do this manually? What TSO/ISPF or REXX functions have you tried? What did or didn't work?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Mar 13, 2009 12:02 am
Reply with quote

Hints:

LISTCAT is useful for this.

The REXX SYSDSN function is useful for this.

The TSO/E LISTDS command is useful for this.

The REXX LISTDSI function is useful for this.
Back to top
View user's profile Send private message
Nigel

New User


Joined: 24 Dec 2008
Posts: 3
Location: Salem, Oregon

PostPosted: Fri Mar 13, 2009 11:00 am
Reply with quote

Try inputting the file of DSNames into a LISTCAT, iterate for each DSN and check LISTCAT return code...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top