<?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 Incremental Load for the last 60 days data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203018#M4509</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm a bit new to Talend and I have created some jobs to fetch data from APIs and posting into a Database. Now I need to modify the jobs where, when I run the job it should delete at 60 days of data and extract again and then merge with the historical data. Can anyone please help me to solve this issue.&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:41:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T02:41:33Z</dc:date>
    <item>
      <title>Incremental Load for the last 60 days data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203018#M4509</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm a bit new to Talend and I have created some jobs to fetch data from APIs and posting into a Database. Now I need to modify the jobs where, when I run the job it should delete at 60 days of data and extract again and then merge with the historical data. Can anyone please help me to solve this issue.&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203018#M4509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load for the last 60 days data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203019#M4510</link>
      <description>&lt;P&gt;Use a global variable to hold the dates that you want to prune, and reload.&amp;nbsp; Then use the global variable in your "WHERE" statement in your SQL.&amp;nbsp; For example in a tjava component:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="line number8 index7 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;Date d_from;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number9 index8 alt2"&gt; 
 &lt;FONT face="courier new,courier"&gt;Date d_to;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number13 index12 alt2"&gt; 
 &lt;FONT face="courier new,courier"&gt;String s_from_date;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;String s_to_date;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;// get date range&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;d_to =&amp;nbsp;&lt;SPAN&gt;TalendDate.getCurrentDate();&lt;/SPAN&gt;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;d_from =&amp;nbsp;TalendDate.addDate(d_to,-60,"dd");&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;// convert to strings in the format of your data.&amp;nbsp; In this&amp;nbsp;&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;// example, dates are stored as YYYYMMDD in my DB.&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;FONT face="courier new,courier"&gt;s_to_date = TalendDate.formatDate("yyyyMMdd",d_to);&lt;/FONT&gt; 
&lt;/DIV&gt; 
&lt;DIV class="line number14 index13 alt1"&gt; 
 &lt;DIV class="line number14 index13 alt1"&gt; 
  &lt;FONT face="courier new,courier"&gt;s_from_date = TalendDate.formatDate("yyyyMMdd",d_from);&lt;/FONT&gt; 
 &lt;/DIV&gt; 
 &lt;DIV class="line number14 index13 alt1"&gt;
   &amp;nbsp; 
 &lt;/DIV&gt; 
 &lt;DIV class="line number14 index13 alt1"&gt; 
  &lt;FONT face="courier new,courier"&gt;// Store in global variable&lt;/FONT&gt; 
 &lt;/DIV&gt; 
 &lt;DIV class="line number14 index13 alt1"&gt; 
  &lt;FONT face="courier new,courier"&gt;globalMap.put("myToDate", s_to_date);&lt;/FONT&gt; 
 &lt;/DIV&gt; 
 &lt;DIV class="line number14 index13 alt1"&gt; 
  &lt;DIV class="line number14 index13 alt1"&gt; 
   &lt;FONT face="courier new,courier"&gt;globalMap.put("myFromDate", s_from_date);&lt;/FONT&gt; 
  &lt;/DIV&gt; 
  &lt;DIV class="line number14 index13 alt1"&gt;
    &amp;nbsp; 
  &lt;/DIV&gt; 
  &lt;DIV class="line number14 index13 alt1"&gt; 
   &lt;FONT face="courier new,courier"&gt;// show your work&lt;/FONT&gt; 
  &lt;/DIV&gt; 
  &lt;DIV class="line number14 index13 alt1"&gt; 
   &lt;FONT face="courier new,courier" color="#FF6600"&gt;System.out.println(" To Date: " + (String)globalMap.get("myToDate"));&lt;/FONT&gt; 
  &lt;/DIV&gt; 
  &lt;DIV class="line number14 index13 alt1"&gt; 
   &lt;DIV class="line number14 index13 alt1"&gt; 
    &lt;FONT face="courier new,courier" color="#FF6600"&gt;System.out.println(" From Date: " + (String)globalMap.get("myFromDate"));&lt;/FONT&gt; 
   &lt;/DIV&gt; 
   &lt;DIV class="line number14 index13 alt1"&gt;
     &amp;nbsp; 
   &lt;/DIV&gt; 
   &lt;DIV class="line number14 index13 alt1"&gt;
     &amp;nbsp; 
   &lt;/DIV&gt; 
  &lt;/DIV&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Apr 2020 15:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203019#M4510</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-04-14T15:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load for the last 60 days data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203020#M4511</link>
      <description>&lt;P&gt;Thanks for the reply. Can you please elaborate more o doing this task. I meant the components which I have to use and how to configure them. I'm pretty new to Talend that's why&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 09:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203020#M4511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T09:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load for the last 60 days data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203021#M4512</link>
      <description>&lt;P&gt;You will be using the t(your_db)sqlRow component to prune.&amp;nbsp; To insert records you can use the t(your_db)Output or t(your_db)OutputBulkExec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend you read the on-line documentation on the database components for the database you are using.&amp;nbsp; In that documentation there is an example for each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, there is an e-book on Amazon called "Talend Open Studio Cookbook".&amp;nbsp; This is a good book that will make you productive quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Incremental-Load-for-the-last-60-days-data/m-p/2203021#M4512</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-04-15T14:22:34Z</dc:date>
    </item>
  </channel>
</rss>

