Instruction for TWS (Tivoli workload Schedule)

本文介绍了TWS (The Workload Scheduler) 中的作业与作业流的基本概念,包括如何定义一个TWS作业及作业流,如何通过返回码判断作业是否成功,以及如何设置条件处理与恢复选项来提高作业流的灵活性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1: what is a TWS job ?

 

At its simplest ,a TWS job is simplly the name of a script or command to be executed ,almost anything that can be run from the Unix or Windows sever can be run as a TWS job.

 

In order for the TWS schedule to create a TWS job they will need to know the name of the server where the scripts runs ,the name of the scripts (including the full path) and the user to run it as. This must be the user who has the correct envronment to run the script and the permission s to execute the scripts.

 

2: What is a TWS job stream?

 

A TWS job stream is a collection of TWS jobs that have somthing in common. There may be many job streams, For example,a Daily job stream, a weekly job stream and a monthly job stream. There will be normally job dependecies between jobs in a job stream. for example: the first job must complete (successfully) before the second job start ro run. if it ends in failure the second job will NOT run ,job steams have rules to say when they must run.

 

In order for the TWS schedule to create a TWS job stream they will need to know the name of the jobs( which should be previously defined ). the order and the dependencies of the jobs and the dates and times they must run. it is same for the jobs to be executed in different job streams.

 

3 :Return Codes:

 

TWS uses the return code from the script or command to determine whether that script was successful. Usually ,the return code "0" means that the script was successful and anything else means the script failed.

 

As stated earier TWS use the return code from a script to determine whether that script was successful.

It is possible to assign a return code to each individual job starting what return codes should be considered as a success. for instance if a job issues a command to delete a file and that file is not avaliable or present then it will generate a non-zero return code, Since this may be not a really a problem , it is possible to inform TWS to stil consider the jobs run successful and to continue to schedule any other jobs to run.

 

4: conditional processing:

 

TWS can not use a return code of a job, to make decisions on job procession ,There is no if/else functionality .if a job succeds then  dependant job will continue to run, if a job abended, the dependent job will not run.

 

TWS have a "recovery" function.  it permits some actions to be predefined for when a job bended. The standard is :STOP, in this case ,the dependect job will not run , This may be idified to "CONTINUE" , even if the job abends ,the dependent job will continue to run , The third option is "Rerun" in this case, the dependecy job will automaticlly rerun itself once. if it is successful this time the dependency job continue as nomal. if it abends again the dependent job will stop run. Note  that a job will nly run itself once.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值