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



On 5/24/05, Mike Pantzopoulos - (H/O) <mpantzopoulos@xxxxxxxxxxxxxxxx> wrote:
> I want to be able to issue an SQL request via CL after formatting the
> SQL depending on parameters passed in. I have heard that there is an API
> which allows this but the only one I can find is
> 'QxdaProcessImmediateEDRS'.
> 
> I'm a newbie with APIs and I can't work out if I have the right API and
> if I do how do I call it because of the length of the API name.
> 
> Or is there an even simpler way? Without resorting to RUNSQLSTM with
> dynamic updates to the source file.

Hi Mike

Have a look at http://dbg400.net/excsql.html for a simple CL command
to run dynamically generated SQL. It's just a wrapper round STRQMQRY
which runs a QM query that only consists of replacement variables. I
use in just the same situation you describe.

Regards, Martin

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.