IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To delete a migrated dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anandan1212

New User


Joined: 30 Dec 2009
Posts: 3
Location: chennai

PostPosted: Wed Nov 03, 2010 10:30 am
Reply with quote

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
View user's profile Send private message
santu67159

New User


Joined: 13 Oct 2006
Posts: 2

PostPosted: Wed Nov 03, 2010 10:52 am
Reply with quote

try hdelete option.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Nov 03, 2010 10:55 am
Reply with quote

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
View user's profile Send private message
anandan1212

New User


Joined: 30 Dec 2009
Posts: 3
Location: chennai

PostPosted: Wed Nov 03, 2010 11:06 am
Reply with quote

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
View user's profile Send private message
anandan1212

New User


Joined: 30 Dec 2009
Posts: 3
Location: chennai

PostPosted: Wed Nov 03, 2010 11:10 am
Reply with quote

even though the return code is 0, dataset still resides.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 03, 2010 12:40 pm
Reply with quote

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
View user's profile Send private message
arif.md

New User


Joined: 13 Jun 2005
Posts: 10

PostPosted: Fri Nov 05, 2010 4:33 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top