|
Santosh: Although it's fairly easy to detect which jobs have a MSGW status, it's not so easy to determine whether that status results from a job waiting on a reply to an inquiry message or waiting on RCVMSG with WAIT(nnn). If you know that certain jobs will usually be doing RCVMSG, you can probably exclude them in your code. But if you don't know ahead of time, you might need to search the joblog of each of the MSGW jobs to see if there are inquiry messages with Reply Status of 'W' (waiting for a reply). The List Jobs (QUSLJOB) API will tell you jobs that are MSGW, and the List Job Log Messages (QMHLJOBL) API can help locate the inquiry messages. Tom Liotta On Mon, 19 November 2001, "Patrick Townsend" wrote: > One approach would be to create a job that runs every few minutes and > retrieves the status of the job. There is a system API (QUSRJOBA?) that can > retrieve the current status of a job. If the API returns a MSGW status for a > job you can send a message to the console. > > ----- Original Message ----- > From: <santoshp@lot.tatasteel.com> > > > There are a number of batch programs being submitted in a subsystem > > MSGBATCH in our machine, > > at times , some of these jobs go to MSGW. > > This position is unchanged until someone notices it and kills it .. Hence > > other jobs keep waiting . I cant avoid MSGW coming . > > My reqd is that whenever a program goes to MSGW in that subsystem, a > > message should be sent to sysopr on console monitor.. -- Tom Liotta The PowerTech Group, Inc. 19426 68th Avenue South Kent, WA 98032 Phone 253-872-7788 Fax 253-872-7904 http://www.400Security.com ___________________________________________________ The ALL NEW CS2000 from CompuServe Better! Faster! More Powerful! 250 FREE hours! Sign-on Now! http://www.compuserve.com/trycsrv/cs2000/webmail/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.