Author Topic: Override date  (Read 1945 times)

Steve Lance

  • Jr. Member
  • **
  • Posts: 33
    • View Profile
Override date
« on: May 06, 2020, 09:24:46 AM »
I have executed an arsdoc get to retrieve a document.  I need to override the load date when I use the arsload.  I tried to use a date in the Application but it still used the date in the index.  Any suggestions?

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2228
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Override date
« Reply #1 on: May 06, 2020, 02:04:45 PM »
Hi Steve.

1)  You shouldn't be changing data in CMOD, because it's an archive.  If the data was bad, it should be unloaded and a corrected version re-loaded.

2)  Ignoring #1, there is the arsdoc update command that will let you update metadata.

3)  See #1.  :)

Can you give us some background about why you're doing this? 
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

Steve Lance

  • Jr. Member
  • **
  • Posts: 33
    • View Profile
Re: Override date
« Reply #2 on: May 07, 2020, 06:54:49 AM »
Thank you Justin for the reply.  We were loading documents with a different load date.  We changed the date in the Application and loaded the document correctly.  We forgot to change the date in the Application.  So, we have 7 documents with the wrong load date.  We were thinking that we could do get and a arsload and be able to change the load date.  But, it seems the arsdoc update is the best option.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2228
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Override date
« Reply #3 on: May 07, 2020, 08:02:15 AM »
I think I've got it.  :)  You've got a field called Load_Date that was set to 't' by default, but then you had to load some old data, and needed to have it reflect the date it was originally loaded, so you set the default to a specific date, then forgot to change it...

Just an FYI, this little tiny article on the Wiki might help:

https://cmod.wiki/index.php?title=Default_Values_and_the_Generic_Indexer

As long as the 'Load Date' metadata was in the Generic Index file when you extracted it (or added to it) it would have overridden the default value. 

-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