Before we can execute the workflow and make the data flow from the source to the target in a mapping, we need to configure some basic properties in a session task. These properties enable the session task to pick the data from the source and load it into the target.
To define the properties, you need to perform a series of steps. In Workflow Manager, open the workflow containing the session task. Double-click on the session task, click on Mapping, and then click on Source.
The Mapping tab of the session task lets you define the properties for the source and the target. Let's discuss the options in detail:
Clicking on Target will bring you to the following screen:
Let's discuss the options in detail:
Scroll through the properties and make changes if required. If we use File as Target, we need to define the location of the file in your system under the Output file directory. Also, specify the name of the file under Output filename if you use flat file as target, as shown in the following screenshot:
If you are using the lookup transformation in your mapping, you will need to define the file path or table connection for lookup. Click on Lookup under Transformations and define the Connection details, as shown in the upcoming screenshot.
Lookup Sql Override, as indicated in the following screenshot, is a property that is available if you are using lookup transformation to look up a table. When you use lookup transformation to look up a table, it generates a default query to extract the data from the table and bring in Informatica PowerCenter. You can modify the default query generated by the lookup transformation, which is referred to as a lookup SQL override. Using this property, you can save time by eliminating unwanted records while extracting itself.
If you use lookup transformation to look up a file, you will need to define LookupFileDirectory
and LookupFileName
, as shown in the following screenshot:
We will discuss other properties of session tasks in detail in the next chapter.