i have a source with 100 records.i have 2 targets.in the first
target i want to load first 50 records & in the second target
i want to load next 50(or remaining) records.

Answers were Sorted based on User's Feedback



i have a source with 100 records.i have 2 targets.in the first target i want to load first 50 reco..

Answer / mukunda

Mapping structure
=================

source-->sq-->sequence-->exp-->router-->target1
|-->target2


1)Pass the seq genarator "nextval" port to expression.
2)through expression t/r pass the variable port to router
3)In router create two groups

Group1:nexval<=50-->this group conneted to target1
Groutp2:nexval>=50-->this group conneted to target2

or


default group connected to target2

Note: This logic only that source data contain 100 records.


If you any quires please ask.


Best Regards,

Mukunda
mukunda.velluri@gmail.com

Is This Answer Correct ?    6 Yes 0 No

i have a source with 100 records.i have 2 targets.in the first target i want to load first 50 reco..

Answer / balakrushna

Hi Mukunda,
U r correct but, y u are using addional t/r Exp, without
EXP we will make this mapping scenario,

I made it actually, that is the way i am sending this
like as follow

SQ-Gen-|
|
Source--> SQL------>RTR->Target1
|
|--->Target2

In SQ-Gen:
Change the Startvalue, Endvalue and Check the CYCLE and
RESET option in the properties of SQ-Gen
popuklate the NEXTVAL from Seq_gen to RTR.

In the RTR t/r:
(as my scnario the 3 records will load tgt1 and next 3 will
load in tgt2 and next 3 will load in again TGT1 and so on..)
2 groups
one is NEXTVAL <= 3
and NEXTVAL >= 4
and populated these groups to ur target accordingly.

Thanks & Regards
Balakrushna

Is This Answer Correct ?    2 Yes 0 No

i have a source with 100 records.i have 2 targets.in the first target i want to load first 50 reco..

Answer / kamleshmishra291

After SQ take expression and add port
v_Sequene=v_Sequence+1
o_Sequence=v_Sequence
Take Router Transformation and add two groups
Group1 = o_sequence<=50
Group2=o_sequence>50
Connect Group1 and Group2 to Target1 and Target2

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Informatica Interview Questions

write sql query following table pname description lux soap sunsilk shampoo lux shampoo sunsilk soap clouseup soap closeup paste i want the output like pname description lux soap sunsilk shampoo lux soap sunsilk shampoo closeup paste closeup paste

1 Answers   TCS,


What are active transformations? Name them.

1 Answers  


Hi experts ,I have a Source of 1000 records.I have to load 100 records in first target,101 to 200 records in 2nd target, 201 to 300 records in 3rd target and again 301 to 400 in first target like that as cyclick process. How can i acheive this.

5 Answers   DELL, TCS,


What is xml source qualifier transformation in informatica?

0 Answers  


What is workflow? What are the components of workflow manager?

0 Answers  






I have name like INDIA in a column. I want display 1st line A, 2nd line N, 3rd line D, 4th line I, 5th line A in oracle data base?

1 Answers   Cognizant, HCL,


which one is better either active or passive transformation in informatica

1 Answers  


complex mapping ur project u r invlve can u explain and give real time example give me ?

0 Answers   HGS, TCS,


SOURCE 1 a 1 b 1 c 2 a 2 b 2 c TARGET 1 A B C 2 A B C In oracle & informatica level how to achieve

4 Answers   iGate,


How will you update the first four rows and insert next four rows in a mapping?

5 Answers   CTS,


How to do Integration testing in Informatica?

5 Answers   Intelligroup,


Q. Informatica workflow, it is running beyond two hours for last couple of runs, normally it completed less then 30 min., hardly 40 min, last couple of run crossing 2 hours and more in that workflow only one session. now it is aasign to you that how to idenitfy the performance issue of the sesion of production.

0 Answers  


Categories