<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Combine 2 input files into single output WITHOUT lookup? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Combine-2-input-files-into-single-output-WITHOUT-lookup/m-p/2309826#M81011</link>
    <description>Hi&amp;nbsp;
&lt;BR /&gt;From given example, I think you just need to do an inner join based on RowNum column, and generate the output to have all of columns from file1 and file2?
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 01 Sep 2016 04:12:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-01T04:12:01Z</dc:date>
    <item>
      <title>Combine 2 input files into single output WITHOUT lookup?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-2-input-files-into-single-output-WITHOUT-lookup/m-p/2309825#M81010</link>
      <description>What is the best practice to combine two 
&lt;U&gt;&lt;B&gt;differently&lt;/B&gt;&lt;/U&gt; structured input files into a 
&lt;B&gt;single output&lt;/B&gt; file when there is no relationship between the two files? 
&lt;BR /&gt;The 
&lt;B&gt;tMap &lt;/B&gt;component can't have multiple input files, unless you are doing a lookup, which I am not. 
&lt;BR /&gt;The 
&lt;B&gt;tUnite &lt;/B&gt;component must have the same schema for both input files, which is not the case and I don't want the data to be split to multiple rows. 
&lt;BR /&gt;When I add a RowNum column to both files and use 
&lt;B&gt;tJoin &lt;/B&gt;component with Include lookup columns in output column mapping for Col4, Col5, Col6 and Key Definition RowNum Lookup key attribute row2.RowNum I get the desired results. 
&lt;BR /&gt; 
&lt;B&gt;&lt;FONT color="#ff3333"&gt;&lt;BR /&gt;Is there a better way to do this?&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;My job:&lt;/B&gt; 
&lt;BR /&gt;tFile 
&lt;B&gt;Input&lt;/B&gt;Delimited_ 
&lt;B&gt;1&lt;/B&gt;&amp;nbsp; 
&lt;B&gt;tJoin_1&lt;/B&gt; tFile 
&lt;B&gt;Output&lt;/B&gt;Delimited_ 
&lt;B&gt;1&lt;/B&gt; 
&lt;BR /&gt;tFile 
&lt;B&gt;Input&lt;/B&gt;Delimited_ 
&lt;B&gt;2&lt;/B&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;File1:&lt;/B&gt; 
&lt;BR /&gt;RowNum,col1,col2,col3 
&lt;BR /&gt; 
&lt;B&gt;1,&lt;/B&gt;aaa,dog,blue 
&lt;BR /&gt; 
&lt;B&gt;2,&lt;/B&gt;bbb,cat,green 
&lt;BR /&gt; 
&lt;B&gt;3,&lt;/B&gt;ccc,bird,red 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;File2:&lt;/B&gt; 
&lt;BR /&gt;RowNum,col4,col5,col6 
&lt;BR /&gt; 
&lt;B&gt;1,&lt;/B&gt;123,456,789 
&lt;BR /&gt; 
&lt;B&gt;2,&lt;/B&gt;999,888,777 
&lt;BR /&gt; 
&lt;B&gt;3,&lt;/B&gt;666,555,444 
&lt;BR /&gt; 
&lt;B&gt;Desired Output:&lt;/B&gt; 
&lt;BR /&gt;RowNum;Col1;Col2; 
&lt;B&gt;Col3;Col4;Col5;Col6&lt;/B&gt; 
&lt;BR /&gt;1;aaa;dog;blue; 
&lt;B&gt;123;456;789&lt;/B&gt; 
&lt;BR /&gt;2;bbb;cat;green 
&lt;B&gt;;999;888;777&lt;/B&gt; 
&lt;BR /&gt;3;ccc;bird;red; 
&lt;B&gt;666;555;444&lt;/B&gt;</description>
      <pubDate>Thu, 01 Sep 2016 00:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-2-input-files-into-single-output-WITHOUT-lookup/m-p/2309825#M81010</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2016-09-01T00:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 input files into single output WITHOUT lookup?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-2-input-files-into-single-output-WITHOUT-lookup/m-p/2309826#M81011</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;From given example, I think you just need to do an inner join based on RowNum column, and generate the output to have all of columns from file1 and file2?
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 01 Sep 2016 04:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-2-input-files-into-single-output-WITHOUT-lookup/m-p/2309826#M81011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T04:12:01Z</dc:date>
    </item>
  </channel>
</rss>

