<?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 [resolved] Set a SQL result as a global var in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329770#M98927</link>
    <description>Hi everyone, 
&lt;BR /&gt;I would like to get the result of a SQL query (it is a sequence number), and set it as a global variable I could use in several child jobs. 
&lt;BR /&gt;How can I do that (under TOS 3.0.x) ? 
&lt;BR /&gt;Thank you in advance. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Nicolas</description>
    <pubDate>Sat, 16 Nov 2024 13:55:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:55:37Z</dc:date>
    <item>
      <title>[resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329770#M98927</link>
      <description>Hi everyone, 
&lt;BR /&gt;I would like to get the result of a SQL query (it is a sequence number), and set it as a global variable I could use in several child jobs. 
&lt;BR /&gt;How can I do that (under TOS 3.0.x) ? 
&lt;BR /&gt;Thank you in advance. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Sat, 16 Nov 2024 13:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329770#M98927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329771#M98928</link>
      <description>Hi,&lt;BR /&gt;I do this task by using a tContextLoad componet on exit on tMap component.</description>
      <pubDate>Mon, 08 Jun 2009 15:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329771#M98928</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-06-08T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329772#M98929</link>
      <description>Hello Nicolas 
&lt;BR /&gt;Do you want to pass a parameter dynamically to child job or pass a fixed one? 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I would like to get the result of a SQL query (it is a sequence number)&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Please give an example to explain this sentence 
&lt;BR /&gt;Best regardsg 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 08 Jun 2009 15:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329772#M98929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329773#M98930</link>
      <description>Hi, 
&lt;BR /&gt;In fact, I want to generate one unique number number each time I launch a job. 
&lt;BR /&gt;It is an occurence generated by a sequence : etl_seq_int_occurence_id.NEXTVAL. 
&lt;BR /&gt;It's useful for some logs. 
&lt;BR /&gt;I would like to keep this value in a global (or context) var. 
&lt;BR /&gt;I will pass this variable in context parameter to some child jobs. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt; 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Mon, 08 Jun 2009 15:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329773#M98930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329774#M98931</link>
      <description>Hello 
&lt;BR /&gt;In father job, generate the unique number and set it to a global or context var. on tRunjob, pass the value of global or context var to a context var defined in child job. 
&lt;BR /&gt;In child job, define a context var which will be used to receive value on father job. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 09 Jun 2009 03:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329774#M98931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T03:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329775#M98932</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt;However, I don't know how to pass my SQL result to a global or context var. 
&lt;BR /&gt;I tried to link an "tOracleInput" to a "tSetGlobalVar" component, but I haven't found how to set the input data as a var, and I haven't found any global var to take my SQL query result. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Tue, 09 Jun 2009 09:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329775#M98932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T09:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329776#M98933</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;However, I don't know how to pass my SQL result to a global or context var.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;tOracleInput--&amp;gt;tJavaRow(globalMap.put("sequence", input_row.colName)
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 09 Jun 2009 09:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329776#M98933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T09:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Set a SQL result as a global var</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329777#M98934</link>
      <description>Hi again, 
&lt;BR /&gt;Ok, I'm going to try it. 
&lt;BR /&gt;Thank you much Shong. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Tue, 09 Jun 2009 09:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Set-a-SQL-result-as-a-global-var/m-p/2329777#M98934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T09:46:31Z</dc:date>
    </item>
  </channel>
</rss>

