Variable assignment operators

The variable assignment operator assigns values to variables in a control flow. A variable can accept either a fixed value or a variable.
Concept graphic of variable assignment operator

In the Properties view of the variable assignment operator, you can specify the source of variable values. You can type or select values in a variable assignment table, or read the variable values from an external delimited file.

Often in data warehousing environments, you need to export the results of a data flow to a file, then read values from a file, and assign values to variables. You use the read from file option in the variable assignment operator to complete this task.

The values that are read from an external delimited file, take precedence over the values in the variable assignment table.

Example

The following figure shows a variable assignment table that contains three variables and their assigned values. The variable Sales_Amount is assigned a fixed value, the variable var1 is assigned a variable directory_var, and the variable var2 is assigned a reserved variable DATE.

Figure 1. Variables defined in the variable assignment table


Feedback | Information roadmap