× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



ahhhh! duh! thanks!

Thanks,

Jay Vaughn
Senior I5 Programmer/Analyst
RateWatch
(P) 251.633.8929
(F) 251.633.8929
www.rate-watch.com


-----Original Message-----
From: CRPence <crp@xxxxxxxxxxxxxxxxxxxx>
To: rpg400-l@xxxxxxxxxxxx
Date: Tue, 11 Dec 2007 17:11:54 -0600
Subject: Re: sql statement structure


Actually the origin of the error is "AND QECMNT = 1", according to
the text "error on field (Cast(BANKCDTL_2.QECMNT[7], Char Fixed Len 40
Pad(x40,x4040)) AS Short Packed(1,0))".

If indeed the data in QECMNT is alphanumeric CHAR(40) in the form of
'xxxxxxxxx99:99:99yyyyyyzzzzzzzzz99:99:99', then the string can not be
CAST directly to numeric, at least because ':' is not valid for a
character representation of a number. A character representation of a
number must be composed of an optional sign indicator and decimal
separator, with nothing more than digits included; thousand separators,
nor any other separators are allowed.

Try removing that selection, and decide something more appropriate
for selection against that field; if even there is any intent to perform
selection on that field -- perhaps the wrong field was named.?

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.