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
determine last working day on job command line...
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?
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
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
-
- Calendar snapshot : December,2017 and January,2018
- ViewScheduling_MyJOB.jpg (26.32 KiB) Viewed 22600 times
- Calendar snapshot : December,2017 and January,2018
- ViewScheduling_MyJOB.jpg (26.32 KiB) Viewed 22600 times