Page 1 of 1

switch and filter

Posted: Thu Mar 23, 2006 2:16 pm
by pavan_test
Hi All.,

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

thanks
pavi

Re: switch and filter

Posted: Thu Mar 23, 2006 2:21 pm
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 .

switch and filter

Posted: Thu Mar 23, 2006 2:25 pm
by pavan_test
Thanks
pavi

Posted: Thu Mar 23, 2006 6:58 pm
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).