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



Patrik,

The SHTDN rpg opcode has been available from the start, so that should available.

Signals have been available in ILE since V3, so that should also work for you.  I have used them from RPG many, many times.  (I have never used them in PASE, however, not sure why you even brought that up... this is the RPG forum.)

https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/apis/unix5a1.htm

-SK


On 7/3/20 9:24 AM, Patrik Schindler wrote:
Hello Folks,

Am 25.06.2020 um 22:03 schrieb Patrik Schindler <poc@xxxxxxxxxx>:

Thanks for any pointers to further documentation, or a short explanation.
Thank you for all your valuable input!

@Alan, @Carel, @Jon: *DTAQ adds more complexity than I want.

@Paul, @Charles: %SHTDN is a very nice one, I'll keep this in mind for newer projects. Unfortunately, it's not available with V4. Yes, I know, I wasn't mentioning this in my initial post. :-)

@Charles: ON-EXIT is a really nice one, I know that exit handler thing from C. Good to know that it's available in RPG, also (but not in V4, as I checked).

@Niels: I expected signals to work "as usual" in C. My question was regarding ILE RPG.

@Thomas: I guess RTVJOBA value ENDSTS works with V4, so this sounds like a favourite to me.

@Scott, thanks for this implicit mentioning of SIGTERM. Do you have some pointers to more information about this facility regarding ILE and RPG (not PASE!)? I know it from Linux programming, and I like it for "no polling needed". Additional: pwrdwnsys/endsbs *immed (as opposed to *cntld) does what to the processes? Kill -9?

Thanks again, folks!

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc


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.