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
 

 

Delete Archived Dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Delete Archived Dataset
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: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 10, 2009 12:40 pm    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 6:22 am    Post subject:
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    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 9:55 am    Post subject:
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    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 10:05 am    Post subject:
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

Senior Member


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

PostPosted: Wed Feb 11, 2009 10:58 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Feb 11, 2009 11:13 am    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Wed Feb 11, 2009 11:19 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 11, 2009 12:25 pm    Post subject:
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    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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 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 To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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