Table of Contents

Search

  1. Preface
  2. Product Overview
  3. Before You Begin
  4. Tutorial Lesson 1
  5. Tutorial Lesson 2
  6. Tutorial Lesson 3
  7. Tutorial Lesson 4
  8. Tutorial Lesson 5
  9. Tutorial Lesson 6
  10. Appendix A: Naming Conventions
  11. Appendix B: Glossary

Getting Started

Getting Started

Creating an Expression Transformation

Creating an Expression Transformation

In the following steps, you use an Expression transformation to calculate the total salary for each employee. You use BASESALARY, COMMISSION, and BONUS as input columns to the Expression transformation and create a TotalSalary column as output.
  1. Create an Expression transformation and name it EXP_TotalSalary.
  2. Click
    Done
    .
  3. Drag all the ports from the XML Source Qualifier transformation to the EXP_TotalSalary Expression transformation.
    The input/output ports in the XML Source Qualifier transformation are linked to the input/output ports in the Expression transformation.
  4. Open the Expression transformation.
  5. On the
    Ports
    tab, add an output port named TotalSalary. Use the Decimal datatype with precision of 10 and scale of 2.
  6. Enter the following expression for TotalSalary:
    BASESALARY + COMMISSION + BONUS
  7. Validate the expression and click
    OK
    .
  8. Click
    OK
    to close the transformation.
  9. Click
    Repository
    Save
    .

0 COMMENTS

We’d like to hear from you!