Sie sind auf Seite 1von 4

Name of Solution:

Dynamic FileList generation with Wild Card option

Business Requirement:
A mapping example that demonstrates generating FileList dynamically with wildcard
character options.

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

Supported Versions:
PowerCenter 9.1 and 9.5

Description:
PowerCenter provides FileList option that allows users to process multiple flat files. A
FileList file contains list of multiple flat files that will eventually be processed by session.
However, FileList file continues to remain static.
But it is possible to generate FileList file dynamically and programmatically. The mapping
example given here demonstrates the same.
The mapping sample given here uses Wild Card characters to build the FileList file. For
example, you may want to process all the files starting with the word Customer*. The
session uses a batch file to generate the File List file that contains names of source files
having certain pattern. The same can be achieved in UNIX with the help of a Shell Script
file.

Download file contents:


1.
2.
3.
4.

Workflow
Source File
Target Files
Script (Batch File)

Steps to implement the solution:


1. Place source file in $PMSourceFileDir folder. Place batch file from the script folder
into $PMRootDir\..\Bin folder. Observe the content of the batch file as shown
below.

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

2. Import workflow using the Repository Manager. Select the appropriate folder from
the repository and resolve the conflicts by choosing suitable option.
3. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service.
4. Edit session and assign valid connection object for the source and target.
5. For more details of importing object please visit our YouTube link.
6. In the WorkFlow Manager, observe the mapping tab of session properties as shown
below.

7. Observe the Pre-Session Command from the components tab of session properties as
shown below. Batch file gets executed before before execution of a session and
creates the source file which is an indirect source to session.

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

8. Execute the workflow and observe the target files. Observe that get_files.txt has
been created at $PMSourceFileDir folder. Observe the content of the source file as
well as the target file.

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

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

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.

Das könnte Ihnen auch gefallen