View previous topic :: View next topic
|
Author |
Message |
pavankumarp
New User
Joined: 13 Feb 2007 Posts: 12 Location: Hyderabad
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
pavankumarp
New User
Joined: 13 Feb 2007 Posts: 12 Location: Hyderabad
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Pavan,
I beleive we cannot delete migrated tape datasets.
You need to check with your system programmers to do tat. |
|
Back to top |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
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 |
|
|
pavankumarp
New User
Joined: 13 Feb 2007 Posts: 12 Location: Hyderabad
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
Ganesh.Deokar
New User
Joined: 30 Sep 2005 Posts: 26 Location: Buffalo,NY
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
ashirwad
New User
Joined: 03 Apr 2012 Posts: 5 Location: chennai
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Why resurrect a 5 year old topic.
Search the forum. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
As stated to a very similar post
Search for CSIUTIL |
|
Back to top |
|
|
|