Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Create a mapping which contains 2 target tables. When the
session runs for the first time it shud load Target table 1
and when it runs for second time it shud load Target
table 2.

Answers were Sorted based on User's Feedback



Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / babu

Hi,
By using mapping variable,we can achieve this logic.


i.e SRC==>TRANS==>FLT1 ==>TRG1
|==>FLT2==>TRG2


in FLT1 place a condition mod(MVAR,2)=1,in FLT2 place a
condition as mod(MVAR,2)=0

MVAR is nothing but a mapping variable.
I think all are knows how to create,declare and call the
mapping variable.
please concern me if any doughts.

Is This Answer Correct ?    9 Yes 4 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / babu

Hi Zak,
By default the value of MVAR is 0.The value is
increment by at run time only.
i.e is SETVARIABLE($$MVAR,($$MVAR+1))
Let me know if u have any doughts

mail:
dwarak.vbr@gmail.com
+91-8861145051

Is This Answer Correct ?    3 Yes 0 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / zak

Hi Babu,

Your logic works fine if you update the MVAR mapping
variable manually before you run the session. Is there a
way to update the MVAR within the mapping??
Thanks for your reply:)

Is This Answer Correct ?    0 Yes 0 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / hai

there is an option to set the value as zero ,with out set
the value manually .

Is This Answer Correct ?    0 Yes 0 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / triveni munnangi

source_>sq->expression->router->tg1
->tg2
expression:v_count decimal 10 0(variableport) setvariable($$cnt,1)
o_count decimal 10 0 (outputport) $$cnt
router:groups
t1=o_count=0
0_count=1
$$cnt variable integer 10 0 max false

Is This Answer Correct ?    0 Yes 0 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / perumal

Source -> sq -> sequence Generator -> exp trans -> router
trans -> tgt1/tgt2

create variable nxt_val with next value return from seq gen
and in router give rule as mod(nxt_val,2)<>0 to load tgt1
(since first run value will be 1) and mod(nxt_val,2)=0 to
load tgt2.

Is This Answer Correct ?    2 Yes 2 No

Create a mapping which contains 2 target tables. When the session runs for the first time it shud ..

Answer / subhajit

Alternative to mapping variable:

Use sequence generator, mod on that and then finally router.

Thanks

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Informatica Interview Questions

i have f;latfile source. i have two targets t1,t2. i want to load the odd no.of records into t1 and even no.of recordds into t2. what is the procedure and whar t/r's are involved and what is the mapping flow

4 Answers   Wipro,


How can you recognise whether or not the newly added rows in the source r gets insert in the target ?

2 Answers  


If there are 3 workflows are running and if 1st workflow fails then how could we start 2nd workflow or if 2nd workflow fails how could we start 3rd workflow?

4 Answers   TCS,


How many cubes create from a single model?

1 Answers  


Suppose we do not group by on any ports of the aggregator what will be the output?

0 Answers  


What are the types of maping in Getting Started Wizard?

1 Answers  


how to get the data from the client machine and how to get server location data to client loction can any body explain to me

1 Answers   TCS,


Explain the different kinds of facts.

0 Answers  


My i/p is like below 1,2,3,4,5,6,7,8,9,10....100 I want that to be populated in two o/p as below o/p-1: 10,20,30,40,50,60,70,90... o/p-2: 11,21,31,41,51,61,71,81,91.... How to do it in ingotmatica...

2 Answers   Accenture,


What is informatica?

0 Answers  


How can you validate all mappings in the repository simultaneously?

0 Answers  


Define update strategy?

0 Answers  


Categories