View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Tue Jun 15, 2010 10:13 am Post subject: unable to delete datasets |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Jun 16, 2010 5:48 am Post subject: |
|
|
Thanks Kolusu for your help , it worked |
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Mon Aug 02, 2010 12:16 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
yadav2005 Intermediate
Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Mon Aug 02, 2010 1:10 pm Post subject: |
|
|
Kolusu,
I did look at the documentation but could not make out , please help me further. |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Aug 03, 2010 1:28 am Post subject: |
|
|
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 |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Tue Aug 03, 2010 4:56 am Post subject: |
|
|
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 |
|
|
|
|