Professional Documents
Culture Documents
Informatica DESIGNER
Informatica DESIGNER
DESIGNER
Transformation
The transfer of data is called transformation A transformation is a repository object that generates, modifies, or passes data The Designer provides a set of transformations that perform specific functions Transformations in a mapping represent the operations the Informatica Server performs on the data. Data passes into and out of transformations through ports that you link in a mapping or mapplet.
:
Transformation
Transformations can be active or passive
An active transformation can change the number of rows that pass through it
A passive transformation does not change the number of rows that pass through it, Transformations can be connected to the data flow An unconnected transformation is not connected to other transformations in the mapping It :is called within another transformation, and returns a value to that transformation.
Mapping Designer
Transformation Developer Mapplet Designer
Expression Transformation
You can use the Expression transformation to calculate values in a single row before you write to the target
You can use the Expression transformation to perform any non-aggregate calculations.
Repeat the previous step for each input port you want to add to the expression.
Enter the expression in the Expression Editor you have disable to in port.
Tracing level
Choose Repository-Save.
Sorter Transformation
The Sorter transformation allows you to sort data. You can sort data in ascending or descending order according to a specified sort key.
You can also configure the Sorter transformation for case-sensitive sorting, and specify whether the output rows should be distinct.
The Sorter transformation is an active transformation. It must be connected to the data flow. You can sort data from relational or flat file sources.
Sorter Transformation
When you create a Sorter transformation in a mapping, you specify one or more ports as a sort key and configure each sort key port to sort in ascending or descending order.
You can also use the Sorter transformation to sort data passing through an Aggregator transformation configured to use sorted input. You also configure sort criteria the PowerCenter Server applies to all sort key ports and the system resources it allocates to perform the sort operation.
Sorter Transformation
Following Figure illustrates a simple mapping that uses a Sorter transformation. The mapping passes rows from a sales table containing order information through a Sorter transformation.
Sorter Transformation
The Sorter transformation contains only input/output ports. All data passing through the Sorter transformation is sorted according to a sort key. The sort key is one or more ports that you want to use as the sort criteria. You can specify more than one port as part of the sort key. When you specify multiple ports for the sort key, the PowerCenter Server sorts each port sequentially. The order the ports appear in the Ports tab determines the succession of sort operations.
Sorter Transformation
At session run time, the PowerCenter Server sorts data according to the sort order specified in the session properties. The sort The Sorter transformation treats the data passing through each successive sort key port as a secondary sort of the previous port.
Sorter Transformation
Following Figure shows the Ports tab configuration for the Sorter transformation sorting the data in ascending order by order ID and item ID:
Sorter Transformation
Sorter Cache Size The PowerCenter Server uses the Sorter Cache Size property to determine the maximum amount of memory it can allocate to perform the sort operation. The PowerCenter Server passes all incoming data into the Sorter transformation before it performs the sort operation.
Sorter Transformation
Case Sensitive The Case Sensitive property determines whether the PowerCenter Server considers case when sorting data. When you enable the Case Sensitive property, the PowerCenter Server sorts uppercase characters higher than lowercase characters.
Work Directory You must specify a work directory the PowerCenter Server uses to create temporary files while it sorts data. After the PowerCenter Server sorts the data, it deletes the temporary files. You can specify any directory on the PowerCenter Server machine to use as a work directory. By default, the PowerCenter Server uses the value specified for the $PMTempDir server variable.
Filter Transformation
The Filter transformation allows you to filter rows in a mapping. You pass all the rows from a source transformation through the Filter transformation, and then enter a filter condition for the transformation. All ports in a Filter transformation are input/output, and only rows that meet the condition pass through the Filter transformation.
Filter Transformation
The mapping in following passes the rows from a human resources table that contains employee data through a Filter transformation. The filter only allows rows through for employees that make salaries of 30,000 or higher.
Filter Transformation
Filter Transformation
With the filter of SALARY > 30000, only rows of data where employees that make salaries greater than $30,000 pass through to the target. As an active transformation, the Filter transformation may change the number of rows passed through it. A filter condition returns TRUE or FALSE for each row that passes through the transformation, depending on whether a row meets the specified condition. Only rows that return TRUE pass through this transformation. Discarded rows do not appear in the session log or reject files.
The main difference is that the source qualifier limits the row set extracted from a source, while the Filter transformation limits the row set sent to a target.
Router Transformation
A Router transformation is an Active Transformation A Router transformation is similar to a Filter transformation because both transformations allow you to use a condition to test data. A Filter transformation tests data for only one condition Router transformation tests data for one or more conditions when you use a Router transformation in a mapping, the Informatics Server processes the incoming data only once. Comparing Router and Filter Transformations
Edit transformation
Double-click the title bar of the Router transformation to edit transformation properties
port
.
group metadata
properties
Click the Groups tab, and then click the Add button to create a user-defined group
Enter a group filter condition Click Validate to check the syntax of the conditions you entered. Click OK. Connect group output ports to transformations or targets. Choose Repository-Save.
A Router transformation has the following types of groups: Input Output There are two types of output groups: User-defined groups Default group
You can enter any expression that returns a single value. . You can also specify a constant for the condition
You might want to use a Router transformation in a mapping to filter this data to Three different Expression transformations.
A Router transformation has input ports and output ports . Input ports reside in the input group, and output ports reside in the output . groups. You can create input ports by copying them from another transformation or by manually creating them on the Ports tab.
You can create input ports by copying them from another transformation or by manually creating them on the Ports tab
You can connect one output port in a group to multiple transformations or targets
You can connect multiple output ports in one group to multiple transformations or targets
You cannot connect more than one group to one transformation or target
Lookup Transformation
Use a Lookup transformation in your mapping to look up data in a relational table, view, or synonym Import a lookup definition from any relational database to which both . the Informatica Client and Server can connect You can use multiple Lookup transformations in a mapping. The Informatica Server queries the lookup table based on the lookup ports in the transformation It compares Lookup transformation port values to lookup table column values based on the lookup condition
Cached or uncached
Connected Lookup: You can configure a connected Lookup transformation to receive input directly from the mapping pipeline,
unconnected Lookup: To receive input from the result of an expression in another transformation.
Unconnected Lookup
Receives input values from other transformation calling
:LKP expression
You can use a static cache.
.
Cache includes all lookup/output ports in the lookup condition .t If there is no match for the lookup condition, returns null
Pass one output value to another transformation Does not support user-defined default values
Lookup Components
configure a Lookup transformation in a mapping, you have to define the following components:
Lookup table
.
Lookup Components
In the Select Lookup Table dialog box, you can choose the lookup table
Click the Import button if the lookup table is not in the source or target database.
Define input ports for each Lookup condition you want to define
Edit transformation
Double click on lookup transformation edit transformation opens
When you create a mapping with a Lookup transformation that uses a dynamic lookup cache, you must use Update Strategy transformations to flag the rows for the target tables. When you configure a session using Update Strategy transformations and a dynamic lookup cache, you must define certain session properties.
You must define the Treat Source Rows As option as Data Driven. Specify this option on the Properties tab in the session properties.
You must also define the following update strategy target table options: Select Insert Select Update as Update Do not select Delete