Create an input port in the Lookup transformation for each argument in the :LKP expression. For each lookup condition you plan to create, you need to add an input port to the Lookup transformation. You can create a different port for each condition, or use the same input port in more than one condition.
For example, a retail store increased prices across all departments during the last month. The accounting department only wants to load rows into the target for items with increased prices. To accomplish this, complete the following tasks:
Create a lookup condition that compares the ITEM_ID in the source with the ITEM_ID in the target.
Compare the PRICE for each item in the source with the price in the target table.
If the item exists in the target table and the item price in the source is less than or equal to the price in the target table, you want to delete the row.
If the price in the source is greater than the item price in the target table, you want to update the row.
Create an input port (IN_ITEM_ID) with datatype Decimal (37,0) to match the ITEM_ID and an IN_PRICE input port with Decimal (10,2) to match the PRICE lookup port.