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



Michael -
You don't have to get rude. List rules say to use private mail for
insults...
- sjl


<Michael_Schutte@xxxxxxxxxxxx> wrote in message
news:mailman.5694.1241703725.23468.rpg400-l@xxxxxxxxxxxxxxx
You clearly dont have an answer. I'm not a beginner here. I know that
you cannot use host variables in STRSQL.

If you notice we are in the RPG group. I'm using this in SQLRPGLE to
create a QTEMP table. I've found in the reference manual that host
variables are not allowed. BUT WHY?


--

Michael Schutte
Admin Professional



BIG FARM SALADS: Made when you're ready, not ready made.
Try our NEW Savor-Size Country Caesar Salad for 5.99!
For more information, visit BobEvans.com



rpg400-l-bounces@xxxxxxxxxxxx wrote on 05/07/2009 09:05:04 AM:

Michael wrote:

'It's interactive SQL checking that it was barfing on. The message was

"HOST VARIABLE NOT PERMITTED HERE'


Michael -

Are you saying that you are trying to execute this statement within the
interactive SQL interpreter (STRSQL) ?
If not, please explain further.

You can't use host variables within STRSQL, since it has no way of
prompting
you for the host variable values, but you could put the SQL into a source

file, replace the colons with ampersands, and compile it to a QM Query
with
CRTQMQRY and run it with STRQMQRY to test it...

- sjl




--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.