Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To delete a migrated dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To delete a migrated dataset
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    Post subject: Reply to: To delete a migrated dataset
Reply with quote

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

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 03, 2010 10:55 am    Post subject:
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    Post subject: Reply to: To delete a migrated dataset
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    Post subject: Reply to: To delete a migrated dataset
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 03, 2010 12:40 pm    Post subject:
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    Post subject: Reply to: To delete a migrated dataset
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us