MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send e-mail only when there are alerts in the log

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Tue Jul 20, 2004 11:40 pm    Post subject: Send e-mail only when there are alerts in the log Reply with quote

I want to send an e-mail from mainframe to PC only when there are any alerts in the log.

I am able to send mail from mainframe to PC using the JCL given in SMTP topic. Very Happy
But I want to send the mail only when there are any alerts in the log. Sad
How do I do that? Can anyone help me please....
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Jul 21, 2004 1:05 am    Post subject: Reply with quote

What are "...alerts in the log." ?
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Wed Jul 21, 2004 1:18 am    Post subject: Reply with quote

If any of the jobs fail, it will pop up an alert in the log.
I want to send a mail if these alerts come up in the log.
I want to schedule this sending e-mail job all the time.
When ever alerts are there in the log, this job shoud trigger and should send an e-mail.
Can some one help me how to do this. Sad
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Jul 21, 2004 1:25 am    Post subject: Reply with quote

You already have a step to send mails. Code this step as the last step in the jobs. And, let this step execute only when the job fails. Use IF-ELSE, COND=, etc.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
ml123
Beginner


Joined: 21 Apr 2004
Posts: 6
Topics: 1

PostPosted: Wed Jul 21, 2004 1:38 am    Post subject: Reply with quote

This is not just one job failure. There are so many jobs which are running. How can I give the condition if the job fails.? Log has all the information of what is happening on the system like which job is running, which job failed,etc..
I want to send an e-mail if any of the jobs fail. How do I do that?
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Wed Jul 21, 2004 6:43 am    Post subject: Reply with quote

Use your automation package to detect the failure messages. The automation package will be able to take any action you want including sending an email.
Talk to the people at your site who manage the automation software.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group