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

IDCAMS deletion


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Dec 30, 2008 5:13 pm
Reply with quote

Hi All,

If we use IDCAMS to delete a migrated dataset(migrated to tape), IDCAMS log says that the dataset has been deleted.

Code:
IDC0896I MIGRATED ENTRY XK89.COUPON.PD9 DELETED         
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0


But the migrated dataset was not recalled, it was deleted directly w/o recalling. icon_eek.gif
If we use any other utility like IEBGENER to delete, it recalls the dataset and deletes it.

I was surprised that IDCAMS deleted the dataset in no time.

If IDCAMS is just deleting the catalog entry alone, then physically the dataset will be present in tape.
I assume that the tape was not touched in this deletion process(I may be wrong here)

How will mainframes understand that the tape is free now? icon_question.gif
Is using IDCAMS deletion recommended? icon_question.gif


Thanks in advance,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 30, 2008 5:23 pm
Reply with quote

Yes, use IDCAMS to delete migrated datasets rather than anything else that causes a recall.

When IDCAMS deletes the catalog entry and sees that the dataset is migrated, it further signals to HSM to delete the MCDS D record which removes the entry from HSM.

The tape is not always made "FREE" by deleting a single dataset as HSM stores many datasets onto one tape volume. Until the tape is recycled by HSM it will not be made available to the scratch pool, well not unless some fool does a DELVOL PURGE on the volume icon_confused.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Dec 30, 2008 5:48 pm
Reply with quote

Many thanks Expat for your time. icon_biggrin.gif

To be honest I did not understand all the contents of the previos reply.
Cos im not aware about space management.
This is enough for me
Quote:
Yes, use IDCAMS to delete migrated datasets rather than anything else that causes a recall.


If Hierarchial Space Management is aware that the dataset is deleted then
its good icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 31, 2008 12:16 am
Reply with quote

Hi Vasanth,

Quote:
To be honest I did not understand all the contents of the previos reply.
As time goes on, you will icon_smile.gif

d
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 IDCAMS listcat service using cobol JCL & VSAM 1
No new posts IDCAMS & LISTCAT with ddnames JCL & VSAM 1
No new posts Capture DSN names through SORT / IDCAMS DFSORT/ICETOOL 8
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... JCL & VSAM 12
No new posts IDCAMS Allocate & Repro JCL & VSAM 9
Search our Forums:

Back to Top