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 ??

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of caches in lookup?

572


What is the commit type if you have a transaction control transformation in the mapping?

654


what are the Methods For Creating Reusable Transformations?

649


Why do you use Mapping Parameter and mapping variable?

1288


differences between service based and product based?

1565






how many types of dimensions are available in informatica?

563


what is the complex transformation you used in informatica

2192


How to convert a row into column and a column into rows? Name all DTM threads. What all threads stop when we issue STOP or ABORT? How to pass the value of a data(variable kind of) from one session ( generated in mapping) to another session in the same workflow... What are the tyoes of partitioning you know and how to apply them in real time ... Can partitioning be applied to expression transformation and how

1135


Whats the difference between informatica powercenter server, repositoryserver and repository?

677


Please let me know how to make encryption and decryption with example?

1471


How will the document be delivered to me?

619


I need the output file in the below format using Informatica. __0946684800__ 6 1 3 1 5 1 6 1 10 1 6 10 Pos State Time Split AgentID Reason Spaces Code in Code Spare state ______ ___ _____ ______ __________ ______ 1234 14 0 4321 3103 abcd 4321 15 5 123452 3150 Can someone help please?? We need the data in space-delimited, fixed ASCII format .

1473


What are mapplets?

826


How to generate sequence numbers using expression transformation?

645


Which is the t/r that builts only single cache memory?

712