× 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.



Hi all

I'm looking for an example to replace characters less than Blank (with
blank) ; i found this example at
https://stackoverflow.com/questions/7573321/db2-iseries-sql-clean-up-cr-lf-t
abs-etc :



UPDATE <file>

SET <field> = REPLACE(REPLACE(<field>, x'0D', ' '), x'25', ' ')

WHERE LOCATE(x'25', <field>) > 0

OR LOCATE(x'0D', <field>) > 0



But i receive this error : Message: [SQL0171] Invalid LOCATE function
argument 1. Cause . . . : The specified data type, length, or value of
LOCATE function argument 1 is invalid.



Can some help me ?

Thanks in advance


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.