简体   繁体   English

Control-M 作业调度

[英]Control-M job Scheduling

I have one job that is scheduled using a calendar.我有一份使用日历安排的工作。 I need to create a dummy job that should get scheduled for all other days except the day Job 1 is running.我需要创建一个虚拟作业,该作业应安排在除作业 1 运行当天以外的所有其他日期进行。

Can anybody please explain how I can achieve this in Control-M.谁能解释一下我如何在 Control-M 中实现这一点。

You'll have to make a custom suit . 你得订个定制西服

At the moment, there is no native functionality that allows you to do something like this, so you will have to do your own implementation. 目前,还没有本机功能允许您执行此类操作,因此您将必须执行自己的实现。

Following the description of your case the Job Dummy you mention should be of another type (not Dummy). 根据您的情况描述,您提到的Job Dummy应该是另一种类型(不是Dummy)。

An alternative solution might consider the following: 替代解决方案可以考虑以下因素:

  1. Job1 is executed according to the regular calendar with the name CALENDAR1 . Job1根据名称为CALENDAR1的常规日历执行。
  2. The Job2 is executed every day and it is the Job that schedules the target job named Job3 . Job2每天执行一次,由Job调度名为Job3的目标作业。
  3. The Job2 executes a query on the Calendar table to the Control-M/EM database by filtering by calendar name CALENDAR1 , the year and month . Job2通过按日历名称CALENDAR1年份月份)进行过滤,从而对Calendar表执行到Control-M / EM数据库的查询。 Then extract from the resulting string the position according to the day of execution, if the value is "N" means that the Job1 is not scheduled so we would have to order the Job3 via ctmorder utility. 然后根据执行的日期从结果字符串中提取位置,如果该值为“ N”,则表示Job1未安排,因此我们必须通过ctmorder实用程序对Job3进行排序

I will try to include the code of the solution if you still require it. 如果您仍然需要,我将尝试包括解决方案的代码。

Best regards. 最好的祝福。

Say Date is 16 Jan then You can create two calendars and say Calendar 1 Holiday - 16th Jan and Calendar2 with that one date which is 16th jan then two instances of Job keep Calendar 1 and other with Calendar 2 will help说日期是 1 月 16 日然后你可以创建两个日历并说日历 1 假期 - 1 月 16 日和 Calendar2 那个日期是 1 月 16 日然后两个工作实例保持日历 1 和其他与日历 2 将帮助

Also if you have with Holiday +1 or Holiday +2 then you can use advance scheduling options in control M using Shift property using Order day like this - using this u can reuse the same calendar object此外,如果您有 Holiday +1 或 Holiday +2,那么您可以使用 Shift 属性在控件 M 中使用高级计划选项,使用 Order day 就像这样 - 使用这个你可以重复使用相同的日历 object

Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM