Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Name of Solution:

Mapping: Creating Flat Files Dynamically

Business Requirement:

Use this example to understand how to create multiple output files using Transaction
Control.

Solution URL:

https://community.informatica.com/solutions/2093

Supported Versions:

PowerCenter 9.1 and 9.5

Description:

Informatica PowerCenter lets you control commit and roll back transactions based on a set
of rows that pass through a Transaction Control transformation. A transaction is the set of
rows bound by commit or roll back rows. You can define a transaction based on a varying
number of input rows. You can define transactions based on a group of rows ordered on a
common key, such as employee ID or order entry date.

If the mapping has a flat file target you can generate an output file each time the
Integration Service starts a new transaction. And you can dynamically name each target flat
file.

The example given in the download file demonstrates how you can dynamically create
output files using the Transaction Control. The Flat file source has employee data for each
department. Using transaction control, employee data is segregated by creating a separate
output file for each department.

Download file contents:

1. Workflow
2. Source File
3. Document

Steps to implement the solution:

1. Place source file into $PMSourceDir folder.


2. Import workflow using Repository Manager. Select the appropriate folder from
repository and resolve the conflicts by choosing suitable option.
3. Open mapping in PowerCenter Designer; observe expression transformation and
Transaction Control as shown in following screen shot.

Please rate this solution and share your feedback on Marketplace Website.
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.
7. Execute the workflow and observe the target files. Observe that four files are created
for four quarters.

YouTube Video on Importing and Configuring Workflows:


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

Other Useful links:

Mapping Bundles
Workflow Bundles
Informatica Tools Bundles

Please rate this solution and share your feedback on Marketplace Website.
Informatica for Social Media Bundles
Debugging Tools Bundles
Visio Templates Bundles
B2B Templates and Projects Bundles
Data Quality Packs and Plans Bundles
Script Bundles

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

You might also like