I have a requirement to create a schedule that runs on the next sunday of every Fiscal period end date. The Fiscal period end date is normally a saturday and is stored in our Oracle database.
Do i have to create a pre-process procedure that checks whether Today's Date EQ Fiscal period End date + One Day. If it matches then run the schedule or else kill RPC Job?
Any other suggestions are much appreciated.This message has been edited. Last edited by: <Emily McAllister>,
I like your profile name! I just checked with our product team and they said there is a Custom Dates option in the scheduler that allows a user to pick specific dates on which to run the schedule.
If this doesn't work please open a case so our Customer Support Team can assist you further.
Sincerely,
Kathleen Butler Customer Care and Communications Manager Information Builders
February 27, 2017, 04:23 PM
tomatosauce
Kathleen and Emily, Sorry for getting back late.
We got the custom dates from our Accounting Team and created the schedule to run on those specific dates. Since these dates change every year, we have to update our schedule at the end of year with new Fiscal period dates.
I actually created a pre-process procedure with the following code.
-SET &&KILL_RPC = IF &&LWEEK_EOW_DATE EQ &&LW_EOFP THEN 'N' ELSE 'Y';
-SET &&KILL_RPC_ERR = 'N';
and created a schedule to run on every sunday. Only if the pre-processer condition is met then it will run or else it will kill the RC job with warning.This message has been edited. Last edited by: tomatosauce,