Switch stage

The Switch stage is a processing stage that takes a single data set as input and assigns each input row to an output data set based on the value of a selector field.

The Switch stage can have a single input link, up to 128 output links and a single rejects link.

The Switch stage performs an operation analogous to a C switch statement, which causes the flow of control in a C program to branch to one of several cases based on the value of a selector variable. Rows that satisfy none of the cases are output on the rejects link.
Shows a Switch stage outputting rows from a data set to one of three output data sets

The stage editor has three pages:

  • Stage Page. This is always present and is used to specify general information about the stage.
  • Input Page. This is where you specify the details about the single input set from which you are selecting rows.
  • Output Page. This is where you specify details about the processed data being output from the stage.