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

To delete all migrated datasets from Tapes


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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
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
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
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
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
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: 8796
Location: Welsh Wales

PostPosted: Wed Dec 19, 2007 1:25 pm
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Dec 19, 2007 2:40 pm
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
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: 8796
Location: Welsh Wales

PostPosted: Wed Dec 19, 2007 2:56 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Fri Dec 21, 2007 2:20 am
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

Moderator Emeritus


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

PostPosted: Fri Dec 21, 2007 2:21 am
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: 8796
Location: Welsh Wales

PostPosted: Fri Dec 21, 2007 3:15 am
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 19, 2012 11:51 am
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: 8796
Location: Welsh Wales

PostPosted: Thu Jul 19, 2012 1:02 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
Search our Forums:

Back to Top