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

Delete multiple PS files


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

New User


Joined: 13 Jan 2009
Posts: 5
Location: Pune

PostPosted: Thu Jan 22, 2009 10:22 pm
Reply with quote

Hi All,

In one of the previous post, I saw a REXX code to delete n number of PS flat files in a single execution of the tool. But can anyone say, if we can delete a set of flat files by giving partially qualified name.

For example, if the file which contains the list of flat files to be deleted have a record like 'USERID.PS.PROJ.* '. Here can we customize the tool so that it will search for all the files which is having above qualifier and delete it.

Eg. 'USERID.PS.PROJ.FILE1
'USERID.PS.PROJ.FILE2
'USERID.PS.PROJ.FILE 3 etc
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jan 22, 2009 10:27 pm
Reply with quote

If it is code that I posted, yes. It uses full * ** and % filter capabilities for searching, but extremely limited functionality on my own exclude routine.
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Tue Feb 24, 2009 4:35 pm
Reply with quote

What is the other post you both are referring ? Can you post the link of the same ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 24, 2009 4:42 pm
Reply with quote

THIS one
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Tue Feb 24, 2009 4:44 pm
Reply with quote

Thanks expat.. This was very Quick icon_wink.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 24, 2009 4:47 pm
Reply with quote

Slower than normal day icon_eek.gif

You will probably have to change the concatenations from ! to | by

C '5A'X '4F'X ALL

as when at the site where that was written the ! was the valid form for concatenation.
Back to top
View user's profile Send private message
rohit2219

New User


Joined: 10 Feb 2009
Posts: 7
Location: India

PostPosted: Tue Feb 24, 2009 4:56 pm
Reply with quote

Hi

This ca be done through a combo of LISTDS & outtrap

LISTDS 'USERID.PS.*'
will list all the DSnames required which can be trapped into an array by OUTTRAP command
Capture the DSNAMES alone from the array and delete them.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
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
Search our Forums:

Back to Top