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

Delete Archived Dataset


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

New User


Joined: 07 Jan 2008
Posts: 27
Location: bangalore

PostPosted: Tue Feb 10, 2009 11:30 am
Reply with quote

Hi,

I am trying to delete all the datasets present in a file one by one.
But few of them are archived, so it desplays the relevent messages like to Retrieve it Immediately/later? etc..

Can i delete all these archieved datasets without prompting for user confirmation?
Like any command such that the tool can auto retrieve the dataset and delete it.


Regards,
Harish.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Feb 10, 2009 12:40 pm
Reply with quote

Quote:
Can i delete all these archieved datasets without prompting for user confirmation?

Would I be correct in saying that you do not use HSM as your ILM software.

Your sfirst port of call should be the people responsible for your 'archiving' software and see if there are any bypasses available for mass deletes.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 6:22 am
Reply with quote

Why can't you use IDCAMS in a batch JCL?
Back to top
View user's profile Send private message
harishch_ch

New User


Joined: 07 Jan 2008
Posts: 27
Location: bangalore

PostPosted: Wed Feb 11, 2009 8:40 am
Reply with quote

The datasets to be deleted are present in a file, there are many such files and throught jcl i can't read a file one by one.So i am using rexx.

I used LISTDSI for getting SYSVOLUME and other info, so that i can verify that if it is an archieved dataset, but LISTDSI is asking for retrival of dataset?

I am planning to skip the deletion of archieved datasets, any pointers on this?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 9:55 am
Reply with quote

What does "the datasets are present in a file" mean? That's the definition of a PDS or PDSE. Do you mean that the data set NAMES are the contents of a file?
Back to top
View user's profile Send private message
harishch_ch

New User


Joined: 07 Jan 2008
Posts: 27
Location: bangalore

PostPosted: Wed Feb 11, 2009 9:59 am
Reply with quote

Yes the dataset names are present in a PS file.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 10:05 am
Reply with quote

I'm still not seeing why you can't edit that PS file, modify the data set name lines to read, "delete aaa.bbb.ccc", and wrap some JCL around them to exec IDCAMS. IDCAMS will not recall migrated data sets. It will delete and uncatalog them.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Feb 11, 2009 10:58 am
Reply with quote

Hi Harish,

What information & "picture" one gets about the situation at your end so far - suggestion from Terry seems to be the best, what's the problem in trying it out for couple of DSNs?
Back to top
View user's profile Send private message
harishch_ch

New User


Joined: 07 Jan 2008
Posts: 27
Location: bangalore

PostPosted: Wed Feb 11, 2009 11:05 am
Reply with quote

Really Terry is very helpful,he acts fast on the issues, thanks Terry!

Actually i tred it and working fine.But there is some change in the requirement.
One of the change is : Archieved datasets must be uncatalogued but should not be deleted and more.Waiting for final requirement from them...

Once the requirement is clear i will let you know incase i am facing problem.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Feb 11, 2009 11:13 am
Reply with quote

Hi,

Pardon my small experience, but what's the benefit of doing this
Quote:
Archieved datasets must be uncatalogued but should not be deleted and more
in a(n) SMS world? It should not be permitted.

Yes, once this is done
Quote:
Once the requirement is clear i will let you know incase i am facing problem.
& posted back, someone will be around.. icon_smile.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 11:19 am
Reply with quote

Uncataloged data sets are frowned upon by most DASD police.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Feb 11, 2009 12:25 pm
Reply with quote

Terry Heinze wrote:
Uncataloged data sets are frowned upon by most DASD police.

Correct. However frequent CDS audits of HSM do detect this situation, and always in the past I have deleted any remaining CDS D records to effectively remove the dataset forever.

Also, uncataloging a dataset will affect the retention of dataset backups as the catalog is used to determine if a dataset exists or not, and once it is deemed that a dataset no longer exists the retention period and number of backup versions retained can change dramatically depending on the SMS constructs.

So beware of doing what a probable non techie wants you to do.
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top