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



Shutting things down with *CNTRLD will also send a SIGTERM signal to the job, so your program could use a signal handler (vs. the very clunky %SHTDN BIF) to catch the condition and end immediately.

On 6/26/2020 12:30 PM, smith5646midrange@xxxxxxxxx wrote:
If the sleeping loop is in the RPGLE, you can use %SHTDN. That also trips
on the same conditions as RTVJOBA.

Just remember when you are shutting things down (PWRDWNSYS, ENDJOB, ENDSBS,
etc.) make sure you end it *CNTRLD instead of *IMMED and allow it enough
time for it to react and do whatever needs to be done before ending. For
example, if the job sleeps for 10 minutes and you end it *CNTRLD with a 5
minute window, it might not wake in time to exit gracefully.



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.