Author Topic: Deleting documents in specific load using search  (Read 3654 times)

jplumey

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Deleting documents in specific load using search
« on: September 15, 2011, 05:58:36 AM »
Hi guys,

My customer has identified a load that contains documents that need to be deleted based on the value of a field. ARSDOC DELETE lets you search for documents but I don't know if there is syntax that lets you specify the particular load. Searching on the field will not work since they do not have unique identifiers anywhere and unless they specify the specific load, they will delete too many documents.

Is there any way of using arsdoc delete with a specific load?

jplumey

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Re: Deleting documents in specific load using search
« Reply #1 on: September 15, 2011, 06:06:57 AM »
Ok I found the -X parameter. I'll have to test and see if it works with the delete function.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Deleting documents in specific load using search
« Reply #2 on: September 15, 2011, 06:17:53 AM »
Hi.

You can use SQL to specify a portion of the load ID.  If you get a load ID that includes an object ID of 1234FAA, then you can include it in your SQL selection criteria (along with, say, customer number) like this:
   doc_name like '1234FAA%' and cust_num = 987654321

I know that sounds brief and cryptic, but it's a push in the right direction.  Let us know if you have more questions.
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

jplumey

  • Jr. Member
  • **
  • Posts: 13
    • View Profile
Re: Deleting documents in specific load using search
« Reply #3 on: September 15, 2011, 06:19:02 AM »
Oh that's a good idea, too. I'll give that a shot.