Page 1 of 1

Passing variable for comming friday

Posted: 02 Jul 2015 4:52
by Dablu
Hi,
Env 8 on Windows

Need to pass comming friday for a job which will execute from Sunday to Thursday.

Sunday=ODATE date of friday
Mon.=ODATE date of friday
..
Thurs=ODATE date of friday

So how to define a job which will run daily to send a value to this variable .
In alternate way we have to create 5 jobs before the execution of full chain.so on sunday .
1st job will resolve the value of variable (%%\PARAM1 %%$ODATE %%$CALCDATE +4)
and we can pick the GL variable value of PARAM1 in the required job.

But in this type ,we need to define one one job for each day to pass the value to PARAM1.

So I am looking to define on a singe job .which will automatic resolve value of PARAM1
like

sunday it will (%%\PARAM1 %%$ODATE %%$CALCDATE +5)
monday (%%\PARAM1 %%$ODATE %%$CALCDATE +4)
tuesday (%%\PARAM1 %%$ODATE %%$CALCDATE +3)
wednees (%%\PARAM1 %%$ODATE %%$CALCDATE +2)
Thursday (%%\PARAM1 %%$ODATE %%$CALCDATE +1)


Thanks for your feedback on this.


=================================================

Re: Passing variable for comming friday

Posted: 07 Dec 2016 9:18
by mauriziog
Hi Dablu,

is possible in the daily job... but I dont send you the solution (to easy).
But I can send this:

use this system variable to do calculation:
-------------
%%OWDAY
Original scheduling day of the week of the job (1= Sun., 2= Mon., and 0=Sat.).
-------------

;-)

Regards