Yes you can, check out the STRWCH command. (Assuming you are running V5R4 or greater). You don't want a lot of watches because it will impact system performance but a few can help greatly. I use one to facilitate restarting my remote journals after network errors but watching the QHST log for CPF70D5 messages.
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011571
Respectfully,
Kendall Kinnear
System Analyst
Standard Motor Products, Inc.
Work: 972-316-8169
Mobile: 940-293-7541
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Wednesday, September 02, 2015 2:36 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Send email on program halt
Can't be done.
Either the job stops, or the job doesn't stop (and sends an email).
You'd need an external process that monitors for the MSGW and sends an email.
We use Bytware's Messenger Plus for that here.
Charles
On Wed, Sep 2, 2015 at 3:31 PM, James Rich <james@xxxxxxxxxxx> wrote:
We want to send an email if our nightly closing/backup stops on any
kind of error. I thought about monitoring for CPF0000 but I think
that will prevent the job from stopping with a MSGW. I still want the
job to stop with MSGW on the line where the error occurred, I just
need some facility to notice that a MSGW condition exists and send an email. Any suggestions?
James Rich
if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
- Paul Davis on ardour-dev
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
________________________________
Please consider the environment before printing this email.
The content of this e-mail (including any attached files) is confidential and may be privileged and protected by law. It is intended solely for the purpose of the person to whom it is addressed. If you are not the intended recipient of this message, please notify the sender immediately and delete the message (inclusive of any attached files). In addition, if you are not the intended recipient of this message, any disclosure, copying, distribution or taking any action in reliance of the contents of this email is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.