<?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: Merge two text files, row by row, to create one new column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217270#M12940</link>
    <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LM0nAAG"&gt;@necrolingus&lt;/A&gt;, did you test the proposed solution?</description>
    <pubDate>Fri, 26 May 2017 21:29:24 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-05-26T21:29:24Z</dc:date>
    <item>
      <title>Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217266#M12936</link>
      <description>&lt;P&gt;Good day guys&lt;/P&gt; 
&lt;P&gt;I am having difficulty with a specific use case in Talend. I have simplified my problem a bit below:&lt;/P&gt; 
&lt;P&gt;I have two text files, one contains a list of names like so:&lt;/P&gt; 
&lt;P&gt;John&lt;/P&gt; 
&lt;P&gt;Peter&lt;/P&gt; 
&lt;P&gt;Sandra&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The second file contains a list of surnames like so:&lt;/P&gt; 
&lt;P&gt;Williams&lt;/P&gt; 
&lt;P&gt;Alkema&lt;/P&gt; 
&lt;P&gt;Smith&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The 2 files will always have the same number of records.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to join these 2 files together, line by line, like so:&lt;/P&gt; 
&lt;P&gt;John&amp;nbsp;&lt;SPAN&gt;Williams&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Peter&amp;nbsp;&lt;SPAN&gt;Alkema&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Sandra&amp;nbsp;&lt;SPAN&gt;Smith&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In Java this is rather straight forward. One can read the names into and array, and then the surnames into an array, and loop through them like so:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;for (int i = 0; i &amp;lt; name_array.length(); i++)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;System.out.println (name_array[i] + " " + surname_array[i]);&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But how can I do this in Talend? I need to write the combined string out to a file again.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217266#M12936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217267#M12937</link>
      <description>&lt;P&gt;If you simply want to join them sequentially, you could add a sequence to each input (using tMap) and then use a third tMap to join them on sequence.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217267#M12937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T18:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217268#M12938</link>
      <description>&lt;P&gt;Here a solution:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lufu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133073i880D0AA6FFE9D69E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lufu.png" alt="0683p000009Lufu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LugJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138030iD48F46828B8B0E56/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LugJ.png" alt="0683p000009LugJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap to add a sequence (you 2 with the same model):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv46.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133864i35CB20825CA08CBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv46.png" alt="0683p000009Lv46.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap to join the records:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lutc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157632iEE6B4EEB2A427C32/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lutc.png" alt="0683p000009Lutc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217268#M12938</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-23T18:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217269#M12939</link>
      <description>&lt;P&gt;Thank you to you both. You guys are too awesome! And thank you for building the job for me with screenshots, I really appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am back at work on Thursday and will try it out. I will let you guys know how it goes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217269#M12939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217270#M12940</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LM0nAAG"&gt;@necrolingus&lt;/A&gt;, did you test the proposed solution?</description>
      <pubDate>Fri, 26 May 2017 21:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217270#M12940</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-26T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217271#M12941</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I got around to testing the solution and it is working great.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I subsequently moved away from files and used a hashmap, and things are looking good!&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 18:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217271#M12941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-27T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two text files, row by row, to create one new column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217272#M12942</link>
      <description>Great!</description>
      <pubDate>Sat, 27 May 2017 18:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-two-text-files-row-by-row-to-create-one-new-column/m-p/2217272#M12942</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-27T18:37:05Z</dc:date>
    </item>
  </channel>
</rss>

