Could you please tell me how the program that is called by the api knows
that the job has "abend'ed" if the user has used the ENDJOB command?

I tried the RTVJOBA ENDSTS(1A); this works only if the the OPTION(*CNTRL) is

Michael Smith

-----Original Message-----
From: []
Sent: December 26, 2001 06: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
> 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.)

Tom Liotta

Tom Liotta
The PowerTech Group, Inc.
19426 68th Avenue South
Kent, WA 98032
Phone  253-872-7788
Fax  253-872-7904

The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:
To subscribe, unsubscribe, or change list options,
or email:
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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

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