to filer out data based on particular value

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

to filer out data based on particular value

Post by nani0907 »

Hi

my input data is like:

Column A Column B
1 PINK
2 pink
3 pInk
4 orange
5 ORANge

I need to filter out only Column B which has value 'pink'. the Value Pink is upper case some time,Lower case and combination of lower and upper case.

Please Help me
thanks n regards
nani
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

using filter stage
Srinu Gadipudi
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

here i am geeting column b values with different options like upper case, lower case and combination of both. how to check it
thanks n regards
nani
vasa_dxx
Participant
Posts: 39
Joined: Sun Sep 28, 2008 2:59 am
Contact:

Post by vasa_dxx »

I don't think its quite possible through Filter Stage. Becuase, In Where parameter, You need to specify operators =, like, between.
So use a transformer. Use the derivation to filter after converting the I/p column to Lower or Upper Case.
output_link.col_b --->> lower(input_link.col_b)='pink'
This addresses the requirement.
Last edited by vasa_dxx on Mon Dec 22, 2008 2:47 am, edited 1 time in total.
Two wrongs don't make a right. But three lefts do.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

yes,

constraint is
trim(DSLink2.column2) <> DownCase("pink")
Srinu Gadipudi
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

Thanks .Its Working
thanks n regards
nani
Post Reply