<?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 Pass value from lookup table to a variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274328#M51040</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My talend job has to transfer data from one table (stg_1) in Postgres and load it to another table (pi_value_history_5m). To load it I will have to lookup for batch id in another table (ETLBatchID). This ETLBatchID table is auto incremented in which each time i lookup to it, the batch id will add 1. For example when i run the job now, the batch ID is 1. The next time i run the job, batch ID will be 2.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is I have another subjob with the exact same process but the source is from a different table (stg_2). I need to run this job after the first job but I need it to have the &lt;STRONG&gt;same&lt;/STRONG&gt; batch ID. Is there any way that I store the batch id value from the first subjob and pass it to the second subjob so I won't have to lookup to ETLBatchID twice? (as the batch ID will be incremented in for the second job)&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 665px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8vq.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135251i53CCA74E06DC4F00/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8vq.jpg" alt="0683p000009M8vq.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:25:47 GMT</pubDate>
    <dc:creator>SR2210</dc:creator>
    <dc:date>2024-11-16T03:25:47Z</dc:date>
    <item>
      <title>Pass value from lookup table to a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274328#M51040</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My talend job has to transfer data from one table (stg_1) in Postgres and load it to another table (pi_value_history_5m). To load it I will have to lookup for batch id in another table (ETLBatchID). This ETLBatchID table is auto incremented in which each time i lookup to it, the batch id will add 1. For example when i run the job now, the batch ID is 1. The next time i run the job, batch ID will be 2.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is I have another subjob with the exact same process but the source is from a different table (stg_2). I need to run this job after the first job but I need it to have the &lt;STRONG&gt;same&lt;/STRONG&gt; batch ID. Is there any way that I store the batch id value from the first subjob and pass it to the second subjob so I won't have to lookup to ETLBatchID twice? (as the batch ID will be incremented in for the second job)&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.JPG" style="width: 665px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8vq.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135251i53CCA74E06DC4F00/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8vq.jpg" alt="0683p000009M8vq.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274328#M51040</guid>
      <dc:creator>SR2210</dc:creator>
      <dc:date>2024-11-16T03:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pass value from lookup table to a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274329#M51041</link>
      <description>If the ID is generated by the database, you need to query the associated table to get the value to be reused by the 2nd subjob</description>
      <pubDate>Wed, 29 Jan 2020 10:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274329#M51041</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-01-29T10:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pass value from lookup table to a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274330#M51042</link>
      <description>Hi ! 
&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;
&lt;BR /&gt;How do we do this ? Because i have the same problem but i'm always bloqued.
&lt;BR /&gt;NB: i'm a New in Talend</description>
      <pubDate>Thu, 27 Feb 2020 08:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-value-from-lookup-table-to-a-variable/m-p/2274330#M51042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-27T08:04:23Z</dc:date>
    </item>
  </channel>
</rss>

