if i have records like these
(source table)
rowid name
10001 gdgfj
10002 dkdfh
10003 fjfgdhgjk
10001 gfhgdgh
10002 hjkdghkfh
the target table should be like these by using expression
tranformation.
(Target table)
rowid name
10001 gdgfj
10002 dkdfh
10003 fjfgdhgjk
xx001 gfhgdgh
xx002 hjkdghkfh
(that means duplicated records should contain XX in there
rowid)
Answer Posted / krishnakanth.ch
First make sure the values are sorted by rowid and passed
to an expression transformaion.Now create a variable port
in the exp. Lets think var1 and make it empty in the
expression .
now compare rowid with var1 by
IIF(VAR1=ROWID,XX||SUBSTR(ROWID,3,3),ROWID)
When the session starts, since initially the var1 is null,
it will be replaced with first rowid. When the second
record is passed, the values will match the required format
of rowid will be passed and remember to pass the value in
the var1 to the next transformation or target.
Hope this will solve.
Please let me if anything is wrong or does not work out.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Where can we find the throughput option in informatica?
How does a rank transform differ from aggregator transform functions max and min?
In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.
How do you manage the Parameter files while migrating your data from one environment to another environment?
What does role playing dimension mean?
can we override a native sql query within informatica? How do we do it?
What are the components of workflow manager?
How can one identify whether mapping is correct or not without connecting session?
Explain joiner transformation in informatica
What is flashback table ? Advance thanks
Explain the use of aggregator cache file?
What is an Integration service in Informatica?
can we override a native sql query within informatica? Where do we do it? How do we do it?
How to partition the Session?
Have you worked with/created Parameter file