Input flatfile1 has 5 columns, faltfile2 has 3 columns(no
common column)
output should contain merged data(8 columns)
Please let me know how to achieve ??

Answers were Sorted based on User's Feedback



Input flatfile1 has 5 columns, faltfile2 has 3 columns(no common column) output should contain mer..

Answer / sukanta

As per your question two files have same no of records

take first file's 5 column to a expression
transformation,add a output column in it let say 'A'.create
a mapping variable let say 'countA' having datatype
integer.Now in port 'A' you put expression like
setcountvariable(countA).

take second file's 3 column to a expression transformation
,add a output column in it let say 'B'.create a mapping
variable let say 'countB' having datatype integer.Now in
port 'B' you put expression like setcountvariable(countB).

The above two is only meant for creating common fields with
common data in two pipeline.

Now join two pipe line in a joiner transformation upon the
condition A=B.

Now join the required 8 ports to the target.

You get your target as per your requirement.

Regards
Sukanta

Is This Answer Correct ?    12 Yes 1 No

Input flatfile1 has 5 columns, faltfile2 has 3 columns(no common column) output should contain mer..

Answer / moorthy g

You Can create dummy port for each source Qual. then connect
to Join Trans., and Join two dummy port.in Joiner
Transformation.

Is This Answer Correct ?    5 Yes 1 No

Input flatfile1 has 5 columns, faltfile2 has 3 columns(no common column) output should contain mer..

Answer / moorthy g

You Can Use Union Transformation for combine two flat files

Is This Answer Correct ?    1 Yes 14 No

Post New Answer

More Informatica Interview Questions

i have two sources both is oracle database . one is coming from USA database and another one is coming from U.k database .i am using source qualifier transformation to join this.as that time in session level source properties which path i need to give to retrieve that data. thanks bala 09619894486

2 Answers   Accenture,


we have three columns and two rows. col1 col2 col3 a b c want to change into 2 columns and 3 rows ,how? col1 a col2 b col3 c which transformation u'll use and how?

3 Answers   Cognizant,


How do schedule a workflow in Informatica thrice in a day? Like run the workflow at 3am, 5am and 4pm?

3 Answers   Logica CMG,


My questions is i create a two sessions for one mapping.but my requirement is if all number of source records are same as in target then execute first session or some rows are rejected due to t/r logic so session two was execute please clarify

1 Answers   TCS,


if i have records like these (source table) rowid name 10001 gdgfj 10002 dkdfh 10003 fjfgdhgjk 10001 gfhgdgh 10002 hjkdghkfh the target table should be like these by using expression tranformation. (Target table) rowid name 10001 gdgfj 10002 dkdfh 10003 fjfgdhgjk xx001 gfhgdgh xx002 hjkdghkfh (that means duplicated records should contain XX in there rowid)

5 Answers   iFlex,






what are the real time problems generally come up while doing or running mapping or any transformation?

2 Answers  


What did you do in source pre load stored procedure

1 Answers  


my source having 10 records but how can i load 20 records in target, i am not bother about duplicates?

10 Answers   Cap Gemini, Wipro,


can u any challenge your project?

0 Answers   HP,


What is lookup change?

0 Answers  


how can import the data from the flat files?

2 Answers  


What are the joiner caches?

3 Answers   Informatica,


Categories