× 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 30-Sep-2015 15:52 -0600, Booth Martin wrote:
I have two problems:
The first is that the following does not work
exec sql insert into FILEP (FILEKEY, FILESEQ#, FILEDATA)
values('Test 1', 3, :'ddddd');

The second is that I do not know how to find the problem.


Look at the value of the SQLCODE and the SQLSTATE variables; what you would want to do in the code anyhow, as the SQL works with return-codes vs messaging.

I am unsure if the example is contrived, such that the above is all that is of concern. If not, then the issue with the above embedded INSERT INTO is that the literal\constant character-string value 'ddddd' is preceded by a colon which is a designator for a host-variable, and a delimited host-variable name [if even supported] would be the double-quote just as naming of objects and columns; i.e. the argument-separator for the SQL is the comma [thus why a blank is normally following a comma-as-delimiter] instead of the colon [as is used in RPG].


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.