switch and filter

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
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

switch and filter

Post by pavan_test »

Hi All.,

can anyone please tell me the difference between filter and switch stages in datastage.

thanks
pavi
vcannadevula
Charter Member
Charter Member
Posts: 143
Joined: Thu Nov 04, 2004 6:53 am

Re: switch and filter

Post by vcannadevula »

pavan_test wrote:Hi All.,

can anyone please tell me the difference between filter and switch stages in datastage.

thanks
pavi

Filter can be used as a where clause in the SQL. This is useful for the datasets or sequential files which donot have where clause option.


Switch is basically the case statement in C. specify the selector and the data condition for the selector .
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

switch and filter

Post by pavan_test »

Thanks
pavi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Switch is only on the value of the selector.
Filter is based on an expression (a WHERE-like expression, though LIKE requires regular expressions).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply