Using the expression editor

To manipulate the date, we need to write the functions in the ports. You can use the functions provided from the list of functions inside the expression editor:

  1. Click on the icon shown in the following screenshot to open the expression editor.
    Using the expression editor
  2. New windows where you can write the function will pop up . From the Functions tab, you can use these functions. Informatica PowerCenter provides all the functions that cater to the need of SQL/Oracle functions, mathematical functions, trigonometric functions, date functions, and so on.

    In our scenario, we need to use the CONCAT function. Double-click on the Concat function under the list of functions to get the function in the editor, as shown in the following screenshot:

    Using the expression editor
  3. Click on Ports in the expression editor, and double-click on FIRST_NAME and LAST_NAME to get the function, as shown in the following screenshot:
    Using the expression editor

    As you can see in the preceding screenshot, the expression editor provides Numeric keypad and Operator keypad, which can be used to write the functions.

    Once you finish writing the function, click on Validate to make sure the function is correct syntactically. Then, click on OK.

    Similarly, write the function to calculate TOTAL_SALARY; the function will be JAN_SAL+FEB_SAL.

  4. Link the corresponding ports to the target, as shown in the following screenshot:
    Using the expression editor

Save the mapping to save the metadata in the repository. With this, we are done creating the mapping using the Expression transformation. We have also learned about ports and how to use an expression editor. We discovered how to write functions in a transformation. These details will be used across all other transformations in Informatica.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset