When a job is held an informational message gets written to the system
operator's message queue. I think you could monitor this queue for the
message.

Patrick

----- Original Message -----
From: "jt" <jt@ee.net>
To: <midrange-l@midrange.com>
Sent: Wednesday, December 26, 2001 4:28 PM
Subject: API/Condition handlers in ILE (was RE: Condition Handlers and CL)


> Tom/anyone
>
> Is there an API that can monitor for a job getting held, or can the
> condition handler API do this.
>
> IOW, can I prevent a job from getting held?
>
> jt
>
> | -----Original Message-----
> | [mailto:midrange-l-admin@midrange.com]On Behalf Of thomas@inorbit.com
> | Sent: Wednesday, December 26, 2001 7:04 PM
> | Subject: Re: Condition Handlers and CL
> |
> |
> | On Tue, 25 December 2001, "Carsten Flensburg" wrote:
> |
> | > You could use the QMHSNDSM (Send scope message) API - it'll let
> | you register
> | > a program to run at job end (or call stack entry end or TFRJOB).
> |
> | This is a cool API that gets little attention. Two uses I've seen
> | for it are for cleanup, especially for a job that abends, and for
> | restarts of jobs you always want running -- the scope program
> | simply resubmits the job which then sends a new scope message.
> | (Of course, that last bit takes some planning for when you really
> | want it to end.)
> |
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2022 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.