<?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: Dynamic query using timestamp in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283494#M57394</link>
    <description>&lt;P&gt;If you have your start date and end date in a data source (file or table both work), you can use a tFlowToIterate to execute a subjob once for each row in your input. &amp;nbsp;The values for each row are converted to global variables which you can reference in the subjob. &amp;nbsp;Read up on tFlowToIterate here:&lt;BR /&gt;&lt;A title="tFlowToIterate" href="https://help.talend.com/#/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/#/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 15:03:43 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-05-16T15:03:43Z</dc:date>
    <item>
      <title>Dynamic query using timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283493#M57393</link>
      <description>&lt;P&gt;New to this forum and tool.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been able to generate a simple job to read from mySQL and extract it into CSV.&lt;/P&gt;
&lt;P&gt;However the source side data being huge I need to extract the same data in different date ranges like "date between &amp;lt;one_date&amp;gt; and &amp;lt;another_date&amp;gt;".&lt;/P&gt;
&lt;P&gt;I would however like to set these date ranges in a table / file which can then be picked up in a loop &amp;nbsp;to execute for a different date range every time till the end of record / file is reached. The CSV will be created in the append mode.&lt;/P&gt;
&lt;P&gt;Any pointers to a similar question asked previously would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-A&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283493#M57393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query using timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283494#M57394</link>
      <description>&lt;P&gt;If you have your start date and end date in a data source (file or table both work), you can use a tFlowToIterate to execute a subjob once for each row in your input. &amp;nbsp;The values for each row are converted to global variables which you can reference in the subjob. &amp;nbsp;Read up on tFlowToIterate here:&lt;BR /&gt;&lt;A title="tFlowToIterate" href="https://help.talend.com/#/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/#/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 15:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283494#M57394</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-05-16T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query using timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283495#M57395</link>
      <description>&lt;P&gt;Created a flow using the documentation link.&lt;/P&gt; 
&lt;P&gt;However getting the error as seen below. The date format seems to be incorrect.&lt;/P&gt; 
&lt;P&gt;The date format in the file is 'yyyy-MM-dd' that is used to set the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.png" style="width: 736px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuWD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138447i1126B0A5C939AA11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuWD.png" alt="0683p000009LuWD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 16:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283495#M57395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T16:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query using timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283496#M57396</link>
      <description>&lt;P&gt;You will likely want to format the date to a value accepted by your database. TalendDate.formatDate("yyyy-MM-dd", &amp;lt;variable goes here&amp;gt;)&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;PRE&gt;TalendDate.formatDate("yyyy-MM-dd",row6.DATE)&lt;/PRE&gt;&lt;P&gt;Drop your global variable in as the second argument and it should work better.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 20:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query-using-timestamp/m-p/2283496#M57396</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-05-16T20:02:27Z</dc:date>
    </item>
  </channel>
</rss>

