index constraint
Moderators: chulett, rschirm, roy
index constraint
Hi,
I want to filter any records which has ___Req% or ___Joi%
i am putting constraint in transformer its not working
Index((to_transf._ID), "___Req",1)
or Index((to_transf._ID), "___Joi",1) = 0
Thanks
I want to filter any records which has ___Req% or ___Joi%
i am putting constraint in transformer its not working
Index((to_transf._ID), "___Req",1)
or Index((to_transf._ID), "___Joi",1) = 0
Thanks
It seems you need to concatenate the search string like this:
Code: Select all
"_" : "Joi"
"_" : "Reqi"
pandeeswaran
For any kind of "starts with" check, all you need to do is substring.
Code: Select all
to_transf._ID[1,6] = "___Req"
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You missed the value comparison for the first Index() function. And you probably want "And" rather than "Or" if you want to exclude these records (it's not clear what you mean by "filter").
If you want to include only these records, change the expression appropriately.
Code: Select all
Index((to_transf._ID), "___Req",1) = 0 And Index((to_transf._ID), "___Joi",1) = 0
Code: Select all
Index((to_transf._ID), "___Req",1) <> 0 Or Index((to_transf._ID), "___Joi",1) <> 0
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.