This content has been marked as final.
Show 2 replies
-
1. Re: How to force a job ok that is not complete by a certain time using do shout
MunKeong Lee Feb 11, 2019 6:56 PM (in response to Kareemah Majeedah)3 of 3 people found this helpfulHi Kareemah
The order id will be the 2nd argument to your script. Therefore the command should be:
cmd /c ctmpsm -UPDATEAJF %2% SETTOOK
However you can't set to ok a job that is in the executing state. You will need to kill the job first before setting it to ok.
Regards,
MK
-
2. Re: How to force a job ok that is not complete by a certain time using do shout
Ilyas Shaikh Feb 12, 2019 2:45 AM (in response to Kareemah Majeedah)3 of 3 people found this helpfulHi Kareemah,
As mentioned by MunKeong Lee, you will need to kill the job first before setting it to ok.
You can combined both the commands (1. To kill the job, 2. To Set the job status OK) in one shell script or batch script as below:
Unix
ctmkilljob -ORDERID $2 &
ctmpsm -UPDATEAJF $2 SETTOOK &
Windows
ctmkilljob -ORDERID %2% &
ctmpsm -UPDATEAJF %2% SETTOOK &
Once you create the script you need to configure the shout as below: