Author Topic: Need to delete all the documents from a Application Group.  (Read 2983 times)

Vinothkumar_ve

  • Guest
Need to delete all the documents from a Application Group.
« on: October 30, 2014, 03: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.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Need to delete all the documents from a Application Group.
« Reply #1 on: October 30, 2014, 05:23:38 AM »
Copy the AG & Applications, then delete the old one.  You can rename the 'copied' AG to match the old one.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Vinothkumar_ve

  • Guest
Re: Need to delete all the documents from a Application Group.
« Reply #2 on: November 03, 2014, 07:06:21 AM »
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.

LWagner

  • Guest
Re: Need to delete all the documents from a Application Group.
« Reply #3 on: November 25, 2014, 08:00:41 AM »
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.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Need to delete all the documents from a Application Group.
« Reply #4 on: November 27, 2014, 05:22:34 AM »
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.
« Last Edit: November 27, 2014, 05:25:08 AM by Justin Derrick »
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR