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
 
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 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
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

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