It is currently 22 May 2018 7:31


Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Do Ok/Do Mail question.
PostPosted: 03 Sep 2011 4:38 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Sep 2011 12:00
Posts: 7
Hello All,

Looking for some help with Do Mail/Do Ok. Currently I have a job set up with the following statements.

Do Ok COMSTAT>0
Do Mail COMSTAT>0

The issue is the job does exit with a valid Retrun Code=29 and I don't want to receive mail for that return code. Wondering how I can receive mail on all errors greater then 0 except 29.

Thanks in Advance


Top
   
 Post subject:
PostPosted: 05 Sep 2011 4:44 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
Location: Ile de France
Hi,
try
on statement = *
((COMPSTAT > 0) and (COMPSTAT != 29))
do MAIL

Regards,
Philmalmaison


Top
   
 Post subject:
PostPosted: 05 Sep 2011 4:52 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Jun 2007 12:00
Posts: 1148
Location: Ile de France
Hi,
Sorry it's not the solution
Regards,
Philmalmaison


Top
   
 Post subject:
PostPosted: 07 Sep 2011 8:20 
Offline
Nouveau
Nouveau
User avatar

Joined: 20 Jan 2006 12:00
Posts: 30
Hi.

You could try

ON stmt * code COMPSTAT LT 29
DO MAIL
ON stmt * code COMPSTAT GT 29
DO MAIL

Regards

Graham


Top
   
 Post subject:
PostPosted: 09 Sep 2011 10:40 
Offline
Nouveau
Nouveau
User avatar

Joined: 19 Feb 2009 12:00
Posts: 27
This works even better

On stmt * code COMPSTAT=29
Do OK
On stmt * code NOTOK
Do Mail

In this case both 0 and 29 is considered OK


Top
   
 Post subject:
PostPosted: 14 Feb 2012 9:31 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Sep 2011 12:00
Posts: 7
Its been a while but wanted to say thanks for all the responses/scheduling help.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
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