View previous topic :: View next topic
|
Author |
Message |
jaydeb
New User
Joined: 17 Oct 2005 Posts: 9 Location: Pune
|
|
|
|
I want to delete the members of a PDS dataset without deleting the dataset itself. Here, I don't know the exact number of members the PDS dataset is having, may be 100 or more.
How to write a job to delete these members of the PDS.
Thanks & Regards,
Jaydeb |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Do You want to delete all the members or selectively ??
there are tools available to "empty/reset" the directory of a PDS/PDSE
the members You want to delete have some common patterns..
for example delete members starting_with or containing some string |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if it is one time task You can
go to ispf option 3.4
list Your dataset
choose the option m
on the command line issue the command
s * d
to delete all the members ( You can in the next panel turn confirm off )
or for a pattern
s aa* d
same as before
after deletion it would be better to compress te dataset if PDS |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
jaydeb
New User
Joined: 17 Oct 2005 Posts: 9 Location: Pune
|
|
|
|
Hi All,
Thanks all for your help. I found ispf option 3.4 option more convenient.
Anyway, Thanks again to you all.
Thanks & Regards,
Jaydeb |
|
Back to top |
|
|
Priya_1985
New User
Joined: 06 Oct 2008 Posts: 3 Location: Hyderabad
|
|
|
|
Hi all
u hav a option S * d,for deleting selectively members..is there any command to delete the PDS selectively at a time. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
is there any command to delete the PDS selectively at a time |
Please clarify - showing an example would help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Using REXX you can list the PDS members and then delete them one by one.
There are numerous examples of using REXX to list a PDS on this forum, and all you need to do is to invoke IDCAMS in the REXX to delete them. |
|
Back to top |
|
|
|