Informatica source and targets with same fields

We have one source and 3 targets with same fields i.e empno,ename in all 3 targets and source, then the 1st row in source should go to 1st target, 2nd row in source should go to 2nd target and the 3rd row in source should go to 3rd target, 4th row again to 1st target , 5th row to target2 6th row to target 3 like this we need to transfer data how is it possible?

Questions by mailtos.ravi

Showing Answers 1 - 9 of 9 Answers

here we should use router transformation with 3 groups. suppose 3 targets are
target1: condition multiples of 3
           select * from emp where (empno,0) in (select empno,mod(rownum,3) from emp
target2: condition rows which are leaves remainder 1 when divide by 3
           select * from emp where (empno,1) in (select empno,mod(rownum,3) from emp
target3: condition for rows which are leaves remainder 2 when divide by 3
           select * from emp where (empno,2) in (select empno,mod(rownum,3) from emp

  

  Was this answer useful?  Yes

First Load Data from source To One dummy table in target with SEQ Gen T/R.
in SEQ Gen T/R Set min value 1 and max value 3 and check the reset option.
It will load the data with new column Values 1,2,3,1,2,3...........
Then use that dummy table as a source And use a router T/R in This mapping pipeline.
put Condition In router T/R, with three groups and load data in three different Trgets.
I think this should work. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions