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
 

 

To delete all migrated datasets from Tapes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
pavankumarp

New User


Joined: 13 Feb 2007
Posts: 12
Location: Hyderabad

PostPosted: Wed Dec 19, 2007 10:32 am    Post subject: To delete all migrated datasets from Tapes
Reply with quote

hi all,

i need to do a region refresh. there are around 36000 datasets.
most of them are in migrated status. i need to delete a set of datasets that are in the migrated status migration level2(tape migrated). is there any way i can delete these migrated datasets(ex zjpvpj2.td**) using a single command on the command line or any jcl which does this fuction.

please let me know for any clarifications.

Regards,
Pavan
Back to top
View user's profile Send private message

diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Dec 19, 2007 10:37 am    Post subject:
Reply with quote

Pavan,

For deleting datasaets(Test/Production) you need to have the permission to do that?

I beleive you need to check out with your system programmers.

Let me know why you need to delete them ? Since all the datasets are migrated, you wont encounter any problem.
Back to top
View user's profile Send private message
pavankumarp

New User


Joined: 13 Feb 2007
Posts: 12
Location: Hyderabad

PostPosted: Wed Dec 19, 2007 10:43 am    Post subject:
Reply with quote

Hi diwa,

thanks for the reply. i do have the access to delete the datasets.
we are doing the region refresh of the test region because there is a lot of junk data present in this test region(lot of unecessary tape resource used). moreover we are trying to simulate it with the production region data and carry out testing in this region, thts the reason we are deleting the data in this particular region

Regards,
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Dec 19, 2007 11:21 am    Post subject:
Reply with quote

Pavan,

I beleive we cannot delete migrated tape datasets.

You need to check with your system programmers to do tat.
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Wed Dec 19, 2007 11:28 am    Post subject:
Reply with quote

Hi,
This can be done using group of ISPF commands
1. Use the first qualifier/ or the qualifier datasets you are looking for in 3.4
2. Issue "SAVELIST ABC", all the datasets will be stored in one dataset.
3. By using Edit commands, IDCAMS you can delete the migrated datasets


Thanks
Back to top
View user's profile Send private message
pavankumarp

New User


Joined: 13 Feb 2007
Posts: 12
Location: Hyderabad

PostPosted: Wed Dec 19, 2007 11:32 am    Post subject:
Reply with quote

Hi Diwa,
i got it ...just written a JCL which would delete the migrated datasets at a single go..

thanks for the responses

Regards
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: Wed Dec 19, 2007 1:25 pm    Post subject:
Reply with quote

diwa_thilak wrote:
Pavan,

I beleive we cannot delete migrated tape datasets.

You need to check with your system programmers to do tat.

Why do you think that ? If you have the access to create the datasets then you also have the access to delete them. A dataset which has been migrated by HSM is treated the same as any other dataset when it comes to deleting it.

You can use IDCAMS to use a wild card, but it is very restricred. THe * can only represent ONE dataset level, and only a level.
ONLY ABC.* and not ABC.DE*

Maybe you would like to share your JCL with the forum to help others who may face the same problem.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Dec 19, 2007 2:10 pm    Post subject:
Reply with quote

Expat,

In my environment, we do not have permission to delete the datasets which got migrated to TAPE.

If it is archieved ,we can restore and delete, but we do not have access the tape .

So i thought only sytem programmers might have access to delete.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Dec 19, 2007 2:40 pm    Post subject:
Reply with quote

Diwakar,

Quote:
In my environment, we do not have permission to delete the datasets which got migrated to TAPE.

Though this is a project setting..... dont you think this is kind of strange arrangement (as you need to recall the migrated file and then delete - which amounts to double work).

OR

System programmer intervention is req (again time consuming process).
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Dec 19, 2007 2:49 pm    Post subject:
Reply with quote

Murali,

That is the access level given to the programmers to safeguard production data. We cannot comment on that.

You can always the delete the dataasets created under your ID.
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: Wed Dec 19, 2007 2:56 pm    Post subject:
Reply with quote

You do not need access to the tape to delete a migrated dataset.

Try HDEL next to the dataset ( assuming HSM is your ILM ) and see what happens. Also IDCAMS will delete a migrated dataset without need for recall.
Back to top
View user's profile Send private message
Ganesh.Deokar

New User


Joined: 30 Sep 2005
Posts: 26
Location: Buffalo,NY

PostPosted: Fri Dec 21, 2007 2:00 am    Post subject:
Reply with quote

I wonder if the dataset is migrated to tape or any offline volume, then we can delete it without actually mounting that volume/tape.
I think the catalog entry will be deleted in this case, but the data will be still there on tape/volume.


Thanks,
Ganesh
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Dec 21, 2007 2:20 am    Post subject: Reply to: to delete migrated datasets
Reply with quote

Quote:
wonder if the dataset is migrated to tape or any offline volume, then we can delete it without actually mounting that volume/tape.


Using IDCAMS to delete a dataset, it will allways go thryu the catalog,
and synce for a migrated dataset the volume name is "MIGRAT"
IDCAM will realize that it has to issue an HDELETE, and then it will cleanup the catalog.

Using JCL .. disp=(old,delete,delete)
HSM WILL RECALL THE DATASET..


RECALL IS DONE AT ALLOCATION TIME ...
IDCAMS DELETE HAS NO ALLOCATION DONE ...
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: Fri Dec 21, 2007 2:21 am    Post subject:
Reply with quote

Hello,

Quote:
I think the catalog entry will be deleted in this case, but the data will be still there on tape/volume.
Yes, the file would be on the tape until all of the other files had expired or were deleted (or until the volume was condensed, removing un-needed files).

Even though the data would be on the tape, it would not be easy to retrieve.
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: Fri Dec 21, 2007 3:15 am    Post subject:
Reply with quote

Yes, the data would remain on the tape until the tape was recycled. It is possible to sometimes recover a deleted ML2 dataset, before recyling has been processed, although if the ML2 / backup relationship is properly planned not usually required.

Something I have recently discovered is that there are different levels of RACF protection for HDEL and HSEND DELETE, with HDEL normally being generally available, but HSEND DELETE has a completely different RACF profile to protect it and is usually only available to storage admin. Wierd eh ?
Back to top
View user's profile Send private message
ashirwad

New User


Joined: 03 Apr 2012
Posts: 5
Location: chennai

PostPosted: Thu Jul 19, 2012 10:19 am    Post subject: Reply to: to delete migrated datasets
Reply with quote

Hi Pavan,

I am also searching for an option to delete the migrated GDG generations.

Please let me know how you have done that.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 19, 2012 11:51 am    Post subject:
Reply with quote

Why resurrect a 5 year old topic.
Search the forum.
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 Jul 19, 2012 1:02 pm    Post subject:
Reply with quote

As stated to a very similar post

Search for CSIUTIL
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
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 How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm


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