Beruflich Dokumente
Kultur Dokumente
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.
Workflow
Source File
Target Files
Script (Batch File)
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.
Please rate this solution and share your feedback on Marketplace Website.
Please rate this solution and share your feedback on Marketplace Website.