Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
check if the files are existing or not

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: check if the files are existing or not
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

Moderator Team Head


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

PostPosted: Thu Mar 12, 2009 11:20 pm    Post subject: Reply to: check if the files are existing or not
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

Moderator Team Head


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

PostPosted: Fri Mar 13, 2009 12:02 am    Post subject: Reply to: check if the files are existing or not
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    Post subject: Reply to: check if the files are existing or not
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us