× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Take care ....
When you create a file (CRTPF), you can specify a parameter for Open Data
Path.

IBM Default is *No, but this can be change... and if the value is *YES the
open data path will be shared even without ovrdbf.


Share open data path . . . . . . SHARE *NO



On Thu, Oct 4, 2012 at 8:48 AM, <rpglist@xxxxxxxxxxx> wrote:

That's what I thought, I just wanted to verify that files declared in a
sub were local only to that procedure.

Thanks Barbara and everyone else!


On Oct 3, 2012, at 5:54 PM, Barbara Morris wrote:

On 2012/10/3 5:54 PM, Rpglist wrote:
If I have the same file declared as a global are they both using
different file paths? What I mean is can I position the global file
at say record 10 which has an I'd of say 100 and use the procedure
to Loop through the same file without changing the record position at
the global level?


What Gary said is correct.

From RPG's point of view, the files are completely independent. The
only way they would be using the same file path is if you had a
share(*yes) override.

Coding a file local to a procedure behaves exactly the same as coding it
in another module or another program, at least regarding the file paths.

--
Barbara
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.