Sie sind auf Seite 1von 3

Name of Solution:

Dynamically Add Headers to Flat file

Business Requirement:
A mapping example that demonstrates header into the target flat file when source file does
not have this information.

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

Supported Versions:
PowerCenter 9.1 and 9.5

Description:
While working with flat file sources, often you receive source file without any header
information. While it is possible to create a target flat file without any header information,
you may want to add header information into the target file.
The mapping example here demonstrates how one can add header file when that
information is missing from the source. The given mapping can add header information for
up to 10 columns. If you want to handle a scenario for more than 10 columns, you can
modify the mapping to suit your needs.

Download file contents:


1. Workflow
2. Source File
3. Target File

Steps to implement the solution:


1. Place source file in $PMSourceFileDir folder.
2. Import workflow using the Repository Manager. Select the appropriate folder from
the repository and resolve the conflicts by choosing suitable option.
3. In PowerCenter Designer, observe the expression transformation as shown below.

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

Observe the expression of ports Number_of_ Fields and Header_Setting as shown below.

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 of importing object please visit our YouTube link.
7. Execute the workflow and observe the target files.

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

YouTube Video on Importing and Configuring Workflows:


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

Other Useful links:


Bundle: Useful PowerCenter Script files
Bundle: Advanced Workflow Techniques
Bundle: PowerCenter Mapping Templates
Bundle: Informatica Debugging Tools
Bundle: Informatica Productivity Tools
Bundle: Regular Expression
Bundle: Java Transformation.

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

Das könnte Ihnen auch gefallen