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



On 3/21/2018 2:40 PM, James H. H. Lampert wrote:

Did the halt indicator somehow prevent LR from deactivating WTREZIP?

See steps 32 and 33 of The Detailed RPG Cycle:
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/pgmcycdtl.htm


(WTREZIP is activation group QILE, and the CPP for the command it calls
is activation group *NEW.) I'm sure there must be a better way for an
RPG program to abend itself; the halt indicator was simply the easiest.

I'd send an escape message to *CALLER if I really wanted an abend. An
alternative is to use a success/fail parameter to tell the CLP whether
the RPG fell over. There are always data areas, *LDA, external switches
(U1-U8) but they are second class citizens in my opinion.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.