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.

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page