|
Hello Alan, What it seems to me is that you are describing nested procedures vs. procedure calls. I have not found a way to do a nested procedure in ILE RPG and suspect that there is not a way of doing it without resorting to some fancy pointer stuff. For example in Borland's Delphi I could code the procedures like this to arrive at the same problem you are having with observability. var X1 Procedure ProcA Var SomeChar : Char; begin ProcB end; Procedure ProcB Var SomeOtherChar : Char; begin ... end; Now the variable X1 is visible to both procedures because it is in global scope. But ProcA can not see ProcB.SomeOtherChar Nor can ProcB see ProcA.SomeChar In ILE RPG I would think the way you could get around this is by exporting the variables that you need to share and only importing them in the modules that need them. This way you can share the variable's address space between those procedures that need that sort of communication. I hope that helps Eric ______________________________________________ Eric N. Wilson President Doulos Software & Computer Services 2913 N Alder St. Tacoma WA 98407 +--- | 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.