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



Rob,

There's this thing called the IBM Information Center. It has this section called "Database". Expand that and select "Reference", then expand "SQL Reference". Within that, select Predicates, and from there, LIKE predicate. The answers to questions about LIKE are there.
++
Dennis
++
"If all economists were laid end to end, they would not reach a conclusion."
-- George Bernard Shaw




Bravely sent from my Galaxy tablet phone.
++


rob@xxxxxxxxx wrote:

I wonder if you could convert 9 consecutive characters into 9
repetitions
of one character. For example, convert 012345678 to 111111111. and
then
look for 111111111? Then again, what happens if you have
123456789987654321 imbedded in that string? You convert that to
111111111111111111. Now you look for 111111111 and how many hits do
you
get with a simple like '%111111111%'? One or many? Do you even want
one?
Is there a way to fix that? Use '% 111111111 %' with leading/trailing
spaces? What if there are no trailing or leading spaces because you're
at
the beginning or end of the column? Or it's 'ABN876543210' and that
doesn't have a leading space?

I am thinking that you'd have to write a "function" to do this. That
function could be sql procedure language or RPG and then test the
results
of that function.


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com

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