Tom,

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
used.

Michael Smith

-----Original Message-----
From: thomas@inorbit.com [mailto:thomas@inorbit.com]
Sent: December 26, 2001 06:04 PM
To: midrange-l@midrange.com
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.)

Tom Liotta

--
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/




_______________________________________________
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 ...


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.