This transformation map needs to support the selection of employees by department code to be inserted into the CSV text file. In this step, you will complete the transformation map by adding an SQL Where Condition, and an input parameter linking the file XEMPLOYEE to the output text file via the SQL Where Condition.


When connecting to IBM i define the selection as XDEPTMENT = :Department_In
When Connecting to WindowsDefine the selection as xDepartmentCode = :Department_In
(Note the colon - and lack of space - before Department_In.) This will define an input parameter – see the example below.
| XDEPARTMENTCODE is the name of the department code field in the file XEMPLOYEE, which the transformation is reading. |



Define a string input called Department_In and click OK.
| You can also define a default value and use this in Mapforce to produce sample output. Specify a design time execution value of 1700 |


Save icon to save your transformation map. Note that the messages area at the bottom left of Mapforce should look like the following:
Select Output tab. Provided you specified a default value in the Input parameter, this will show the employees which will be selected.
| This view has been scrolled to the right, to show the Department Description column which has been retrieved from the related table XDEPARTMENTS. |
