It is currently 23 Aug 2017 7:27


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 02 Jul 2015 4:52 
Offline
Nouveau
Nouveau
User avatar

Joined: 12 Nov 2013 12:00
Posts: 14
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.


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


Top
   
PostPosted: 07 Dec 2016 9:18 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved