Processing all files in a directory

Now that we have a mechanism in place to detect files, it will be important to know which files are available in order to process them. Today we may be receiving EMP001.TXT, EMP001.TXT, and EMP003.TXT. Later we may receive other similar files. If the sequence of file names can easily be predicted, we can build the expected names in a variable and wait for the expected file. However if the file names are unpredictable and random, then we need to know what we have received before we can process them. This is what we will focus on within this recipe.

Getting ready

We can start from where we left off in the previous recipe and build the examples of this recipe into that package, or we can create an entirely new package. ...

Get Oracle Data Integrator 11g Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.