hello all,
i am have 2 questions
the action: a job is ended NOT OK. According to procedure i have to hold & deleted it from current AJF.
1) What i would like: to make that this job after NOT OK, a Hold and Delete action by itself. Could i use a script? What can we suggere me?2) The same situation with a job which is END NOT OK and i'd like to make a FORCE OK.
I Control GUI i can't find any options for those actions.
Many Thanks
Help Job automatisation: NOTOK-->hold-->deleted or for
hold and delete
To answer the first question, when the job fails, you can shout to a shout destination defined as a program (i.e., instead of destination type 'M' for Mail, use 'P' for program). Then create a script to run the ctmpsm utility twice, once to hold the job, the second time to delete the job.
In the message of the shout to the 'P' shout destination, pass the %%ORDERID of the job. This will be received by the script as the second parameter.
Look up the Control-M utility guide for the syntax of ctmpsm.
In the message of the shout to the 'P' shout destination, pass the %%ORDERID of the job. This will be received by the script as the second parameter.
Look up the Control-M utility guide for the syntax of ctmpsm.