<?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 tFTP process date and autoincrement number of data(FileName) from source in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFTP-process-date-and-autoincrement-number-of-data-FileName-from/m-p/2220494#M14867</link>
    <description>&lt;P&gt;I have a scenario that I need to download and process a full file load to the database and get the latest file monthly which is the date is 18th. And if ever that I need to process a full file for Novemeber 12 I need to get the October 18th file since there's no November 18 data yet. How can I determine that using MySQL Query on tMySQLInput?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT DATE_FORMAT(MAX(log_date) ,'%b%d-*') ftp_full from TBL_NAMEwhere DAY(log_date)&amp;gt;= 16 ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. The file name on the database is like this: FNameMonthDay-(incremental number from the source).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I already determine on how can I get the MonthDay which is the abbreviated month and day is like this: FNameApr18&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But, I don't know how can I make the incremental number after -, the data is like: FNameApr18-111 the Next month it will be FnameMay18-112, but I don't know how can I do that on talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is my component screenshot.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1Nx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131967i76FA5E245AE2A9AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1Nx.png" alt="0683p000009M1Nx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Dec 2018 11:19:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-09T11:19:44Z</dc:date>
    <item>
      <title>tFTP process date and autoincrement number of data(FileName) from source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTP-process-date-and-autoincrement-number-of-data-FileName-from/m-p/2220494#M14867</link>
      <description>&lt;P&gt;I have a scenario that I need to download and process a full file load to the database and get the latest file monthly which is the date is 18th. And if ever that I need to process a full file for Novemeber 12 I need to get the October 18th file since there's no November 18 data yet. How can I determine that using MySQL Query on tMySQLInput?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT DATE_FORMAT(MAX(log_date) ,'%b%d-*') ftp_full from TBL_NAMEwhere DAY(log_date)&amp;gt;= 16 ;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. The file name on the database is like this: FNameMonthDay-(incremental number from the source).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I already determine on how can I get the MonthDay which is the abbreviated month and day is like this: FNameApr18&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But, I don't know how can I make the incremental number after -, the data is like: FNameApr18-111 the Next month it will be FnameMay18-112, but I don't know how can I do that on talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is my component screenshot.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1Nx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131967i76FA5E245AE2A9AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1Nx.png" alt="0683p000009M1Nx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Dec 2018 11:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTP-process-date-and-autoincrement-number-of-data-FileName-from/m-p/2220494#M14867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-09T11:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: tFTP process date and autoincrement number of data(FileName) from source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTP-process-date-and-autoincrement-number-of-data-FileName-from/m-p/2220495#M14868</link>
      <description>&lt;P&gt;Anyone?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Dec 2018 16:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTP-process-date-and-autoincrement-number-of-data-FileName-from/m-p/2220495#M14868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-09T16:38:52Z</dc:date>
    </item>
  </channel>
</rss>

