It is currently 16 Oct 2018 1:39


Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 21 Jan 2011 1:30 
Offline
Nouveau
Nouveau
User avatar

Joined: 21 Jan 2011 12:00
Posts: 6
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


Top
   
 Post subject:
PostPosted: 21 Jan 2011 5:36 
Offline
Nouveau
Nouveau
User avatar

Joined: 12 Sep 2008 12:00
Posts: 50
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.


Top
   
 Post subject: hold and delete
PostPosted: 31 Mar 2011 2:22 
Offline
Nouveau
Nouveau
User avatar

Joined: 11 Oct 2007 12:00
Posts: 161
Location: Melbourne
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved