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



I usually start SQL Interactive Session (STRSQL), where try to run problem
example. It usually solves the problem.*
*
Regards, Alex.
*
*
*
01.10.2015, 01:02, "CRPence" <crpbottle@xxxxxxxxx>:

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

--
Regards, Chuck

*

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

*

References

Visible links
1. mailto:RPG400-L@xxxxxxxxxxxx
2. http://lists.midrange.com/mailman/listinfo/rpg400-l
3. mailto:RPG400-L-request@xxxxxxxxxxxx
4. 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.