I would like to run a rapid mart in Delta Mode to bring in data for only this month. I need to do this on our development system.
By default Rapid Mart resets global variable SDATE as previous run date -1. The last time this rapid mart was run in this development system was in Feb 2012. I do not want to bring in huge volume but at the same time test it in Delta mode.
How do I override the $G_SDATE to 03/01/2013 in Delta mode?
Even if you set the global variable $G_SDATE = ‘2013.03.01’, the rapid mart inbuilt function AW_Start will over writes this date based on the last successfull run date which in my case is in Feb 2012.
I did some more research and found that the table which stores these dates is ‘AW_JOBEXECUTION’. Since this is development server, I am planning to update the row for this job. The column to update is EXTRACTHIGH (which stores the last successfull run date).
Though, this seems to work as I intended, the better way is to see if i can override this date in the BODI Designer script itself…which at this time I am not sure how to do that.
I was looking into this further and I think the $G_RUN_MODE will be your point of call:
"RESET - Forces job to reload from value set in $G_SDATE.
NULL - Uses AW_JOBEXECUTION to determine $G_SDATE.
When set to RESET, this variable forces the Rapid Mart to use the starting extract date you have set for variable $G_SDATE. Otherwise, the setting is determine by querying table AW_JOBEXECUTION, and using the EXTRACTHIGH value of the last successful run. "