Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8614
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us