<?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: [resolved] Changing context variable values for the same job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335875#M104388</link>
    <description>There's a checkbox on tRunJob that allows you to "transmit" context</description>
    <pubDate>Wed, 25 May 2016 07:25:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-25T07:25:43Z</dc:date>
    <item>
      <title>[resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335868#M104381</link>
      <description>Hi,
&lt;BR /&gt;I have a set of jobs that uses a single context variable. This context variable is defined in the 'Contexts' in the Repository tree and is inturn used by every job.
&lt;BR /&gt;This context variable takes in the values of 0 or 1. As of now I have set it to 1.
&lt;BR /&gt;I want to run the job as a .sh file and pass 0 or 1 to the context variable. How can I accomplish this? My idea was to use the jobs to the work of both '1' and '0' without having to recreate the jobs separately.
&lt;BR /&gt;Also, I want the jobs to run with context variable = 1 at a specified time and the jobs to run with context variable = 0 at Another specified time
&lt;BR /&gt;Note : I am using TOS
&lt;BR /&gt;Any thoughts on this would be greatly appreciated
&lt;BR /&gt;Thanks
&lt;BR /&gt;Rathi</description>
      <pubDate>Mon, 23 May 2016 10:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335868#M104381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335869#M104382</link>
      <description>You can pass values at runtime by modifying the launch script, for example: - 
&lt;BR /&gt; 
&lt;B&gt;&lt;FONT color="#dd1144"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Menlo, Monaco, 'Courier New', monospace"&gt;--context_param myString="modified value"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;BR /&gt;This is not the most elegant approach, depending on what your trying to achieve. 
&lt;BR /&gt;You can run your Jobs within different "contexts" and also take other approaches to 'externalise' your context values. 
&lt;BR /&gt;However, to answer your question, this is the solution.</description>
      <pubDate>Mon, 23 May 2016 10:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335869#M104382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335870#M104383</link>
      <description>Thank you for the quick response.&lt;BR /&gt;I have complex stored procedures to which I have to pass these context variables. The procedures have been written to work for both 1 and 0. So I just write in talend "select * from myproc("+context.variable+")". Through this I can use a single job that uses a single procedure and hence, work for both 1 and 0.&amp;nbsp;&lt;BR /&gt;Will you please help me understand how do I &amp;nbsp;use different contexts for the select statement I have mentioned or maybe how to externalize it?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
      <pubDate>Mon, 23 May 2016 10:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335870#M104383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335871#M104384</link>
      <description>It sounds like this may me the correct approach for what you're trying to achieve.
&lt;BR /&gt;For more information on Context externalisation, I'd read about implicit loading and the tLoadContext component.</description>
      <pubDate>Mon, 23 May 2016 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335871#M104384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335872#M104385</link>
      <description>Thank you.&lt;BR /&gt;As per my understanding, context externalization can be done when I run the job from talend, but, is it possible use it when I export the job and run it as a .sh file ?&lt;BR /&gt;&amp;nbsp;Also, my requirement is to also specify the time at which it should run daily. The job should run twice during the day with context.variable = 1 and run once in the night with context.variable = 0.&lt;BR /&gt;Any thoughts on this?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
      <pubDate>Mon, 23 May 2016 12:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335872#M104385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335873#M104386</link>
      <description>That is not correct. You can externalise when you export/build your Job. 
&lt;BR /&gt;To run your Job at specified times, you need a Job Scheduler. If you're using Open Studio, you can use cron on Unix/Linux or Windows scheduler. You can pass the context value (on cron, at least) directly from the scheduler as the last parameter in your .sh fils is "$@"</description>
      <pubDate>Mon, 23 May 2016 15:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335873#M104386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-23T15:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335874#M104387</link>
      <description>Hi,
&lt;BR /&gt;I was trying to use tloadcontext in my requirement.
&lt;BR /&gt;Like I said earlier, I have a set of jobs inked to each other. With tloadcontext I can pass the context value to the first job. How do I propagate the context value to the next set of jobs.
&lt;BR /&gt;tloadcontext --&amp;gt; job1 --&amp;gt; job2 --&amp;gt; job3 -- etc
&lt;BR /&gt;Note : job1, job2 etc are all individual jobs
&lt;BR /&gt;Thanks
&lt;BR /&gt;Rathi</description>
      <pubDate>Tue, 24 May 2016 08:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335874#M104387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335875#M104388</link>
      <description>There's a checkbox on tRunJob that allows you to "transmit" context</description>
      <pubDate>Wed, 25 May 2016 07:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335875#M104388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T07:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335876#M104389</link>
      <description>That's great tal00000. Thank you.&lt;BR /&gt;But I am not using trunjob, I have just linked all jobs sequentially under a single job. Can I get it to work here?&lt;BR /&gt;Thanks&lt;BR /&gt;Rathi</description>
      <pubDate>Wed, 25 May 2016 07:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335876#M104389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335877#M104390</link>
      <description>Then you are using tRunJob.&lt;BR /&gt;If one Job calls another, then it is using the tRunJob component.</description>
      <pubDate>Thu, 26 May 2016 07:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335877#M104390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T07:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335878#M104391</link>
      <description>Hi , 
&lt;BR /&gt;Please find below the job screenshot, I have linked one job to another. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME8R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148337i3F9A7E64D1DEE93A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME8R.png" alt="0683p000009ME8R.png" /&gt;&lt;/span&gt;Regards 
&lt;BR /&gt;Rathi</description>
      <pubDate>Thu, 26 May 2016 07:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335878#M104391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T07:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335879#M104392</link>
      <description>Exactly. 
&lt;BR /&gt;Each of these is an instance tRunJob. 
&lt;BR /&gt;Click on one and then look at the Component tab. 
&lt;BR /&gt;You will see that it is an instance of tRunJob. 
&lt;BR /&gt;You will also see the checkbox that says "Transmit whole context".</description>
      <pubDate>Thu, 26 May 2016 08:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335879#M104392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T08:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Changing context variable values for the same job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335880#M104393</link>
      <description>Got that !! Thank you tal00000..&lt;BR /&gt;Regards&lt;BR /&gt;Rathi</description>
      <pubDate>Thu, 26 May 2016 08:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Changing-context-variable-values-for-the-same-job/m-p/2335880#M104393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T08:14:44Z</dc:date>
    </item>
  </channel>
</rss>

