<?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 Variables, globalmap and built job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311287#M82341</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've a job in which i use a tJava component to produce variables whom i put in globalmap.&lt;BR /&gt;&lt;BR /&gt;tJava :&lt;BR /&gt;String moisPrec = TalendDate.formatDate("yyyyMM", TalendDate.addDate(TalendDate.getCurrentDate(), -1, "MM"));&lt;BR /&gt;globalMap.put("moisPrec",moisPrec);&lt;BR /&gt;...&lt;BR /&gt;And i get it in a sql query (tmysqlinput) :&lt;BR /&gt;"SELECT * FROM mytable&lt;BR /&gt;&amp;nbsp;WHERE field = "+((String)globalMap.get("moisPrec"))+ " AND ..."&lt;BR /&gt;My trouble is when i launch the job from the studio the value of "moisPrec" is well resolved but when i launch the job from the standalone bult job (.bat), the value is "null".&lt;BR /&gt;(The snapshot below show the tJava and the tMysqlInput.)&lt;BR /&gt;I don't know where is my mistake, any help welcome.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;JCPreaux&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 17:34:22 GMT</pubDate>
    <dc:creator>jcpreaux</dc:creator>
    <dc:date>2017-01-05T17:34:22Z</dc:date>
    <item>
      <title>Variables, globalmap and built job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311287#M82341</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've a job in which i use a tJava component to produce variables whom i put in globalmap.&lt;BR /&gt;&lt;BR /&gt;tJava :&lt;BR /&gt;String moisPrec = TalendDate.formatDate("yyyyMM", TalendDate.addDate(TalendDate.getCurrentDate(), -1, "MM"));&lt;BR /&gt;globalMap.put("moisPrec",moisPrec);&lt;BR /&gt;...&lt;BR /&gt;And i get it in a sql query (tmysqlinput) :&lt;BR /&gt;"SELECT * FROM mytable&lt;BR /&gt;&amp;nbsp;WHERE field = "+((String)globalMap.get("moisPrec"))+ " AND ..."&lt;BR /&gt;My trouble is when i launch the job from the studio the value of "moisPrec" is well resolved but when i launch the job from the standalone bult job (.bat), the value is "null".&lt;BR /&gt;(The snapshot below show the tJava and the tMysqlInput.)&lt;BR /&gt;I don't know where is my mistake, any help welcome.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;JCPreaux&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 17:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311287#M82341</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2017-01-05T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, globalmap and built job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311288#M82342</link>
      <description>Hi,&lt;BR /&gt;We can't see the screenshot on our side. Could you attach it on the forum, please? That would be great.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 06 Jan 2017 08:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311288#M82342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variables, globalmap and built job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311289#M82343</link>
      <description>With the screenshot...
&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129566i7E0DEF83A95EB702/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGAD.png" alt="0683p000009MGAD.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 06 Jan 2017 15:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Variables-globalmap-and-built-job/m-p/2311289#M82343</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2017-01-06T15:53:31Z</dc:date>
    </item>
  </channel>
</rss>

