You are on page 1of 18

Informatica

Expression Transformation

Sreenivas_Ram
Mahindra Satyam 2010
1

Problem Statement
Let us calculate Total Salary from
EMP Table.

The Total Salary is calculated using :


SQL Expression :
TOTSAL = SAL + NVL(COMM)

Informatica Expression :
TOTSAL

= SAL +
IFF(ISNULL(COMM), 0, COMM)

Mahindra Satyam 2010


2

Create a New mapping from Mappings Menu

Mahindra Satyam 2010


3

Drag EMP Source on to the Mapping from Sources

Mahindra Satyam 2010


4

Create a New Transformation from Transformation Menu

Mahindra Satyam 2010


5

Select EXPRESSION transformation from Create Transformation


and Give suitable Name to it Click CREATE button

Mahindra Satyam 2010


6

Drag all ports from Source Qualifier to Expression Transformation

Mahindra Satyam 2010


7

Edit the Expression Transformation (by DBL Clicking it)

Go to PORTS tab

Mahindra Satyam 2010


8

Mark the Ports as I Input; O Output or V Variable ports


as required

Mahindra Satyam 2010


9

Add a new Port by clicking Add a new port to this transformation

Mahindra Satyam 2010


10

Rename the port, mark it as only Output port

Mahindra Satyam 2010


11

Click down arrow, you will get expression editor

Mahindra Satyam 2010


12

Enter the expression as required using Functions and Port

Mahindra Satyam 2010


13

Validate the expression , by clicking VALIDATE button

Mahindra Satyam 2010


14

Created the new port, TOTSAL to pass required value as Output

Mahindra Satyam 2010


15

Drag the target on the mapping and


connect Expression and Target with suitable ports

Mahindra Satyam 2010


16

Next steps

Save the Mapping


Create the necessary Session Task and Workflow
Set the required properties
Execute the Workflow
Monitor the execution using Workflow Monitor

Mahindra Satyam 2010


17

Thank you

mahindrasatyam.com
Safe Harbor
This document contains forward-looking statements within the meaning of section 27A of Securities Act of 1933, as amended, and
section 21E of the Securities Exchange Act of 1934, as amended. The forward-looking statements contained herein are subject to
certain risks and uncertainties that could cause actual results to differ materially from those reflected in the forward-looking
statements. We undertake no duty to update any forward-looking statements. For a discussion of the risks associated with our
business, please see the discussions under the heading Risk Factors in our report on Form 6-K concerning the quarter ended
September 30, 2008, furnished to the Securities and Exchange Commission on 07 November, 2008, and the other reports filed with
the Securities and Exchange Commission from time to time. These filings are available at http://www.sec.gov

Mahindra Satyam 2010


18