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
 

 

Mass Delete of PDS memebers?

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

New User


Joined: 24 Oct 2008
Posts: 16
Location: Bangalore

PostPosted: Thu Aug 20, 2009 11:32 am    Post subject: Mass Delete of PDS memebers?
Reply with quote

Hi All,

I would like to delete some members from PDS using IDCAMS.

I tryied using below job
=================
//STEP0010 EXEC PGM=IDCAMS,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
DELETE UGCG1CB.V823.CLEANLIB(PGC*)
/*
==================

This job throughing below error
==========
DELETE (UGCG1CB.V823.CLEANLIB(PGC*))
IDC3203I ITEM 'UGCG1CB.V823.CLEANLI' DOES NOT ADHERE TO RESTRICTIONS
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
===========

I tried to delete one member using this JOB that time it went fine.

But i want to delete multiple members at a time.

Can you please help me out.

Thanks,
Vijay
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Aug 20, 2009 11:34 am    Post subject: Reply to: Mass Delete of PDS memebers?
Reply with quote

No wildcards. Just code one DELETE record for each member name.
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 Aug 20, 2009 11:37 am    Post subject:
Reply with quote

I'm sure that I posted some code to do this a while ago. Maybe the search button isn't working.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Thu Aug 20, 2009 9:18 pm    Post subject:
Reply with quote

you can do this using ispf . IN option 3.4 browse the dataset and then issue S PGC* DEL
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Thu Aug 20, 2009 9:20 pm    Post subject: Reply to: Mass Delete of PDS memebers?
Reply with quote

Quote:
you can do this using ispf . IN option 3.4 browse the dataset and then issue S PGC* DEL


beware of flaky finger action icon_cool.gif
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Fri Aug 21, 2009 3:44 am    Post subject: Reply to: Mass Delete of PDS memebers?
Reply with quote

Won't DEL invoke the DELETE command for each member and require an enhanced member list? That would be a bit slow and leave you with the data set allocated disp=old. Try S PGC* D to use the built-in ISPF delete.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Wed Jan 06, 2010 8:41 pm    Post subject:
Reply with quote

If you have the PDSMAN product:

//STEP1 EXEC PGM=PDSM10,PARM='EMPTYO'
//PDSMPDS DD DSN=PDS.NAME,
// DISP=SHR
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Jan 07, 2010 3:38 am    Post subject:
Reply with quote

Hi DinoZos,

Quote:
I would like to delete some members from PDS using ID


the request was to delete SOME and not all of the members.



Gerry
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Thu Jan 07, 2010 4:38 pm    Post subject:
Reply with quote

gcicchet - Oooops missed that. As ever the devil is in the detail!

Perhaps this might be better, although the list must be generated first of course:
//DELMEMB EXEC PGM=PDSM32
//PDSMPDS DD DISP=SHR,DSN=PDS.NAME
//PDSMRPT DD SYSOUT=*
//SYSIN DD *
DELETE MEMONE
DELETE MEMTWO
DELETE MEMTHREE
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 Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts How to sync memebers in some datasets... Lord.of.Wind Compuware & Other Tools 2 Thu Apr 21, 2016 12:48 pm


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