Source and Target are flat files, Source table is as below
ID,NAME
1,X
1,X
2,Y
2,Y
On Target flat file i want the data to be loaded as
mentioned below
ID,NAME,REPEAT
1,X,2
1,X,2
2,Y,2
2,Y,2
How to achieve this, Can i get a map structure
Answer Posted / babu
Hi Frnds,
by using aggregator we can achieve this,the mapping is have
two pipelines which is shown like bellow.
Mapping:
=======
SRC==>SQ==>EXP==>AGGR==>JNR==>TRG
|| ||
EXP1=========>
AGGR: GROUP BY ALL PORTS AND OUPUT PORT IS REPEAT=COUNT(ID)
JNR:JOIN THE TWO PIPELINES BY USING ID FROM AGGR AND EXP1 .
AGGR:
ID NAME REPEAT(OUTPUT PORT)
1 X 2
2 Y 2
JNR:ID=ID
OUTPUT OF THE JOINER IS
ID NAME REPEAT
1 X 2
1 X 2
2 Y 2
2 Y 2
TRG:
ID NAME REPEAT
1 X 2
1 X 2
2 Y 2
2 Y 2
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How might you approve all mappings in the archive all the while?
Reusable transformation and shortcut differences
How might one distinguish in the case of mapping is right or not without associating session?
What are the limitations of joiner transformation?
Under which circumstances, informatica server creates reject files?
Mention a few design and development best practices for informatica?
What are the tasks that source qualifier perform?
What is the cumulative sum and moving sum?
Differentiate between sessions and batches?
What are the different ways to implement parallel processing in informatica?
I have a mapping loading 100 records and it failed on 20th record. how to recover it without changing anything.(in prod where we don't have any access).. (the session should should start from 21 record)
Can some one explain me about Telecommunications(wireless) project in Informatica? Thanks in advance
How to handle decimal places while importing a flatfile into informatica?
How to create or import flat file definition in to the warehouse designer?
What does reusable transformation mean?