• Subject: Re: Monitoring batch job
  • From: "Art Tostaine, Jr." <atostain@xxxxxxxxxxx>
  • Date: Thu, 22 Jan 1998 12:04:12 -0500
  • Organization: Creative Computer Associates, Inc.

Lo wrote:

> I'd like to be able to set up an external monitor to inform me whenever
> an OS error message is issued for a particular batch job. As far as I
> know, all messages of that sort are sent to the *SYSOPR message queue,
> and I would hate to monitor QSYSOPR *MSGQ. Is there any way to make the
> system change the destination of error messages for a given batch job?
>
> Lo

We've done something similar for a CLP by inserting SNDMSG commands throughout
the CLP to a message queue that we created.  We than had another job monitor 
that
message queue.  We do a RCVMSG with an a appropriate wait time.  If we timed 
out,
we knew we had a problem.  You could erase the messages in the monitoring CLP to
save room.  We only cleared the messages overnight.

Our job was watching a CLP that received records from a dialup SNADS connection.
Some messages were:

No files received at 05:05:00
No files received at 05:25:00
4 files received RCVNETF at 05:45:00
Processed LZBL01 file for 52 records
Processed LZBL02 file for 1 records
Processed LBZL03 file for 5 records
....etc.

Any operator can use DSPMSG for that specific message queue to keep an eye on 
the
job.

Since the job runs at least every 20 minutes, our monitoring job waits 30 
minutes
on the RCVMSG.  If it doesn't hear anything in 30 minutes, it sends a message to
the operator.

--
Art Tostaine, Jr.
Creative Computer Associates, Inc.
Parlin, NJ
atostaine@crecomp.com


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].