×
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 Michael,
I believe that is expected. Excerpt from the V7R2 SQL Reference manual:
"The regular expression processing is performed using the International
Components for Unicode (ICU) regular expression API on Unicode data with
regular expression patterns that use the control characters listed
below."...
I ran a quick, similar test over 2 columns, one with CCSID 37 EBCDIC, and
one with CCSID 1208 UTF-8 enhanced ASCII, and got the same results as you.
The EBCDIC data behaved as if it was converted and then compared to the
regular expression.
Mike
date: Mon, 15 Feb 2016 08:34:46 -0500
from: mprice@xxxxxxxxx
subject: SQL and Regular expression
I was running an SQL statement on a field in a physical file using
REGEXP_LIKE(Field1,'\xC1') expecting to find 'A' .
After this failed to return the desired results, I discovered that I have
to use the ASCII equivalent.
ie REGEXP_LIKE(Field1,'\x41')
Expected ?
or
Strange ?
Michael
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.