Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Delete multiple PS files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Delete multiple PS files
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 22, 2009 10:27 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 24, 2009 4:42 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 24, 2009 4:47 pm    Post subject:
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    Post subject: Reply to: Delete multiple PS files
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    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
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us