It is currently 15 Dec 2017 3:30


Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 29 Sep 2017 9:09 
Offline
Nouveau
Nouveau
User avatar

Joined: 07 Jan 2010 12:00
Posts: 7
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


Top
   
PostPosted: 09 Oct 2017 3:15 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Apr 2009 12:00
Posts: 11
Location: Switzerland
Can you share how you have used calcdate in order to determine the last working day of the month?


Top
   
PostPosted: 16 Oct 2017 11:59 
Offline
Nouveau
Nouveau
User avatar

Joined: 29 Nov 2006 12:00
Posts: 37
Location: Ile de France
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 3512 times ]
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01: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