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



Good point, Sam - many of us have written such a command over the years - I think I got my first sample from Buck in these lists. These all take advantage of the SETVAR parameter of STRQMQRY and have a QMQRY that is made up only of substitution variables.

The IBM one does not do SELECT statements, as neither does RUNSQL. I haven't got a good answer as to why not, so I've given up.

So whoever uses the code in the wiki, probably change the command name to something like EXCSQLSTM.

Cheers
Vern

On 9/25/2014 3:35 PM, Sam_L wrote:
FWIW: There is an IBM RUNSQLSTM command that is not compatible with the one in the Wiki.

Sam

On 9/25/2014 1:34 PM, Voris, John wrote:
The RUNSQLSTM is a great command and helps move you into the SQL world with training wheels.
http://wiki.midrange.com/index.php/SQL (which uses SQL syntax and the QM engine.)

From an SQL statement like RUNSQLSTM ' SELECT A.*, B.* from FileA A join FileB B on KeyA = KeyB '
and using F4 to name your output file, there is no need to crank up old WRKQRY to get an *OUTFILE.
You can do this with the custom RUNSQLSTM command.


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



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.