Scheduler Usage
http://scheduler-usage.com/

determine last working day on job command line...
http://scheduler-usage.com/viewtopic.php?f=29&t=4171
Page 1 of 1

Author:  wrenchos [ 29 Sep 2017 9:09 ]
Post subject:  determine last working day on job command line...

Hi, I am trying to work out the last working day of the previous month and although I have used calcdate before I can only determine the last working day of the month. Is there a way of querying the calendar in controlm to determine what the last working day would have been? I have set the job to run on the 5th working day of each month and would like it to use the last working day as a job parameter for a file watcher. ctmfw.exe.

Any suggestions would be much appreciated.

Regards

Author:  Ekremo [ 09 Oct 2017 3:15 ]
Post subject:  Re: determine last working day on job command line...

Can you share how you have used calcdate in order to determine the last working day of the month?

Author:  matom [ 16 Oct 2017 11:59 ]
Post subject:  Re: determine last working day on job command line...

Hi wrenchos,

Below an example to calculate the last working day of a month :

MyJOB run every working day except the last one. I'm looking for the last working day for MyJOB in December, 2017 :

ctmcalc_date -FOLDER MyFOLDER -NAME MyJOB -date 20180101 -shift -1 -ONLY_WORKING_DAYS Y -OUTPUT_FORMAT DATE

Result : 20171228

Regards

Attachments:
File comment: Calendar snapshot : December,2017 and January,2018
ViewScheduling_MyJOB.jpg
ViewScheduling_MyJOB.jpg [ 26.32 KiB | Viewed 11755 times ]

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/