|
View previous topic :: View next topic
|
| Author |
Message |
Vijay Shankar
New User
Joined: 24 Oct 2008 Posts: 16 Location: Bangalore
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| No wildcards. Just code one DELETE record for each member name. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
| I'm sure that I posted some code to do this a while ago. Maybe the search button isn't working. |
|
| Back to top |
|
 |
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
| you can do this using ispf . IN option 3.4 browse the dataset and then issue S PGC* DEL |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| 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  |
|
| Back to top |
|
 |
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
| 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 |
|
 |
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 600 Location: London
|
|
|
|
If you have the PDSMAN product:
//STEP1 EXEC PGM=PDSM10,PARM='EMPTYO'
//PDSMPDS DD DSN=PDS.NAME,
// DISP=SHR |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
 |
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 600 Location: London
|
|
|
|
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 |
|
 |
bany512
New User
Joined: 26 Feb 2021 Posts: 1 Location: Czechia
|
|
|
|
| nevilh wrote: |
| you can do this using ispf . IN option 3.4 browse the dataset and then issue S PGC* DEL |
dont forget to go to the top menu and set confirmation to off  |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| any reason to resurrect a 17 years old topic !?!? |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1055 Location: Richmond, Virginia
|
|
|
|
| He must have meant "dont have forgetten to go to the top menu and set confirmation to off." |
|
| Back to top |
|
 |
|
|