Table of Contents

Search

  1. Preface
  2. Mappings
  3. Mapplets
  4. Mapping Parameters
  5. Mapping Outputs
  6. Generate a Mapping from an SQL Query
  7. Dynamic Mappings
  8. How to Develop and Run a Dynamic Mapping
  9. Dynamic Mapping Use Cases
  10. Mapping Administration
  11. Export to PowerCenter
  12. Import From PowerCenter
  13. Performance Tuning
  14. Pushdown Optimization
  15. Partitioned Mappings
  16. Developer Tool Naming Conventions

Developer Mapping Guide

Developer Mapping Guide

Configuring the Mapping Output Expression

Configuring the Mapping Output Expression

In the Expression transformation, configure the expression to aggregate for each row that the mapping processes.
  1. Add an Expression transformation to the mapping.
    Consider the mapping logic before you decide where to place the transformation. The mapping output contains an aggregation of the rows that the Expression transformation receives.
  2. In the Expression transformation, click the
    Mapping Outputs
    view.
  3. Click
    New
    to add a mapping output expression.
    The Developer tool creates a mapping output with a output name that matches one of the mapping outputs you created at the mapping level. If you have more than one mapping output in the mapping
    Properties
    , select the appropriate mapping output name to use.
    The following image shows the
    Mapping Outputs
    view in the Expression transformation:
    The Mapping Outputs view shows the Total Order Amount mapping output with an empty expression field. It also shows the Last Order Date mapping output with Order Date in the Expression field.
  4. Click the
    Expression
    column to enter an expression in the Expression Editor.
    The expression can contain just a port name or it can contain functions, ports, and parameters.
    The following image shows an expression to calculate the Total_OrderAmt in the Expression Editor:
    The Expression Editor has three columns labeled Functions, Ports, and Parameters. The Expression Editor shows the following expression in the work area: Order Amount + Order Amount * .0875.
  5. Click
    Validate
    to verify that the expression is valid.
  6. Click
    OK
    to save the expression.
    The expression appears in the
    Expression
    column for the mapping output.
  7. Click
    File
    Save
    to save the Expression transformation.

0 COMMENTS

We’d like to hear from you!