OnDemand User Group
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
OnDemand User Group
»
Support Forums
»
MP Server
»
arsdoc delete
« previous
next »
Print
Pages: [
1
]
Author
Topic: arsdoc delete (Read 3965 times)
pankaj.puranik
Sr. Member
Posts: 374
arsdoc delete
«
on:
December 11, 2012, 07:41:37 AM »
Hi
I wanted to delete a document from CMOD that has around 30 fields.
I have the load ID and I can use load ID plus one of the 30 fields to uniquely identify the document using 'arsdoc query' with -x parameter.
Unfortunately, the arsdoc delete doesnot have -x option which means I have to pass all 30 fields to make sure only one record is deleted.
This is really frustrating.
Does anyone have any suggestions?
Thanks
Pankaj.
Logged
Justin Derrick
IBM Content Manager OnDemand Consultant
Administrator
Hero Member
Posts: 2231
CMOD Guru for hire...
Re: arsdoc delete
«
Reply #1 on:
December 11, 2012, 10:56:14 AM »
You should be able to use the -i option and use an SQL statement to identify your document to be deleted.
Let us know how it works out!
-JD.
Logged
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
pankaj.puranik
Sr. Member
Posts: 374
Re: arsdoc delete
«
Reply #2 on:
December 12, 2012, 12:39:57 AM »
Yes -i would work.
But I wanted to avoid constructing a query with -i parameter since i will have to add 30 fields to uniquely identify a document.
If I had a -x option, i would have to just pass the load ID and one of the 30 fields.
But looks like I will have to live with the -i parameter.
Logged
jw
Guest
Re: arsdoc delete
«
Reply #3 on:
December 12, 2012, 05:16:49 AM »
Pankaj,
If I understand Justin correctly, he meant something like this in your -i, rather than having all 30 fields
[-i "WHERE doc_name = '3762FAA' and pri_nid=132 and sec_nid=0"]
Hope this works for you.
-jw
Logged
Justin Derrick
IBM Content Manager OnDemand Consultant
Administrator
Hero Member
Posts: 2231
CMOD Guru for hire...
Re: arsdoc delete
«
Reply #4 on:
December 12, 2012, 09:05:38 AM »
Yes - the -i option allows you to do free-form SQL select statements. JW's example was correct. You can use any field you've defined in the AG, as well as CMOD's internal fields like DOC_NAME and DOC_OFFSET.
I would use something like "where CUST_NUM=12345 and ZIP_CODE=90210".
Just remember to be careful and test your queries. You could cause a lot of damage with a typo.
-JD.
Logged
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
pankaj.puranik
Sr. Member
Posts: 374
Re: arsdoc delete
«
Reply #5 on:
December 19, 2012, 05:37:09 AM »
pri_ind, sec_ind and doc_name - Are these CMOD defined columns?
Logged
jw
Guest
Re: arsdoc delete
«
Reply #6 on:
December 19, 2012, 06:15:47 AM »
Pankaj,
Yes, they are. But, you can use them in the -i clause.
By the way, it is pri_nid and sec_nid, not pri_ind and sec_nid
-jw
Logged
Print
Pages: [
1
]
« previous
next »
OnDemand User Group
»
Support Forums
»
MP Server
»
arsdoc delete