View previous topic :: View next topic
|
Author |
Message |
harishch_ch
New User
Joined: 07 Jan 2008 Posts: 27 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Why can't you use IDCAMS in a batch JCL? |
|
Back to top |
|
|
harishch_ch
New User
Joined: 07 Jan 2008 Posts: 27 Location: bangalore
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
harishch_ch
New User
Joined: 07 Jan 2008 Posts: 27 Location: bangalore
|
|
|
|
Yes the dataset names are present in a PS file. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
harishch_ch
New User
Joined: 07 Jan 2008 Posts: 27 Location: bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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.. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Uncataloged data sets are frowned upon by most DASD police. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|