×
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.
<snip>
Well you *could* code this in 'native' RPG - simply have an internally
defined file defined with USROPN and EXTFILE. You have one procedure to
'load' the file which basically puts the file/library name into an array and
returns an integer (the index in the array). You then pass this integer to
your other procedures, which look up the array to get the file/library name,
load the EXTFILE variable, open the file and do whatever they need to in
terms of READ, CHAIN, WRITE etc. and then close the file. All the procedures
only know the file handle (except, obviously, the first one, where you
specify the file to be processed).
</snip>
Surely it doesn't work the same way. I can't see how that would work with
multiple files. Surely a single internally defined file definition (using a
single F-spec) in a module can not allow you to open, say, 64 different
files and keep a track of where the file pointer is in each of them. I would
imagine I would need an F-spec for each file I want to keep open. Is there
some clever trick with internally defined files and EXTFILE that I'm
missing? Or are you calling a procedure in another module, using SHARE(*YES)
and using that to keep the ODP open even after you close it in your original
module? Or is this a single-hit process - open, read, close - do it all in
one go, no concurrency. Hmmm... I don't get it.
Could you expand on that please?
Cheers
Larry Ducie
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.