unable to delete datasets
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Utilities

#1: unable to delete datasets Author: yadav2005 PostPosted: Tue Jun 15, 2010 10:13 am
    —
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.

#2:  Author: kolusuLocation: San Jose PostPosted: Tue Jun 15, 2010 10:18 am
    —
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

#3:  Author: yadav2005 PostPosted: Wed Jun 16, 2010 5:48 am
    —
Thanks Kolusu for your help , it worked

#4:  Author: yadav2005 PostPosted: Mon Aug 02, 2010 12:16 pm
    —
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.

#5:  Author: kolusuLocation: San Jose PostPosted: Mon Aug 02, 2010 12:52 pm
    —
yadav2005,

Did you look up ADRDSSU documentation?

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

Kolusu

#6:  Author: yadav2005 PostPosted: Mon Aug 02, 2010 1:10 pm
    —
Kolusu,

I did look at the documentation but could not make out , please help me further.

#7:  Author: expatLocation: Welsh Wales PostPosted: Tue Aug 03, 2010 1:28 am
    —
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.


Last edited by expat on Tue Aug 03, 2010 5:00 am; edited 1 time in total

#8:  Author: nevilh PostPosted: Tue Aug 03, 2010 4:56 am
    —
Quote:

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

with z/OS 1.11 it is now possible



MVSFORUMS.com -> Utilities


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group