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
 

 

IDCAMS deletion

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1474
Location: Chennai

PostPosted: Tue Dec 30, 2008 5:13 pm    Post subject: IDCAMS deletion
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 30, 2008 5:23 pm    Post subject:
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: 1474
Location: Chennai

PostPosted: Tue Dec 30, 2008 5:48 pm    Post subject:
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

Site Director


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

PostPosted: Wed Dec 31, 2008 12:16 am    Post subject: Reply to: IDCAMS deletion
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    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 VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts IDCAMS ALTER REMOVEVOLS for open CICS... Pete Wilson JCL & VSAM 2 Wed Sep 10, 2014 7:04 pm
No new posts DELETE query to have deletion of the ... tecnokrat DB2 2 Mon Nov 25, 2013 12:19 am
No new posts IDCAMS to DFSORT/ICETOOL magesh23586 DFSORT/ICETOOL 10 Wed Oct 30, 2013 11:28 am
No new posts VSAM file with variable record length... tuxama JCL & VSAM 8 Mon Jun 17, 2013 4:47 pm


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