View previous topic :: View next topic |
Author |
Message |
ml123 Beginner
Joined: 21 Apr 2004 Posts: 6 Topics: 1
|
Posted: Tue Jul 20, 2004 11:40 pm Post subject: Send e-mail only when there are alerts in the log |
|
|
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.
But I want to send the mail only when there are any alerts in the log.
How do I do that? Can anyone help me please.... |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Jul 21, 2004 1:05 am Post subject: |
|
|
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 |
|
|
ml123 Beginner
Joined: 21 Apr 2004 Posts: 6 Topics: 1
|
Posted: Wed Jul 21, 2004 1:18 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Jul 21, 2004 1:25 am Post subject: |
|
|
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 |
|
|
ml123 Beginner
Joined: 21 Apr 2004 Posts: 6 Topics: 1
|
Posted: Wed Jul 21, 2004 1:38 am Post subject: |
|
|
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 |
|
|
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Wed Jul 21, 2004 6:43 am Post subject: |
|
|
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 |
|
|
|
|