Selecting purpose codes in the DataStage® Slowly Changing Dimension stage
Purpose codes specify how the Slowly Changing Dimension (SCD) stage should process dimension data.
About this task
- If a dimension contains a Type 2 column, you must select a Current Indicator column, an Expiration Date column, or both. An Effective Date column is optional. You cannot assign Type 2 and Current Indicator to the same column.
- If a dimension contains only Type 1 columns, no Current Indicator, Effective Date, Expiration Date, or SK Chain columns are allowed.
Procedure
- On the Input tab, select the reference link in the Input name field.
- In the Lookup section, click Edit. The Edit lookup page opens.
- In the Purpose column, select a purpose code for each row.