MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

unable to delete datasets

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Jun 15, 2010 10:13 am    Post subject: unable to delete datasets Reply with quote

Hai All,

I have four datasets which are like below:
Code:

YADAV.TEST.A.B.C.A0001
YADAV.TEST.A.B.C.A0002
YADAV.TEST.A.B.C.A0003
YADAV.TEST.A.B.C.A0004

I am trying to delete by the code below and I am failing:
Code:

//STEP010  EXEC PGM=IDCAMS                                             
//SYSPRINT DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  DELETE YADAV.TEST.A.*.*.*         SCRATCH PURGE                       
  IF MAXCC < = 8 THEN SET MAXCC = 0                                     
/*                                                                     

ERROR
Code:

IDCAMS  SYSTEM SERVICES                                           TIME: 11:00:00
                                                                               
  DELETE YADAV.TEST.A.*.*.*       SCRATCH PURGE                               
IDC3203I ITEM 'YADAV.TEST.A.*.*.*' DOES NOT ADHERE TO RESTRICTIONS           
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12           
                                                                               
  IF MAXCC < = 8 THEN SET MAXCC = 0                                             
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12             

I also tried to delete by the code below and I am failing:
Code:

//STEP010  EXEC PGM=IDCAMS                                             
//SYSPRINT DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  DELETE YADAV.TEST.**         SCRATCH PURGE                       
  IF MAXCC < = 8 THEN SET MAXCC = 0                                     
/*                                                                     

ERROR
Code:

IDCAMS  SYSTEM SERVICES                                           TIME: 11:00:44
                                                                               
  DELETE YADAV.TEST.**          SCRATCH PURGE                               
IDC3203I ITEM 'YADAV.TEST.**' DOES NOT ADHERE TO RESTRICTIONS               
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12           
                                                                               
  IF MAXCC < = 8 THEN SET MAXCC = 0                                             
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12             

Can anybody help me in this regard.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Tue Jun 15, 2010 10:18 am    Post subject: Reply with quote

yadav2005,

You canNOT use wild multi qualifier wild cards for IDCAMS DELETE command. Search for "ADRDSSU DELETE" and you will find topics like these



http://www.mvsforums.com/helpboards/viewtopic.php?t=3955&highlight=adrdssu+delete

http://www.mvsforums.com/helpboards/viewtopic.php?t=2758&highlight=adrdssu+delete


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 16, 2010 5:48 am    Post subject: Reply with quote

Thanks Kolusu for your help , it worked
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Aug 02, 2010 12:16 pm    Post subject: Reply with quote

Kolusu,

I have a question further , how can we delete all the files from any particular volume , say I have a volume with many files , basically I want to delete all files to make volume empty.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Mon Aug 02, 2010 12:52 pm    Post subject: Reply with quote

yadav2005,

Did you look up ADRDSSU documentation?

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2R230/

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Aug 02, 2010 1:10 pm    Post subject: Reply with quote

Kolusu,

I did look at the documentation but could not make out , please help me further.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Aug 03, 2010 1:28 am    Post subject: Reply with quote

If you are trying to free up a volume, then you will need to liaise with your storage management team to "DISNEW" that volume in the storage pool, which will stop new dataset allocations using that volume.

They can also use HSM commands to copy / migrate data away from that volume to other volumes in the same STORGRP.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?


Last edited by expat on Tue Aug 03, 2010 5:00 am; edited 1 time in total
Back to top
View user's profile Send private message
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Tue Aug 03, 2010 4:56 am    Post subject: Reply with quote

Quote:

You canNOT use wild multi qualifier wild cards for IDCAMS DELETE command

with z/OS 1.11 it is now possible
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group