Transformations

A transformation is any part of a mapping that generates or modifies data. Several common transformations are provided in the Transformations toolbar in Informatica’s Designer tool. You can also create your own transformations.

There are two types of transformations:

Many transformations use functions. Functions generate or modify data. Transformations act on sets of data, but functions operate on individual data values.

The most commonly used transformations are:

Creating an Expression Transformation

For data mappings that use ETL_CUSTOMER_MASTER, ETL_CUST_SUBSCRIPTION, or ETL_CUST_ATTRIBUTES as the target table, you need to create an Expression Transformation with output columns that generate Connect-specific data values that are not likely to be stored in the source tables or flat files. Within the Expression Transformation table, create the following hard coded expressions and output ports:


Port Name Datatype Prec Scale O Expression
PROCESS_TYPE String 10 0 X 'Customer'
COMPANY_ID Integer 10 0 X 100

You can map these ports directly into the corresponding columns in the target tables. However, if a Normalizer is used in the mapping, the ports must be first mapped into the Normalizer transformation. From the output ports in the Normalizer transformation the data can be mapped to the target.

Creating a Normalizer Transformation

For mappings that require a single source record with many values to be transformed into many records with unique values (that is, a single mapping with multiple attributes to the ETL_CUST_ATTRIBUTES target or a single mapping with multiple Conversations to the ETL_CUST_SUBSCRIPTION target), a Normalizer transformation is required.

If a Normalizer is used in the mapping, all data ports must pass through the Normalizer before data is written to the target.

While all data fields passed from the source are specified in this transformation before populating the target, you need to specify the number of times the Normalized data columns will occur in the mapping.

In the example below, the Normalizer is created to accommodate seven attributes in a single mapping. The mapping writes data to the ETL_CUST_ATTRIBUTES table.


Column Name Level Occurs Datatype Prec Scale
ATTRIBUTE_NAME 0 7 String 40 0
ATTRIBUTE_VALUE 0 7 String 80 0

See Informatica’s User Guide and Transformation Language Reference for more information on transformations.