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
 
Delete PDS members without deleting dataset itself

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jaydeb

New User


Joined: 17 Oct 2005
Posts: 9
Location: Pune

PostPosted: Tue Oct 30, 2007 2:39 pm    Post subject: Delete PDS members without deleting dataset itself
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Tue Oct 30, 2007 2:47 pm    Post subject: Reply to: Delete PDS members without deleting dataset itself
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Tue Oct 30, 2007 2:53 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Oct 30, 2007 2:54 pm    Post subject: Reply to: Delete PDS members without deleting dataset itself
Reply with quote

Here's a couple of previous topics that may be relevant:

http://ibmmainframes.com/about6047.html
http://ibmmainframes.com/about16738.html
Back to top
View user's profile Send private message
jaydeb

New User


Joined: 17 Oct 2005
Posts: 9
Location: Pune

PostPosted: Tue Oct 30, 2007 3:18 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Priya_1985

New User


Joined: 06 Oct 2008
Posts: 3
Location: Hyderabad

PostPosted: Sat Oct 18, 2008 11:42 am    Post subject: Reply to: Delete PDS members without deleting dataset itself
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Oct 18, 2008 8:03 pm    Post subject:
Reply with quote

Hello,

Quote:
is there any command to delete the PDS selectively at a time
Please clarify - showing an example would help.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8620
Location: Back in jolly old England

PostPosted: Sat Oct 18, 2008 8:51 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 5 Thu Dec 14, 2017 8:18 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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