hi all, i have 1 flat file having 10 rows. like:-
id name amt
100 a 100
200 b 200
100 n 300
400 p 3000
100 a 100
600 x 6000
Now i want to load half of this data into one flat file and
remaining in other flat file.like :-
flat file 1
id name amt
100 a 100
200 b 200
100 n 300
----------------------
----------------------
flat file 2
id name amt
400 p 3000
100 a 100
600 x 6000
Plz reply me ASAP.
Answer Posted / rashmi garg
From source to expression connect ID, Name and Amt.
Add one sequence generator and connect to expression
now expression TF is like
expression
----------
ID
Name
Amt
Number
pass number port to aggregator TF to get the max value in
number and pass ID,Name, amt and number from exression to
router and max value from aggregator to router
now router is having ports
Id
Name
Amt
Number
Max
now route the rows on the basis of
number < max/2 (output group 1)
number > max/2 (output group 2)
Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
How do you load only null records into target?
explain one complex mapping with logic? sales project?
What the difference is between a database, a data warehouse and a data mart?
5. Consider the following products data which contain duplicate rows. A B C C B D B Q1. Design a mapping to load all unique products in one table and the duplicate rows in another table. The first table should contain the following output A D The second target should contain the following output B B B C C
Explain the various test procedures used to check whether the data is loaded in the backend, performance of the mapping, and quality of the data loaded in informatica?
What is a repository? And how to add it in an informatica client?
How are indexes created after completing the load process?
what is song in infrmatica...?
According to his methodology what all you need before you build a datawarehouse
State the differences between sql override and lookup override?
Explain the scenario which compels informatica server to reject files?
difference between repository database and repository service?
can any one explain about dataflow in the informatica project for bank domain....thanks is advance
Explain target update override in informatica
How to Create a folder using pmrep command?