|
On Mon, 10 Jan 2005 15:46:15 -0600 (CST), Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote: > > Files in RPG have always been global to the module, they've never been > local to a subprocedure. You can code a data structure that's local to > the module with LIKEREC and read the file into that -- that's much closer > to having it be local to the subprocedure (but the ODP is still global!) > > Or, if you really want to make it local, you can use the _Ropen(), > _Rreadk(), etc routines from the ILE C runtime... that would really make > it local, and would give you the ability to have many copies of the same > file open at the same time, in different subproedures, without affecting > each other. That is a good idea Scott, thanks. I look forward to trying those routines and finding out if there is a performance hit compare to native rpg i/o. -Steve
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.