× 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.



Mike,

Frankly this sounds like a batch program.  It also sounds like you are
reading from the beginning until the end.  RPG has some built in methods to
do this but people are loath to use the easy method when they can use BITOF
and BITON.

You could set up the first file as a primary file.  Set up the second file
as a secondary file.  Then when the cycle reads the first file it will
automatically jump to the second file and read all of that.

Now, if doing it the faster built in way troubles you then I would suggest
setting up your overrides in a separate file.  Read that file.  Do the
override using system(), QCAPCMD or QCMDEXC.  Open the files.  Process.  At
the end close the files.  Are there more records in your override file?  If
so, then repeat.  There is no need for CL in this.  And if you add more
overrides then you'll just have to change your CL, but I suppose you can do
a DCLF in there also if you need to bow to the CL mantra.

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.