Table of Contents

Search

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

Developer Mapping Guide

Developer Mapping Guide

Creating a Dynamic Port

Creating a Dynamic Port

Create a dynamic port to receive multiple columns from an upstream transformation. The columns can change at run time. You can create more than one dynamic port in a transformation.
  1. Create a dynamic port in the following ways:
    • Drag the All Ports group or a dynamic port from another transformation.
      The Developer tool creates a dynamic port with generated ports for all columns in the upstream transformation, and links the ports. You can change the input rules to filter the generated ports.
      The following image shows the dynamic ports in the Sorter and Expression transformations:
      The mapping contains a Read, Sorter, and an Expression transformation. The All Ports group from the Read transformation is linked to a dynamic port From_Read_EMPLOYEE in the Sorter transformation. The All Ports group from the Sorter transformation is linked to a dynamic port From_Sorter in the Expression transformation. The dynamic port From_Read_EMPLOYEE in the Sorter transformation is linked to a dynamic port From_Read_EMPLOYEE in the Expression transformation.
    • In the
      Properties
      view of the transformation, select
      New Dynamic Port
      on the
      Ports
      tab.
      The Ports tab in the Properties view of the transformation has New, Cut, Copy, Paste, Delete, Move Up and Move Down buttons. The New button is selected and has two buttons New and New Dynamic Port. The Ports tab shows a grid that contains columns labeled Name, Type, Precision, Scale, Default Value, Description, and Input Rules. The Name column shows a row for a dynamic port in the transformation.
      The Developer tool creates an empty dynamic port that you can configure. You must manually link the ports to create generated ports.
      The following image shows the new dynamic port in the Sorter transformation with no generated ports:
      The mapping contains a Read transformation and a Sorter transformation. The All Ports group from the Read transformation is linked to a dynamic port From_Read_EMPLOYEE in the Sorter transformation. The dynamic port has generated ports. The Sorter transformation has another dynamic port Field that does not have any generated ports.
  2. Optionally, you can change the name of the dynamic port and add a description of the port.
    The generated ports inherit port properties from the upstream transformation, and are not editable.

0 COMMENTS

We’d like to hear from you!