How to dynamically give flat file source file name in session properties of informatica?

Aspirant picture Aspirant · Oct 28, 2012 · Viewed 26.2k times · Source

i have an issue where i get flat file with date and time extension to flat file name like test_28-10-2012.txt

I can get the flat file name in mapping through checking the AddCurrentlyProcessedFileNameproperty in Source Analyzer,from there i can do my logic but my question is

how can i dynamically give the flat file name in Source file name property of session.

Answer

Raghav picture Raghav · Oct 29, 2012

One way to do this is to use indirect sources. You can configure your session to use indirect sources, wherein the source file names are coming from a text file (each entry in the listfile is a source file session will read).

Then you can arrange your code to add that dynamic filename to that listfile.