<?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: tFileInputMSPositional join data between records in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211509#M9497</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One more thing. This solution is good for large amount of data? The files that I will receive contains more than 10 million of register with several columns (one type of register has 100 columns for example). It will be a copybook data, and I will need to load this file daily.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 03:51:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-28T03:51:21Z</dc:date>
    <item>
      <title>tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211505#M9493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the tFileInputMSPositional to read a file that contains different positional records. In this file, exist some records that need to be joined with others, because one is the main and the others are like details of this one. Does anyone know how I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211505#M9493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211506#M9494</link>
      <description>&lt;P&gt;Redirect each record type to a dedicated tHashOutput.&lt;/P&gt; 
&lt;P&gt;Start a new subjob with the tHashInput associated to the detailed or children records, add a tMap with the tHashInput related to the main or parent records as the lookup.&lt;/P&gt; 
&lt;P&gt;Add an inner join in the tMap using the appropriate fields and map the desired flieds to the output flow.&lt;/P&gt; 
&lt;P&gt;This is how the job should look like:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSpos.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6SX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144488iA8048511DFABAF40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6SX.png" alt="0683p000009M6SX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Suppose you have the following content:&lt;/P&gt; 
&lt;PRE&gt;110Name 10   
210100
210101
210102
120Name 20   
220200
220201
220202&lt;/PRE&gt; 
&lt;P&gt;Record type is identified with 1rst character for all records (1 = parent, 2 = child).&lt;/P&gt; 
&lt;P&gt;2nd field is parentId (length 2) for all records.&lt;/P&gt; 
&lt;P&gt;3rd filed is parentName for parent records and childId for children records.&lt;/P&gt; 
&lt;P&gt;This is defined like this in tFileInputMSPositional component:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSpos.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8rk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154266i9A11F57999423073/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8rk.png" alt="0683p000009M8rk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The tMap component is in charge to join both parents and children records to produce an output with parentId, childId and parentName fields:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSpos.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M97h.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149457iEB0B92B5EE9A202A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M97h.png" alt="0683p000009M97h.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And the result is as expected:&lt;/P&gt; 
&lt;PRE&gt;.--------+-------+----------.
|         tLogRow_1         |
|=-------+-------+---------=|
|parentId|childId|parentName|
|=-------+-------+---------=|
|10      |100    |Name 10   |
|10      |101    |Name 10   |
|10      |102    |Name 10   |
|20      |200    |Name 20   |
|20      |201    |Name 20   |
|20      |202    |Name 20   |
'--------+-------+----------'&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Feb 2020 14:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211506#M9494</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-23T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211507#M9495</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this gone work for me. I will try your solution and give a feedback if it works.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 16:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211507#M9495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-23T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211508#M9496</link>
      <description>&lt;P&gt;Did this work?&lt;/P&gt;&lt;P&gt;If so thanks to mark your case as solved (Kudos also accepted).&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 07:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211508#M9496</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-27T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211509#M9497</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, it works.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;One more thing. This solution is good for large amount of data? The files that I will receive contains more than 10 million of register with several columns (one type of register has 100 columns for example). It will be a copybook data, and I will need to load this file daily.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 03:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211509#M9497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T03:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211510#M9498</link>
      <description>It should work but I've never tried with very huge files. If you encounter memory issues, try to change Xmsx JVM parameter for the job or replace tHashOutput/input by delimited files.</description>
      <pubDate>Fri, 28 Feb 2020 06:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211510#M9498</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-28T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputMSPositional join data between records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211511#M9499</link>
      <description>&lt;P&gt;Ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the quickly reply&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 14:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputMSPositional-join-data-between-records/m-p/2211511#M9499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T14:57:29Z</dc:date>
    </item>
  </channel>
</rss>

