<?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: set the global context variable in job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313058#M83950</link>
    <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I was able to set it only in the context of the job but I need it to apply for all jobs referencing it at runtime.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;In the first job, output the result(value of global variable) to a file.
&lt;BR /&gt;At the beginning of other jobs, using tContextLoad to load the value of context from the file.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 20 Jan 2010 02:54:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-20T02:54:58Z</dc:date>
    <item>
      <title>set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313057#M83949</link>
      <description>Hi,&lt;BR /&gt;Is there a way to have a job to set the global context variable?  I was able to set it only in the context of the job but I need it to apply for all jobs referencing it at runtime.&lt;BR /&gt;thanks</description>
      <pubDate>Sat, 16 Nov 2024 13:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313057#M83949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313058#M83950</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I was able to set it only in the context of the job but I need it to apply for all jobs referencing it at runtime.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;In the first job, output the result(value of global variable) to a file.
&lt;BR /&gt;At the beginning of other jobs, using tContextLoad to load the value of context from the file.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 Jan 2010 02:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313058#M83950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T02:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313059#M83951</link>
      <description>Thanks Shong. I also tried using globalMap by setting key/value in the job and tried retrieve it in another, but evidently it is not 'global' across jobs.</description>
      <pubDate>Wed, 20 Jan 2010 07:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313059#M83951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313060#M83952</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I also tried using globalMap by setting key/value in the job and tried retrieve it in another, but evidently it is not 'global' across jobs.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The globalMap variable is only avaiable within the current job, not for other jobs. As I said before, if you want to use a variable in other jobs at the runtime, you should output the value of variable to a file first, and then load the value at the begining of other jobs. eg: 
&lt;BR /&gt;tFixedFlowInpu---tFileOutputDelimited(output a new vlaue of variable to a file, for example, the result of file looks like: key;newValue) 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubJobOK 
&lt;BR /&gt; | 
&lt;BR /&gt;tRunJob_1 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubJobOK 
&lt;BR /&gt; | 
&lt;BR /&gt;tRunJob_2 
&lt;BR /&gt;in the begining of tRunJob_1 and tRunJob2, load the value of context vars 
&lt;BR /&gt;tFileInputDelimited---tContextLoad 
&lt;BR /&gt; | 
&lt;BR /&gt;other subJobs 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 Jan 2010 07:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313060#M83952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313061#M83953</link>
      <description>Thanks, it works well. Although I have more variables I need to write out. I ended up doing multiple tfixflowinput flows in order to populate the key/value columns properly. Is there a more elegant way to go about it? Some iteration of sorts?</description>
      <pubDate>Wed, 20 Jan 2010 18:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313061#M83953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T18:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: set the global context variable in job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313062#M83954</link>
      <description>you can also use the tBufferOutput components to pass values back out of subjobs</description>
      <pubDate>Thu, 21 Jan 2010 23:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/set-the-global-context-variable-in-job/m-p/2313062#M83954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-21T23:46:47Z</dc:date>
    </item>
  </channel>
</rss>

