|
Specifically: Your $Exit is a pointer to the area in memory that contains the *IN03 indicator. Indicators are global to your job (or close enough not to matter). When you return from the subprocedure the indicator memory area is not changed. In your example, using $Exit and *IN03 are exactly the same. You can expect $Exit to do anything/everything *IN03 would do. It's the magic of pointers (although you may not consider a DS that remaps the Indicators to be pointers, I believe that's what's really going on behind the scenes). And, yes, to me Subprocedure and Subroutine are synonyms. Regards, Jim Langston Me transmitte sursum, Caledoni! Patrick Conner wrote: > > Jim, > > Thanks for the trivia. That was interesting. However, based > on what is below I have a question. > The scenario is: > I have a subprocedure that displays a screen. I have a DS > that maps the indicator variables. $Exit maps *in03. When > the user presses F3, $Exit = *on and I exit the > subprocedure. When I return to the subprocedure $Exit is > still equal to *on. > The question is: > Since I did not define $Exit as 'Static' why is it not > reset? > > !!! I'm assuming you mean subprocedure where subroutine is > mentioned. !!! > On Fri, 01 Jun 2001 15:27:58 -0700 +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.