|
I think the problem is the double quotes. I may be wrong, but I'm pretty
sure that SQL prefers single quotes. So when you need a literal (the letter
'R'), you need to enclose it in single quotes. But since you are in a
quoted string, you need DOUBLE single quotes ('') which are different from
double quotes ("). This:
D WHERE SUBSTR(FIL44,43,1)="R" -
Changes to:
D WHERE SUBSTR(FIL44,43,1)=''R'' -
Joe
From: mcrangle@xxxxxxxxxxxxxxxxxxxx
I thought this would work, as there is no syntax error using double quotes
D SelectOne S 500A INZ('SELECT ITNBR, ITDSC, -
D ITTYP -
D FROM AMFLIB/ITEMASA -
D WHERE SUBSTR(FIL44,43,1)="R" -
D ORDER BY')
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.