Is it possible to do a "Case Insensitive LookUp" from the HashFile?
I have value coming from PrimaryInputRecord as "Single" and in the ReferenceHashfileRecord as "SINGLE".
I should able to say that the record is matched.
How can i do this? Any thoughts?
Thanks in Advance.
Case Insensitive LookUp
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 166
- Joined: Wed Mar 16, 2005 6:52 am
- Location: Mumbai, India
When loading the hashed file, load them as all upper-case or lower-case characters(see UPCASE() ) in a prior transformer.
Convert the primary lookup to the same case using the key expression:
UPCASE(in.col)
PX has a case-insensitive lookup option. I havent found one yet in server.
Convert the primary lookup to the same case using the key expression:
UPCASE(in.col)
PX has a case-insensitive lookup option. I havent found one yet in server.
Amey Vaidya<i>
I am rarely happier than when spending an entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand.</i>
<i>- Douglas Adams</i>
I am rarely happier than when spending an entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand.</i>
<i>- Douglas Adams</i>
ameyvaidya wrote:When loading the hashed file, load them as all upper-case or lower-case characters(see UPCASE() ) in a prior transformer.
Convert the primary lookup to the same case using the key expression:
UPCASE(in.col)
PX has a case-insensitive lookup option. I havent found one yet in server.
Thanks Craig & AmeyVaidya.
But we don't have control over data.
PrimaryInput data can come as one record with LowerCase data and other record as UpperCase data (but definitely not mixed case in a single record)
OR
ReferenceLookup data can come as one record with LowerCase data and other record as UpperCase data (but definitely not mixed case in a single record).
What should we do in that kind of situation.
Thanks in Advance.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You DO have control over data - you're the ETL person!!! You can determine what to put in a hashed file - apply an Upcase() function as it goes in. You can determine how to lookup those values - use an Upcase() function in the Key Expression in the Transformer. None of this affects the external data.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.