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

How to delete a MIGRATE DASD Dataset.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 08, 2010 3:35 pm
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
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
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: 93
Location: India

PostPosted: Thu Apr 08, 2010 5:21 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 08, 2010 6:40 pm
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 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