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: 6966
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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