|
Bill, Could it be that your IN clause is too long to fit on one line? Try reformatting that line and see if it changes anything. Eric -----Original Message----- From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]On Behalf Of Bill Barnes Sent: Tuesday, February 20, 2007 8:32 AM To: wdsci-l@xxxxxxxxxxxx Subject: [WDSCI-L] How Come P Decl_Saexpom B /FREE EXEC SQL Declare SAEXPOM Cursor for SELECT SUBSTR(SAEXPO,1,4) AS STORE, SUBSTR(SAEXPO,5,8) AS DATE, SUBSTR(SAEXPO,13,4) AS CODE, SUBSTR(SAEXPO,15,2) AS Codesfx, SUBSTR(SAEXPO,17,12) AS AMOUNT FROM SAEXPOM WHERE SUBSTR(SAEXPO,13,4) IN('1250','1260','1450','1460','2050','2060','2450','2460') AND SUBSTR(SAEXPO,1,4) >= ' 100' SQL0104 Token SUBSTR was not valid. Valid tokens: ) , ORDER BY SUBSTR(SAEXPO,1,4); The above is strange and happens fairly regularly. The statement is not in error and executes just fine. How come? Thanks Bill Barnes Sr Analyst/Programmer The Pantry, Inc 919-774-6700 ext 5211
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.