OnDemand Users Group

Support Forums => CMOD for z/OS Server => Topic started by: Vinothkumar_ve on October 30, 2014, 10:03:57 AM

Title: Need to delete all the documents from a Application Group.
Post by: Vinothkumar_ve on October 30, 2014, 10:03:57 AM
Hi Guys,

We have an situation here to delete all the committed documents/reports from the Application Group. Please help us to know if there is any easiest way to do the same instead of deleting one by one document/Reports using LoadID with ARSADMIN command.

thanks.
Title: Re: Need to delete all the documents from a Application Group.
Post by: Justin Derrick on October 30, 2014, 12:23:38 PM
Copy the AG & Applications, then delete the old one.  You can rename the 'copied' AG to match the old one.

-JD.
Title: Re: Need to delete all the documents from a Application Group.
Post by: Vinothkumar_ve on November 03, 2014, 02:06:21 PM
Hi JD,

Thanks for reply. but i am afraid we are not allowed to do as above said. is there any other way to flash all the reports of a AG.
Title: Re: Need to delete all the documents from a Application Group.
Post by: LWagner on November 25, 2014, 03:00:41 PM
Is the problem a question of re-indexing ?
Perhaps the application group had to be expanded, and they wanted data re-loaded ?
If reports are available, re-load to the new group. If not, extract from first app group (arsdoc "get"), and re-load to the other.
Extract the load-ids, and you can build a script to do the whole thing. For migration, I have a script generator.

I currently have a script moving 13 years of monthly reports from z/OS to AIX. 
The report iterations are large. The script has been running snce October 2nd. I expect to complete early next week.
I have coded for trigger files to allow the script to pause when necessary between iterations, then continue.
Title: Re: Need to delete all the documents from a Application Group.
Post by: Justin Derrick on November 27, 2014, 12:22:34 PM
If you can't copy-and-delete, then depending on the retention, there is another alternative that is DANGEROUS and NOT RECOMMENDED.

You can force the expiration of data to happen for a specific Application Group using arsmaint with BOTH the -g and -t options TOGETHER.

I won't provide an example, because I'm specifically refusing any liability for this idea.  

It's up to you to read the documentation, perform thorough testing, and gain a complete understanding of what you're about to do, and the irreversible effect of issuing that command.

-JD.