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

Step 1. Create the Mapping and Configure Mapping Parameters

Step 1. Create the Mapping and Configure Mapping Parameters

Create a mapping with an Expression transformation that writes to a local flat file target. Define input parameters for the mapping.
  1. Create a mapping to process data from a MOVIES file. Use a Read transformation to read from the data source.
  2. Include an Expression transformation immediately after the source. The Expression transformation includes an expression to aggregate the output value.
  3. Use a Write transformation to write the result to a local flat file target.
    The following image shows the mapping: The editor shows a mapping that includes a Read transformation, Expression transformation, and Write transformation. The mapping reads from a file called MOVIES and writes to a flat file.
  4. Click the editor to access the mapping properties.
  5. Open the
    Parameters
    view.
  6. Create a parameter that will accept the persisted mapping output value called col_id_val. Set a default value for the parameter.
  7. Create a parameter for the name of the ID column in the source table called col_id_name.
    The following image shows the mapping parameters: The Parameters view shows the two mapping parameters, col_id_val and col_id_name. col_id_val has the type 'double', precision set to 15, scale set to 0, and default value set to 0.0. col_id_name has the type 'string', precision set to 1000, scale set to 0, and default value set to 'id2.'
  8. Create a parameter set that includes the col_id_name parameter. Set the value for the parameter to
    MOVIES.ID
    .

0 COMMENTS

We’d like to hear from you!