my source like dis

10,asd,2000
10,asd,2000
10,asd,2000
20,dsf,3000
20,dsf,3000
20,dsf,3000
like dis and my requirement is first record is inserted into
first target and duplicates of first record is inserted into
second target ...like dis way ...?

how to achieve dis?

Answer Posted / santosh kumar sarangi

1.first sort the data with sorter t/r as ID key column and
create below port in exp transformation
var2= var1
id
var1=id
rec_count=iff(var1=var2,rec_count+1,1)
2.Give all the port to router t/r and give the filer
condition as below
rec_count=1 then to first target
default to 2nd target

Let me know if any things is wrong.

Thanks & Regards
Santosh Kumar Sarangi

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression transformation?

637


draw informatica architecture 8.6 ?

3472


How to create the list file having millions of flat files while indirect loading in informatica? In indirect file loading, suppose we have less no.of flat files then we can enter files names manually in list file creation. If millions of files are there, how can we enter the flat file names in list file?

1469


Mention a few design and development best practices for informatica?

563


Target increases every day even though no new record was inserted

1111






What if the source is a flat-file?

595


I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow.

1078


What are the differences between source qualifier and joiner transformation?

602


What is workflow? What are the components of workflow manager?

713


How to generate sequence numbers without using the sequence generator transformation?

649


How to extract sap data using informatica?

607


Define Pmrep command?

642


what is index?how it can work in informatica

1589


what are the Methods For Creating Reusable Transformations?

650


what is Active lock explain

2374