× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John

Now that you added the requirement to be able to cancel a job before it runs, I think you really want the job notification exit point. You can be notified when a job goes on a job queue, where you can decide whether to let it run.

Here's the documentation - http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/apis/xjobntfy.htm

This will run independently of your CL. Which raises another question - if your CL knows whether to cancel something it submitted, why not just NOT submit the job under those conditions?

NEI - the opposite of TMI!

HTH
Vern

On 10/5/2014 12:26 AM, John Yeung wrote:
Thanks, Alan. The RCVMSG technique seems reasonably easy, and
accomplishes precisely what I'm asking.

The accounting code is definitely very nifty, but from my reading of
it, I don't think it works for my purpose. It looks like it's a way
for the submitting program to pass information to the submitted job;
and that information can't be acted upon unless and until the
submitted job runs. The big thing I want to be able to do is
programmatically cancel the submitted job before it runs.

And, while it's very cool to know, and could come in handy in very
specific situations, I find the accounting code to be a bit too clever
for most uses I can think of. For anything I'm likely to do, I might
as well just use a regular parameter on the called CL.

John Y.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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.