Help Job automatisation: NOTOK-->hold-->deleted or for

Tools and several solutions to manage Control-M products
Post Reply
User avatar
Steph
Nouveau
Nouveau
Posts: 6
Joined: 21 Jan 2011 12:00

Help Job automatisation: NOTOK-->hold-->deleted or for

Post by Steph » 21 Jan 2011 1:30

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

User avatar
catchtony
Nouveau
Nouveau
Posts: 50
Joined: 12 Sep 2008 12:00
Contact:

Post by catchtony » 21 Jan 2011 5:36

Hi,

In both the cases you could do auto ok when the job returns as notok by following in steps tab :-

Stmt=* code=NOTOK
DO OK


You may generate the shout to alert window if in case you want to track by just adding Do Shout just before DO OK above.

User avatar
brownbag
Nouveau
Nouveau
Posts: 161
Joined: 11 Oct 2007 12:00
Location: Melbourne

hold and delete

Post by brownbag » 31 Mar 2011 2:22

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.

Post Reply