View previous topic :: View next topic
|
Author |
Message |
anandan1212
New User
Joined: 30 Dec 2009 Posts: 3 Location: chennai
|
|
|
|
Hi,
I want to delete a dataset which is in migrated status. i tried giving hrecall but it was not hrecalled. and even i tried IDCAMS and IEFBR14 utilities to delete it but not deleted. |
|
Back to top |
|
|
santu67159
New User
Joined: 13 Oct 2006 Posts: 2
|
|
|
|
try hdelete option. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
stick to using IDCAMS to delete a migrated dataset, there is no need to recall a dataset in order to delete it.
Can you show the JCL used to delete the dataset and the output from such job including messages.
Gerry |
|
Back to top |
|
|
anandan1212
New User
Joined: 30 Dec 2009 Posts: 3 Location: chennai
|
|
|
|
Hi,
find the below JCL that is submitted and the JCL messages to delete the dataset
//step010 exec pgm=idcams
//sysout dd sysout=*
//sysprint dd sysout=*
//sysudump dd sysout=*
//sysin dd *
delete <dataset name>
/*
JCL message:
delete <dataset name>
IDC0896I migrated entry <data set name> deleted
completion code 0 |
|
Back to top |
|
|
anandan1212
New User
Joined: 30 Dec 2009 Posts: 3 Location: chennai
|
|
|
|
even though the return code is 0, dataset still resides. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Usually the HDELETE 'data set name' <<< in quotes
will work.
If this does not work, please contact your storage management team as there may be an error in the HSM control datasets which can only be resolved by the storage management people. |
|
Back to top |
|
|
arif.md
New User
Joined: 13 Jun 2005 Posts: 10
|
|
|
|
DELETE '<DATASET NAME>' is working. Below is the output.
IDCAMS SYSTEM SERVICES
DELETE 'XXXXXX.A.TEST.XXX'
IDC0896I MIGRATED ENTRY 'XXXXXX.A.TEST.XXX DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0 |
|
Back to top |
|
|
|