Override date

Previous topic - Next topic

Steve Lance

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

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? 
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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

Steve Lance

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

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.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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