|
wrote:
Hi Jim,
Are you building the SQL statements dynamically with concatenation? If
so, why?
Normally, in RPG, you'd use embedded SQL and build your statement as a
static statement. In this case, having a single quote in your "select
where like" wouldn't do any harm!
But (although you haven't said this) I'm assuming you're building the
statement dynamically... because I can't come up with any other reason
why you'd have a problem like that. If that's the case, you can simply
use parameter markers to solve the "special characters" problem. But I
don't know why you'd do that instead of a static statement.
Can you please clarify your situation?
As an Amazon Associate we earn from qualifying purchases.
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.