Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果变量是 Y,我必须编写一个包装脚本来在控件 M 中运行 3 个作业,即
$EOM_1=’Y’ [incase of End of Month true] $EOM_1=’N’ [incase of End of Month false]
IEif $EOM_1=’Y’ run jobs like ${DirTOOLS}/WaitUnitFileExists.sh $APIS/files/tr/chqload/local/INWUSD.dat 60 05 30
if $EOM_1=’Y’ run jobs like ${DirTOOLS}/WaitUnitFileExists.sh $APIS/files/tr/chqload/local/INWUSD.dat 60 05 30
为什么需要包装脚本?您可以使用 Control-M 中的作业定义来执行此操作。在作业调度定义的 DAYS 字段中,要运行该月的最后一天的作业,您可以输入 L1。
对于将在该月的最后一天以外的所有日期运行的作业,您在 DAYS 字段中指定 -L1。对于必须在文件上等待的作业,运行 Control-M 文件观察器实用程序,然后添加作业条件或强制作业运行。