I have one source table and three target tables.
When the session runs for the first time involving the
mapping,i want that the loading should take place in 1st
Target table only.
The 2nd time the same session runs the loading should take
place in 2nd Target only only
and similarly when the session runs for the 3rd time loading
should take place in Third only.
And again when the session runs for the 4th time loading
should take place in 1st Target table.

Answer Posted / harish konda

We can achieve this by using Mapping Variable and Mod function.
Create a mapping var. and using the SetVariable() fun increment its value by 1 every time when the session runs succesfully.
And in the Router create 3 groups and give the conditions, Mod($$var,3)=0,Mod($$var,3)=1,Mod($$var,3)=2.
And map each group of Router to 3 different Targets.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to load a Dimension ? and how to load a fact table?

1044


How to do the error handling of if ur source is flatfiles?

1604


in u flatfile some of fact records are missed then u load the diminision records are not if u load diminsion records what about fact table records

1849


Briefly define a session task?

680


How can we use batches?

686






what is size of u r database?

1943


in reporting we add some new objects,how we get the count of the newly added objects to the report

1862


How can we create index after completion of load process?

687


What is a joiner transformation and why it is an active one?

653


which one is better performance wise joiner or look up

727


What are mapplets? How is it different from a Reusable Transformation?

728


i have a data in my source as a flat files what test i have to perform the next step can any body help to me

1789


In warehouses how many schemas are there?

677


How can we handle two sessions in informatica?

691


What are the databases that informatica can connect to windows?

678