|
Only procedures the IMPORT the data structure will have access to it. Thanks, Mark Mark D. Walter Senior Programmer/Analyst CCX, Inc. mwalter@xxxxxxxxxx http://www.ccxinc.com |---------+-----------------------------> | | "Fisher, Don" | | | <Dfisher@roomstore| | | east.com> | | | Sent by: | | | rpg400-l-bounces@m| | | idrange.com | | | | | | | | | 11/13/2003 09:03 | | | AM | | | Please respond to | | | RPG programming on| | | the AS400 / | | | iSeries | | | | |---------+-----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: "'rpg400-l@xxxxxxxxxxxx'" <rpg400-l@xxxxxxxxxxxx> | | cc: | | Subject: Sharing variables between procedures | >------------------------------------------------------------------------------------------------------------------------------| I have a procedure that executes several other procedures. There is a data structure defined in this procedure that needs to be used by the called procedures. It appears the manual is telling me that specifying EXPORT on the data structure will allow the called procedures to use and populate the fields in the data structure so the first procedure can know the values. Is this correct? If so, does this also mean that other procedures that also have this data structure defined will also know the values? The reason I ask is I have a file i/o module that handles multiple sort sequences. In this case, there are four such sequences and a procedure that handles each one. These procedures each execute a "Next Record", "Previous Record", and "Matching Record" procedures. I would like the four procedures and their "children" to manipulate this information independently from each the other three procedures and their "children". I suppose I could use PREFIX, but what adverse effects would that have? As always, any help will be much appreciated. Donald R. Fisher, III Project Manager Roomstore Furniture Company (804) 784-7600 extension 2124 DFisher@xxxxxxxxxxxxx _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.