Page 1 of 1

Switch case

Posted: Fri Jun 15, 2007 2:59 am
by dashpriya
Hi ,
How the switch case exactly work?I know that its going to divide the input to number of outouts according to the defined case.If i am having 2 case then how the case is going to work?How is it going to distingusih which case will go to which output link?

Any sujjestion is welcome...

thanks
Dash

Posted: Fri Jun 15, 2007 3:40 am
by JoshGeorge
Output lstreams are identified using link numbers starting from 0. If it is just 2 links, you can use filter stage also.

Switch case

Posted: Fri Jun 15, 2007 3:56 am
by dashpriya
is it necesssry that the number of columns in input should be equal to the number of columns in output?

Posted: Fri Jun 15, 2007 4:04 am
by keshav0307
s it necesssry that the number of columns in input should be equal to the number of columns in output?
can't you find it from job property or from help or from online manual

Switch Case

Posted: Fri Jun 15, 2007 4:07 am
by dashpriya
I am new to PX

Posted: Fri Jun 15, 2007 4:10 am
by keshav0307
No problem, you need to read the documents/guide provided.

Re: Switch case

Posted: Fri Jun 15, 2007 4:15 am
by JoshGeorge
No it is not necessary ! You can drop columns, but this is completely dependent on the stages you use. You have code to drop columns in modify stage. In copy stage you can drop while you map in the output mapping tab. Check in the stage if it is having a mapping tab, in that case you can try not mapping the columns you don't want to the output link.
dashpriya wrote:is it necesssry that the number of columns in input should be equal to the number of columns in output?

Re: Switch case

Posted: Fri Jun 15, 2007 4:37 am
by dashpriya
Thanks a lot for guiding me..