Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) 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.
This mailing list archive is Copyright 1997-2026 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.