|
> From: Joe Pluta > > > > 1. If the called program does not set on LR, I assume that > > subsequent calls > > do not go through the initialization, just like in the old OPM CALL > > situation. > > > > 2. If the calling program sets on LR and then ends, does this in > > effect set > > LR on in all the called programs, clearing them from the PAG? > > That is, the > > next time I call the control program and it in turn does a CALLB to the > > subprogram, does the subprogram go through initialization again? > > > > 3. If I set on LR in a called program and it returns, does that > in effect > > set on LR in the calling program? According to my tests: 1. True 2. Yes 3. No So, while LR in the main module is propagated down to called modules, the reverse is not true. Setting on LR in a module only affects the module - the next time it is called, it goes through initialization again.
As an Amazon Associate we earn from qualifying purchases.
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.