<?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: Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296301#M68977</link>
    <description>&lt;P&gt;&lt;SPAN&gt;My code used CURDATE directly in the sql. By doing the Java date, we are able to fins a solution that works! thank you for your assistance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 13:30:32 GMT</pubDate>
    <dc:creator>hgromek</dc:creator>
    <dc:date>2018-05-02T13:30:32Z</dc:date>
    <item>
      <title>Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296297#M68973</link>
      <description>&lt;P&gt;HI, I have a Job that runs and grabs the last 7 days of data - emails it to me. When ran in TOS it is corrected. When I create the Bat file and run with Windows Task Scheduler it uses the last day it was ran in Talend as the Current Date and not the actual date ran.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to get the CURDATE&amp;nbsp; in the mysql import query to use the actual date the task schedule is running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296297#M68973</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2018-04-25T13:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296298#M68974</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Does your job work perfectly fine when you run your job script .bat file directly in cmd without using Windows Task Scheduler ?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296298#M68974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T08:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296299#M68975</link>
      <description>&lt;P&gt;cmd does use the actual curdate - so it works through there! How do I get that to run a scheduled basis?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 12:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296299#M68975</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2018-04-27T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296300#M68976</link>
      <description>&lt;P&gt;I don't see why CurDate in mySQL would be affected by this. Maybe you could show us your code? But this solution will work for you. In a tJava at the beginning of your job, place this code....&lt;/P&gt;
&lt;PRE&gt;globalMap.put("Date", routines.TalendDate.formatDate("yyyy-MM-dd", routines.TalendDate.getCurrentDate()));&lt;/PRE&gt;
&lt;P&gt;This will store a correctly formatted (for mySQL) Date as String in the globalMap. Then in your MySQL query you can use it in the Where Clause like this....&lt;/P&gt;
&lt;PRE&gt;"Select
Your,
Column,
Data
From Your.Table
Where yourDateColumn &amp;lt; '" +((String)globalMap.get("Date"))+"'"&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296300#M68976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-27T14:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job, Runs with CURDATE() Doesn't get current date when ran with Windows Task Schedule</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296301#M68977</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My code used CURDATE directly in the sql. By doing the Java date, we are able to fins a solution that works! thank you for your assistance!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 13:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Runs-with-CURDATE-Doesn-t-get-current-date-when-ran/m-p/2296301#M68977</guid>
      <dc:creator>hgromek</dc:creator>
      <dc:date>2018-05-02T13:30:32Z</dc:date>
    </item>
  </channel>
</rss>

