|
Rich, Does your program really get a chance to recognize the shutdown and end itself event if it is ended *IMMED. I seem to remember that a job being ended *IMMED won't get this chance, it has to be ended *CNTRLD with a long enough wait so that it can get to the point where it checks for shutdown. Scott Mildenberger > -----Original Message----- > From: Rich Duzenbury [mailto:rduz@westernmidrange.com] > Sent: Wednesday, January 09, 2002 6:48 PM > To: rpg400-l@midrange.com > Subject: Re: Subsystem monitor job > > > I code all my never ending batch jobs to check to see if they > have been > ended by someone each time they wake up. If in a CL, I use > RTVJOBA. If in > an RPG, I use the SHTDN opcode. > > If the job finds that it is in an end status, it cleans up as > quickly as > possible and ends. I can't remember ever having a problem > caused by any > type of ENDJOB or ENDSBS command over the past fifteen years or so. >
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.