Page 1 of 1

determine last working day on job command line...

Posted: 29 Sep 2017 9:09
by wrenchos
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

Re: determine last working day on job command line...

Posted: 09 Oct 2017 3:15
by Ekremo
Can you share how you have used calcdate in order to determine the last working day of the month?

Re: determine last working day on job command line...

Posted: 16 Oct 2017 11:59
by matom
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