|
Yivi, If the two files share the same record format you could use an external OVRDBF outside the RPG program (done while the file is closed) so you don't have to declare two different files in your program. If they don't share the same record format then you could push the read logic into subprocedures like ReadRecord( Select ) or ChainRecord( Select ). Instead of checking for %Eof you could use your own indicator which gets set from the appropriate %Eof in ReadRecord() like: DoW MoreRecords; Alternately you could return an indicator from ReadRecord identifying end of file with something like: DoW ReadRecord( Select ); Paul
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.