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 / vineet katyal
take mapping variable $$count-to count the number of session runs(initial value as 1 and default value as 1)
from source take the input to expression transformation and add two variable ports
V_flag=DECODE(MOD($$COUNT,3,1'FIRST',2,'SECOND',0'THIRD')
V_count=SET VARIABLE($$COUNT,$$COUNT+1)
now router transformation
three user defined groups
v_flag=first
v_flag=second
v_flag=third
now add three groups to three targets.
after every successful session run the mapping variable value gets updated by 1 in the repository.
first time the variable value will be 1 as SET VARIABLE WILL BE PROCESSED AFTER FLAG VARIABLE PORT
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Enlist the differences between database and data warehouse.
How many types of sessions are there in informatica.please explain them?
Which files are created during the session rums by informatics server?
What is data transformation manager process?
How we can use union transformation?
Explain incremental aggregation in informatica
What is the command used to run a batch?
What is the difference between a repository server and a powerhouse?
SOURCE DATA IS DISPLAY IN THIS FORMATE IN TARGET . WHAT BUSINESS LOGIC WE CAN APPLY. source table target table ------------ ------------ c1 c2 c3 c1 c2 c3 -- -- -- -- -- -- 1 A J 1 2 B K 2 A 3 C L 3 B J 4 D M 4 C K 5 E N 5 E L F M N
Explain sessions. Explain how batches are used to combine executions?
pmscmd startworkflow -sv
Whats the difference between informatica powercenter server, repositoryserver and repository?
How to update or delete the rows in a target, which do not have key fields?
What is a shortcut and copy in Informatica and how two are different with each other?
How can we improve session performance in aggregator transformation?