we have 20 records in source system, when we run for the 1st
time, it should load only 10 records into the target, when
you run for the second time it should load another 10 record
which are not loaded. How do we do that? Can we write a SQL
query in source qualifier to do it. This q' is asked in one
f the interviews. Please let me know if anyone knows. Thanks

Answer Posted / santosh

1. Create a mapping variable $$SESSION.
2. Link from SQ to Router t/r.
3. Create two group
a. SETMAXVARIABLE($$SESSION,$$SESSION+1) % 2 = 1
b. SETMAXVARIABLE($$SESSION,$$SESSION+1) % 2 = 0
4. Link both group to two filter and create two Sequence geneter and check the reset option.
5. Link the sequence generator to filter t/r.
6. Keep the condition as "NEXTVAL<=10" for first filter.
7. Keep the condition as "NEXTVAL>10" for second filter.
8. Link the two filter to two different target instance.

Let me know if any things wrong.

Thanks & Regards
Santosh Kumar Sarangi

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.

1338


What are the different versions of informatica?

685


what is the end to end process meaning in my project(my project is development)and functionality plz tell me

1505


How to go to the older version for a mapping?

606


What is the function of aggregator transformation?

582






can anybody send me some real time screenshots of mapping in informatica powercenter. i will be vary thankful to him. my e-mail id :- prakashkumar.kumhar@gmail.com

4318


What are the components of Informatica? And what is the purpose of each?

624


What are the validations that you can perform in oracle and in informatica ? Advance Thanks

1662


how will u take the data from clint server and next what u do in datamodeling what u will u do in staging area what u will u do next what u are doing please give the step by step by process

1699


Tell me can we override a native sql query within informatica? Where do we do it? How do we do it?

634


What is substr in informatica?

665


how we can load rejected record's at run time?(not through bad files)

1913


How do you load unique records into one target table and duplicate records into a different target table?

712


What is a rank transform?

678


What is an aggregator transformation?

617