Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
I'm not sure why you get a compile error, but the syntax of your SQL INSERT
statement is not correct!
The correct syntax is:
Insert into MyTable (Col1, Col2, ... ColN)
Values (?, ?, ...?)
BTW it is not the SQL precompiler, but the RPG compiler that sends the
message.
Is one of the host variables passed to the program with constant reference?
What happens if you move execute immediately after exec SQL?
BTW why to use dynamic SQL at all?
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.