|
If you can execute RUNSQL, I'd neither use Query/400 nor QMQRY.
Even though SELECT is not supported, it is possible to create a
(temporary) SQL VIEW representing the result of an SELECT statement.
This view can be registered with the DCLF command and read with the
RCVF command. The only downside is, the sequence of rows returned by
the view cannot be predefined.
If the records must be returned in a specific sequence, creating a
temporary table based on a SELECT statement with an ORDER BY clause
and reading this temporary table may be an option.
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.