In here we will see how to generate files dynamically. The requirement is, Consider i have an employee table with the following fields Name,Salary,Department,ID
The files should be generated with employee name as file name and that particular file should have the details of that respective employee only, if the employee has more than one record then both the records should be pulled into the file.
We need to create a port in the target instance named as file name we need to create a port present in the right end corner it will be named as "Add FileName column to this table"
Create the mapping in the following way
In the expression, give the conditions in the following way
In transaction control information give the condition as
So by this for each new ename a file would be created, the duplicate values for the same ename also would be saved in the same file.
Hope this article helps you in understanding dynamic file creation
The files should be generated with employee name as file name and that particular file should have the details of that respective employee only, if the employee has more than one record then both the records should be pulled into the file.
We need to create a port in the target instance named as file name we need to create a port present in the right end corner it will be named as "Add FileName column to this table"
Create the mapping in the following way
In transaction control information give the condition as
So by this for each new ename a file would be created, the duplicate values for the same ename also would be saved in the same file.
Hope this article helps you in understanding dynamic file creation
Comments
Post a Comment