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
 

 

How to delete a MIGRATE DASD Dataset.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ash250980
Warnings : 1

New User


Joined: 16 Jun 2009
Posts: 5
Location: India

PostPosted: Thu Apr 08, 2010 3:28 pm    Post subject: How to delete a MIGRATE DASD Dataset.
Reply with quote

Hi All,

I am trying to delete a DASD Dataset which is in MIGRATE status using IDCAMS but got foolowing error in SYSOUT

IDC3014I CATALOG ERROR
IDC3007I ** VSAM CATALOG RETURN CODE IS 38
IDC0551I ** ENTRY SS6116.M144632.B611251B.TEST.DATA1 NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

The command used is

DELETE SS6116.M144632.B611251B.TEST.DATA1

I have also tried deleting the file multiple time but got same error.

Please provide me an alternative solution to delete the datasets. I have around 1200 datasets to be deleted which are in same status.

Thanks & Regards
Ashraf
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: Thu Apr 08, 2010 3:35 pm    Post subject:
Reply with quote

It's something that you should speak to your storage management team about. It seems that the datasets MAY have been deleted in HSM but the catalog entry still remains.

If this is the case, DELETE NOSCRATCH would be the best solution, but, if the HSM entities do still exist, without consulting your storage management team you may possibly cause more problems than you think you have resolved.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Apr 08, 2010 4:47 pm    Post subject:
Reply with quote

SS6116.M144632.B611251B.TEST.DATA1 is the cluster name?
Back to top
View user's profile Send private message
ash250980
Warnings : 1

New User


Joined: 16 Jun 2009
Posts: 5
Location: India

PostPosted: Thu Apr 08, 2010 5:20 pm    Post subject:
Reply with quote

Hi All,

S6116.M144632.B611251B.TEST.DATA1 is a NON-VSAM DASD file (PS).

The problem was resolved. The datasets were created with EXPIRY DATE in future. So I issued the DELETE command with PURGE option. The datasets were deleted.

But there are few datasets whose entries are not found in VSAM CATALOG but they are found in ISPF 3.4 Dataset Listing.

I think the CATALOG files were not updated. Please let me know if my understanding is correct.
Back to top
View user's profile Send private message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 94
Location: India

PostPosted: Thu Apr 08, 2010 5:21 pm    Post subject: Reply to: How to delete a MIGRATE DASD Dataset.
Reply with quote

Ashraf,

Were you able to delete any migrated dataset other than the one you've specified, using the process you've followed? If yes, the dataset could be cluster name as Dick suggested. If you are not able to delete any migrated dataset with your process , try this.
Code:

//STEP01   EXEC PGM=IKJEFT01                 
//SYSTSPRT DD SYSOUT=*                       
//SYSTSIN  DD *                             
  HDELETE ('SS6116.M144632.B611251B.TEST.DATA1 ') NOWAIT
/*   
                                       
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: Thu Apr 08, 2010 6:40 pm    Post subject: Re: How to delete a MIGRATE DASD Dataset.
Reply with quote

ash250980 wrote:
I am trying to delete a DASD Dataset which is in MIGRATE status using IDCAMS but got following error in SYSOUT

Confusion ON
Is this a DASD dataset or a migrated dataset.
Does the dataset reside on DASD but has a catalog entry as MIGRAT. Please clarify.
Confusion still ON
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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
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


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