当同一天运行时,我如何防止具有两个附表ID的CA7工作?
我有一份工作,有两个时间表ID。一个在一个月的最后一天经营工作,另一个Schid在一个月的最后一个星期日进行。当一个月的最后一天落在星期日时,我要纠正的问题出现了,这会导致两个时间表之间的冲突。
我的第一个想法是将两个SCHID分为两个单独的工作名称,同时使一个工作成为另一个工作的要求,以便他们不能同时运行。问题在于,这种情况只能在他们俩跑步的罕见日子以及其他所有日子都无法满足的情况下适用。
我对CA7不太熟悉,所以我想我要寻找一些输入。可以用条件语句创建SCHID吗?
I have a single job with two schedule ID’s. One runs the job the last day of the month and the other schid runs the last Sunday of the month. The problem I’m trying to correct arises when the last day of the month falls on a Sunday which causes a conflict between the two schedules.
My first thought was to split the two schids into two separate job names, while making one job a requirement for the other so they can’t run at the same time. The problem is this scenario would only apply on the rare days they both run and on all other days the requirement wouldn’t be met.
I’m not extremely familiar with ca7 so thought I’d look for some input. Can a schid be created with a conditional statement?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为将需要两个SCHID。选项假设一个日历将所有天数指定为处理天数。
选项1
schid = 1在一个月的最后一个星期日安排工作,除非那个星期日落在一个月的最后一天。
SCHID = 2在一个月的最后一天安排工作。
选项2
schid = 1在一个月的最后一天运行,除非那天落在星期日。
SCHID = 2在本月的最后一个星期日运行。
另一种方法是用我希望工作的日子来定义单独的日历,以便计划定义非常简单。
I think two schids will be needed. The options assume a calendar that specifies all days as processing days.
Option 1
Schid=1 schedules the job on the last Sunday of the month UNLESS that Sunday falls on the last day of the month.
Schid=2 schedules the job on the last day of the month.
Option 2
Schid=1 runs the last day of the month unless that day falls on a Sunday.
Schid=2 runs on the last Sunday of the month.
Another approach is to define a separate calendar with precisely the days I want the job to run so the schedule definition is pretty simple.