You can convert traditional iSeries query to a Query Manager Query (an optional for cost item if I'm not mistaken).
We use a home-grown command to automate that and then we can use the QM Query or strip the SQL from it
and use for what-ever purpose . . .
I can post source to Midrange if that would help.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Cunningham
Sent: Tuesday, July 21, 2015 12:28 PM
To: Midrange Systems Technical Discussion
Subject: Convert query to SQL
Has anyone ever tried to create a tool that could convert a query definition into an SQL statement? We get a fair number of requests from users who will work with query to develop an ad hoc list of students they want to send an email to and then they need to contact us to code that request up so it can be used to send an email. I was considering building an app that could ask them for the subject and body of the email, and the name of the query they wrote. Then convert the query to a dynamic SQL statement that did the select and would always have the email included as a field. Process the SQL result set and send the email.
Sent from my iPad
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.