0% found this document useful (0 votes)
93 views5 pages

Name of Solution:: Please Rate This Solution and Share Your Feedback On Website

This document provides examples of mapping flat file data sources in Informatica PowerCenter. It includes three templates that demonstrate using a sorter to increase efficiency when aggregating data, joining a flat file and database table, and creating header, detail, and trailer records in output files. Steps are provided to import the workflow, configure the mappings, and execute the workflow to observe the results. Ratings and feedback are requested.

Uploaded by

Dudi Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views5 pages

Name of Solution:: Please Rate This Solution and Share Your Feedback On Website

This document provides examples of mapping flat file data sources in Informatica PowerCenter. It includes three templates that demonstrate using a sorter to increase efficiency when aggregating data, joining a flat file and database table, and creating header, detail, and trailer records in output files. Steps are provided to import the workflow, configure the mappings, and execute the workflow to observe the results. Ratings and feedback are requested.

Uploaded by

Dudi Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Name of Solution:

Mapping: Various scenarios of Flat File Sources

Business Requirement:
Informatica PowerCenter mapping examples that demonstrate different scenarios of processing flat file data

Solution URL:
https://community.informatica.com/solutions/1639

Supported Versions:
PowerCenter 9.1 and 9.5

Description:
In spite of the prominence of RDBMS storage, flat files will continue to be used to store and exchange data. While flat files provide simplicity, they do not provide sophisticated built-in functionality for data processing. Informatica PowerCenter offers a comprehensive set of features that makes it easy to work with flat file data. Informatica PowerCenter can be configured to process both delimited and fixed width flat files. It also supports numeric, string and datetime data types for flat file sources and targets. When the Integration Service reads non-numeric data in a numeric column from a flat file, it drops the row and writes a message in the session log. Also, when the Integration Service reads non-datetime data in a datetime column from a flat file, it drops the row and writes a message in the session log. Implementation Guidelines: Template 1 - When data is sourced from a flat file it is not usually in any particular order. The Sorter transformation allows you to overcome flat file limitations in many scenarios. In this example it will be increase the efficiency of an aggregator by allowing its use in the sorted input mode. Template 2 - join information from two heterogeneous sources: one database source and one flat file source. Template 3 - This mapping creates 3 output files containing header, detail and trailer records that can be combined using a post-session command. The trailer record contains an extract date and row count that can be used for reconciliation purposes.

Download file contents:


1. Workflow 2. Source File 3. Script

Please rate this solution and share your feedback on Marketplace Website.

Steps to implement the solution:


1. Place source file in $PMSourceFileDir folder. Execute the script to create the source table, source data and target table. 2. Import workflow using Repository Manager. Select the appropriate folder from repository and resolve the conflicts by choosing suitable option. 3. In PowerCenter Designer, observe the following mapping. a. m_Using_a_Sorter: The expression transformation converts the date and creates the identifier port by evaluation expression as shown below.

The identifier port will be used by sorter tranformation to sort the records.

b. m_Join_FlatFile_with_Database_Table:

Observe

the

sources

are

heterogeneous; one is text file and other is ORACLE table.

Please rate this solution and share your feedback on Marketplace Website.

Joiner transoformation combines the data together. Observe the ports and condition tab as shwon below.

c. m_HDR_DTL_TLR: Observe that it creates three targets files.

4. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service 5. Edit session and assign valid connection object for the source and target. 6. For more details for importing object please visit our YouTube link.

Please rate this solution and share your feedback on Marketplace Website.

7. Observe the component tab of s_m_HDR_DTL_TLR, command is executed the combine three output into one.

8. Execute the workflow and observe the result target folder, target file and target table.

YouTube Video on Importing and Configuring Workflows:


http://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJ

Other Useful links:


Mapping Bundles Workflow Bundles Informatica Tools Bundles Informatica for Social Media Bundles Debugging Tools Bundles Visio Templates Bundles B2B Templates and Projects Bundles

Please rate this solution and share your feedback on Marketplace Website.

Data Quality Packs and Plans Bundles Script Bundles

Please rate this solution and share your feedback on Marketplace Website.

You might also like