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



Steve,

One, if you try to use SQL against a DDM file, you will get SQL7011
DSPMSGD RANGE(SQL7011) MSGF(QSQLMSG)

Two, if you could use sql against this DDM file it would probably still
suck the data down to the target machine, do the row selection, and still
have the crappy performance of CPYF with selection parameters. Doing RPG
I/O would also have this issue. Remember he wants <1% of a table with
millions of rows.

The goal is to cut down the number of I/O's coming across the comm line.

Until sql statements run on IBM i have some sort of "openquery" technique
to have the sorting/selection to be ran on the remote system to only pipe
down the desired rows you're limited to the other techniques presented,
such as:
- subsetting the data on the source to a temp file and they having the
remote system download that
- using sql on the target to call a stored procedure on the source which
only returns the desired rows
- creating an index or view which only returns the desired rows and
querying that.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.