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



Carel,

thanks.  I though of the QMQRY, but they're not into new things here.  that
would have blown thier minds.

I flipped the order of files (few records / many records), ran a CPYFRMQRYF
and read the results sequentially in my RPG.

this simple change cut my runtime from around 30 minutes to a minute and a
half.

LIFE IS GOOD!

thanks everybody for your help.

rick

---original message---
carel said:
--
Rick,

I have another thought. You may try use Query Manager to generate an
outfile to be read in the RPG programme.
Although the client you are working for does not have SQL, you can create
an SQL-statement in a sourcefile and create a Query Manager Query
(CRTQMQRY) object with this source. The SRC PF should have a length of 91.
Without SQL loaded on the machine you can still use the query engine that
uses OPNQRYF.

The OPNID is only used to identify the Open Data Path created by the
OPNQRYF and can be used with some commands like POSDBF. It is not a
reference to an alias of the file, IIRC.

Just another look at the problem.

Regards,
Carel Teijgeler.




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.