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



>Isn't that more due to setting on *INLR?  Wouldn't an OPM
>program work the same if you return with *INLR off?
>I'm trying to understand what the activation group
>has to do with static variables.

Yes.  Good observation!  This is the same as RPG III/400 doing a RETRN:

RPG for AG06R
     C                     ADD  1         COUNT   50
     C           COUNT     DSPLY
     C                     RETRN
CALL AG06R - 1
CALL AG06R - 2
CALL AG06R - 3
RCLRSC
CALL AG06R - 1


If the ILE program were set to AG(*CALLER) in an environment like this:
GLPGM AG('GL')
  AG06 AG(*CALLER)

APPGM AG('AP')
  AG06 AG(*CALLER)

There would be two sets of static variables - one in AG('GL') and one in
AG('AP')  The counts would be incremented separately, depending on who
called it.


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