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



Ok, brushing the dust off...

I've only ever used RTVQMQRY to convert Query/400 to QM via
the ALWQRYDFN(*YES)...

Used on an actual QM query, it does show the same SQL statement that the
prior message walked you through getting to.

Charles

On Thu, Jun 15, 2023 at 11:08 AM Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:

I don't understand the question...

QM Queries are SQL based, unlike Query/400 queries..

RTVQMQRY is designed to convert Query/400 queries to QM ones.

For QM, simply do
- STRQM
- 1. Work with Query Manager queries
- Then 5=Display on the query of interest.

If the TYPE is SQL, you'll see the SQL. Otherwise if the type is prompted
you'll see a pseudo-Query/400 interface that walks you through the various
clauses of an SQL statement. But simply using F18=Display SQL will show
the SQL that is/was being written for you.

Charles

On Thu, Jun 15, 2023 at 10:51 AM James H. H. Lampert via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

I'm analyzing some very complex customer code that does a few things I'd
never seen before. Including running Query Manager queries

I found this for extracting the SQL for inspection, using RTVQMQRY:

https://www.rpgpgm.com/2013/08/getting-sql-statement-of-query.html

but I'm not entirely sure where the data from the query definitions I'm
looking at is actually going.

Can somebody shed some light on this?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.