<?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: Do lookup after file read in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297072#M69679</link>
    <description>hi, 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt;
  Seems my lookup works before my input file is read. 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;you're right 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;in most cases (default behavior) , all datas on a lookup are stored in memory, waiting for data (id) coming from main flow. 
&lt;BR /&gt; 
&lt;BR /&gt;ps : I don't understand your workflow 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;have a look at different way you can manage tmap &amp;amp; flow&amp;amp; memory : 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tMap+operation" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tMap+operation&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;regard 
&lt;BR /&gt;laurent</description>
    <pubDate>Fri, 02 Oct 2015 16:04:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-02T16:04:04Z</dc:date>
    <item>
      <title>Do lookup after file read</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297071#M69678</link>
      <description>&lt;P&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;Talend 6.x&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;Fedora Linux 21&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;Sybase 12.x&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;+++++++++&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;Can a lookup be delayed to only work after data is read from an input flat file? &amp;nbsp;Seems my lookup works before my input file is read.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;I can see why this is necessary in most instances but can Talend be "scheduled" such that:&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;- a flat file is read&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;- then a lookup is executed&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;- then flat file data is passed to the lookup&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana,"&gt;thx.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297071#M69678</guid>
      <dc:creator>tale103108</dc:creator>
      <dc:date>2015-10-01T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Do lookup after file read</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297072#M69679</link>
      <description>hi, 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt;
  Seems my lookup works before my input file is read. 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;you're right 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;in most cases (default behavior) , all datas on a lookup are stored in memory, waiting for data (id) coming from main flow. 
&lt;BR /&gt; 
&lt;BR /&gt;ps : I don't understand your workflow 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;have a look at different way you can manage tmap &amp;amp; flow&amp;amp; memory : 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tMap+operation" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tMap+operation&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;regard 
&lt;BR /&gt;laurent</description>
      <pubDate>Fri, 02 Oct 2015 16:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297072#M69679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-02T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do lookup after file read</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297073#M69680</link>
      <description>Like Laurent, I don't understand why you would want to do this. But you can.&amp;nbsp;&lt;BR /&gt;1) Read the file into a tHashOutput component in subjob that is fired first.&lt;BR /&gt;2) Use a tHashInput to start the next subjob (set the Input to return the rows read into the Output)&lt;BR /&gt;3) Connect the tHashInput to your tMap which has the lookup linked&lt;BR /&gt;&lt;BR /&gt;The lookup will still fire before the main input is loaded into the tMap, but the file will have been read in the previous subjob.&amp;nbsp;</description>
      <pubDate>Fri, 02 Oct 2015 16:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297073#M69680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-02T16:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Do lookup after file read</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297074#M69681</link>
      <description>Hi rhall_2.0 
&lt;BR /&gt;Thanks for the input. &amp;nbsp;I want to do this so that (using your example) what is read from the file into the tHashOutput are context variables or global variables that can be used in the tMap lookup. &amp;nbsp;The tMap lookup is dynamic and requires the data from the same file that is being read and uses the tMap lookup later on in the processing. 
&lt;BR /&gt;To put it another way: 
&lt;BR /&gt;1.) read file A to populate lookup SQL with context or global variables that completes the SQL for the lookup 
&lt;BR /&gt;2.) then read file A again and use tMap lookup (which is executed before file A is read the second time) to get some data to pass along to the next step 
&lt;BR /&gt;3.) iterate steps 1.) and 2.) for each row in file A until EOF</description>
      <pubDate>Mon, 05 Oct 2015 20:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Do-lookup-after-file-read/m-p/2297074#M69681</guid>
      <dc:creator>tale103108</dc:creator>
      <dc:date>2015-10-05T20:45:30Z</dc:date>
    </item>
  </channel>
</rss>

