|
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Jonathan Mason
Sent: woensdag 10 februari 2010 14:04
To: 'Midrange Systems Technical Discussion'
Subject: RE: SQL Acting Strangely
Hi Dennis
It's the first ",8" - if I try a select on the file using the same
where
clause it reports ",1" as being in error.
The exact message is SQL0104 "Token ,8 is not valid. Valid tokens: )
,."
Thanks
Jonathan
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dennis Lovelady
Sent: 10 February 2010 12:33
To: 'Midrange Systems Technical Discussion'
Subject: RE: SQL Acting Strangely
update TVBJREPrecords
set BJOAT2 = substr(BJOAT2,8,8) concat substr(BJOAT2,1,7)
where BJJ4S8 = '0'
and BJJ4S3 = '0'
and substr(BJOAT2,1,7)='TSTDATA'
When I run this on our Development box it finds and updates the
without a problem. However, when it's run on the Test box it falls
over
with a message that it doesn't like the ",8" in the first substr
function.
What is the exact error message, Jonathan? How about SQLCODE,
SQLSTATE?
There are two ",8" in that expression, so the information you provided
is
somewhat ambiguous.
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"The most remarkable thing about my mother is that for thirty years she
served the family nothing but leftovers. The original meal has never
been
found."
-- Calvin Trillin
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"The most remarkable thing about my mother is that for thirty years she
served the family nothing but leftovers. The original meal has never
been
found."
-- Calvin Trillin
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
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.