<?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: Get Files from FTP server to Local Machine in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292919#M65945</link>
    <description>Hello Sabrina,
&lt;BR /&gt;I am unable to attach snapshots ? not getting reason of attachment failure???
&lt;BR /&gt;My log folder contains Files like 20130101_log_OK.txt it is in YYYYMMDD format.
&lt;BR /&gt;Assume today is 1st of Feb 2013( 20130201) then my log folder should now have files prior to 1st jan 2013 (20130101)
&lt;BR /&gt;Regards
&lt;BR /&gt;RSH</description>
    <pubDate>Tue, 27 Aug 2013 08:51:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-27T08:51:50Z</dc:date>
    <item>
      <title>Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292909#M65935</link>
      <description>Dear all, 
&lt;BR /&gt;I got struck in one issue which is as follows: 
&lt;BR /&gt;Requirement: 
&lt;BR /&gt;1) Get text file from FTP server to Local Machine, if we get files then rename this file by yyyyMMdd+name of the file+OK.text 
&lt;BR /&gt;2) We need to delete those text file from local folder which are 1 month OLD. 
&lt;BR /&gt;Development: 
&lt;BR /&gt;1) I have used Tftpget component to get files from FTP server to Local Machine, but i am unable to RENAME it LIKE yyyyMMdd+name of the file+OK.text becase i am not able to provide path of this file(Local Machine path).If i give remote directory path in tftprename component then it work but it rename in FTP server which i dont want.i want to make change of name in LOCAL machine only. 
&lt;BR /&gt; 
&lt;BR /&gt;2) Not yet done. 
&lt;BR /&gt; 
&lt;B&gt;&lt;U&gt; Can you please help me with step by step process ....pleaseeee... &lt;/U&gt;&lt;/B&gt; 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Mon, 26 Aug 2013 08:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292909#M65935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-26T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292910#M65936</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Get text file from FTP server to Local Machine, if we get files then rename this file by yyyyMMdd name of the file OK.text&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Actually, there is no component to just rename a file on your local machine. You can either use tFileCopy and check "Remove source file" or use tSystem to call a system command or tJava with your own code.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;We need to delete those text file from local folder which are 1 month OLD.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;If the source file name has yyyyMMdd name(such as: 20130725xxOK.txt), you can use a specified file mask in
&lt;A href="https://help.talend.com/search/all?query=tFileList&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileList&lt;/A&gt; to get the 1 month OLD source file and then delete them by 
&lt;A href="https://help.talend.com/search/all?query=tFileDelete&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileDelete&lt;/A&gt;.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 26 Aug 2013 09:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292910#M65936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-26T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292911#M65937</link>
      <description>Hello Sabrina ,&lt;BR /&gt;Can you please guide me what code to write in tsystem to change file name?&lt;BR /&gt;My file path is  "D:/Talend/Project/Finacle/_Logs/Log.txt"&lt;BR /&gt;I want to rename this file (Log.txt) to "yyyyMMDD+Log+OK.txt"&lt;BR /&gt;Or is there any easy way to do it?&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;RSH</description>
      <pubDate>Mon, 26 Aug 2013 12:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292911#M65937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-26T12:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292912#M65938</link>
      <description>Hello Sabrina &amp;amp; Team,
&lt;BR /&gt;Good Morning !!!
&lt;BR /&gt;I am trying to change file name by using tsystem component with following command:
&lt;BR /&gt;Files path is : "D:/Talend/Project/Finacle/_Logs/Log.txt" Reguired name of file is : Changed_Log_File.txt
&lt;BR /&gt;in Tsystem i am using folowing command : 
&lt;BR /&gt;"cmd /c REN D:/Talend/Project/Finacle/_Logs/Log.txt Changed_Log_File.txt
&lt;BR /&gt;I am getting an error of incorrect syntax. Can you please guide me how should i RENAME my old file with new name.
&lt;BR /&gt;Thanks in Advance.
&lt;BR /&gt;Regards
&lt;BR /&gt;RSH.</description>
      <pubDate>Tue, 27 Aug 2013 05:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292912#M65938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T05:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292913#M65939</link>
      <description>Hi, 
&lt;BR /&gt;You can use use tFileCopy and check "Remove source file"(if you don't want the source file). 
&lt;BR /&gt;To make it clear, I have designed a demo job: tfilelist--&amp;gt;iterate--&amp;gt;tfilecopy 
&lt;BR /&gt;See my screenshot for details 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAqt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149311i8983F015F977AF3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAqt.png" alt="0683p000009MAqt.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAyx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154519i5DECE7D52F32875A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAyx.png" alt="0683p000009MAyx.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 Aug 2013 05:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292913#M65939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T05:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292914#M65940</link>
      <description>Hello Sabrina, 
&lt;BR /&gt;Thanks for your guidance... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I made the job just like you but getting errors like: 
&lt;BR /&gt;Exception in component tFileCopy_1 
&lt;BR /&gt;java.lang.RuntimeException: The source File "/home/FTP_Server/LOGS_Folder/LOG.txt" does not exist or is not a file. 
&lt;BR /&gt;My requirement is to Get file from FTP server to Local Machine and is it is successful then RENAME this file, 
&lt;BR /&gt;so is 
&lt;U&gt;&lt;B&gt; tfilecopy component Copy files from FTP server to Local machine?&lt;/B&gt;&lt;/U&gt; 
&lt;B&gt;&lt;/B&gt; 
&lt;BR /&gt;Please advice me because i am running out of time for deployment. 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 27 Aug 2013 07:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292914#M65940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T07:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292915#M65941</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Exception in component tFileCopy_1&lt;BR /&gt;java.lang.RuntimeException: The source File "/home/FTP_Server/LOGS_Folder/LOG.txt" does not exist or is not a file. My requirement is to Get file from FTP server to Local Machine and is it is successful then RENAME this file,&lt;BR /&gt;so is tfilecopy component Copy files from FTP server to Local machine?&lt;BR /&gt;Please advice me because i am running out of time for deployment.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;The tFileCopy component cannot copy a file from FTP to Local machine. You should get the file from FTP to local machine firstly and then use tFileCopy to rename them.(If you don't want to use tFTPrename to rename files in FTP).
&lt;BR /&gt;That means: tFTPConnection--&amp;gt;onSubjobOK--&amp;gt;tFTPget--&amp;gt;onSubjobOk(onComponentOk)--&amp;gt;tfilelist--&amp;gt;iterate--&amp;gt;tfilecopy.
&lt;BR /&gt;In tFTPget, the files has been got from FTP into Local Machine where you can use tfilecopy to copy and rename.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 27 Aug 2013 07:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292915#M65941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T07:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292916#M65942</link>
      <description>Hello Sabrina, 
&lt;BR /&gt;I tried to work in my job as per your guidance and i got SUCCESSFUL Run..\ 
&lt;BR /&gt; 
&lt;B&gt;&lt;U&gt;Thanks you Sabrina &lt;/U&gt;&lt;/B&gt;.. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Some Snapshots i am attaching for all other developers... 
&lt;BR /&gt;Now i just remain with DELETE those files from Log folder which are 1 month OLD. 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 27 Aug 2013 08:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292916#M65942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T08:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292917#M65943</link>
      <description>Hi, 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Now i just remain with DELETE those files from Log folder which are 1 month OLD.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;What the file name looks like?yyyyMMDD+Log+OK.txt?
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;If the source file name has yyyyMMdd+name(such as: 20130725xxOK.txt), you can use a specified file mask in tFileList to get the 1 month OLD source file and then delete them by tFileDelete.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Is it working for you?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 27 Aug 2013 08:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292917#M65943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292918#M65944</link>
      <description>Hello Sabrina, 
&lt;BR /&gt;I tried to work in my job as per your guidance and i got SUCCESSFUL Run..\ 
&lt;BR /&gt; 
&lt;B&gt;&lt;U&gt;Thanks you Sabrina &lt;/U&gt;&lt;/B&gt; .. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Some Snapshots i am attaching for all other developers... 
&lt;BR /&gt;Now i just remain with DELETE those files from Log folder which are 1 month OLD. 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 27 Aug 2013 08:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292918#M65944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292919#M65945</link>
      <description>Hello Sabrina,
&lt;BR /&gt;I am unable to attach snapshots ? not getting reason of attachment failure???
&lt;BR /&gt;My log folder contains Files like 20130101_log_OK.txt it is in YYYYMMDD format.
&lt;BR /&gt;Assume today is 1st of Feb 2013( 20130201) then my log folder should now have files prior to 1st jan 2013 (20130101)
&lt;BR /&gt;Regards
&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 27 Aug 2013 08:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292919#M65945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T08:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292920#M65946</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I am unable to attach snapshots ? not getting reason of attachment failure???&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;For registered users, clicking on "post reply" (not through the quick post") and pay close attention on Limitation: 20 images per post, each image must be less then 1024x768 pixels and 200 KB, .png is preferred. 
&lt;BR /&gt;Are you looking for that? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAzB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146448i187CF30EFA379ED8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAzB.png" alt="0683p000009MAzB.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAhh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157985i8AF8D78F213554F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAhh.png" alt="0683p000009MAhh.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292920#M65946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292921#M65947</link>
      <description>Hello Sabrina, 
&lt;BR /&gt;Actually process is i have an folder called LOG_Folder in which every day 1 text file will be added by talend Job scheduler. 
&lt;BR /&gt;Now requirement is i have to DELETE text file which will be greater than one month OLD. 
&lt;BR /&gt;Example: 
&lt;BR /&gt;Today is 27/08/2013 so today my job will be run and i will have 1 log text file in log folder, but after adding this file i have to delete those text files which are old more than 1 months i.e. Files Before 27/07/2013. 
&lt;BR /&gt;Please guide me or provide me steps(snapshots) so i can proceed further.. 
&lt;BR /&gt;Thanks &amp;amp; Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Tue, 27 Aug 2013 10:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292921#M65947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T10:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292922#M65948</link>
      <description>Hi, 
&lt;BR /&gt;Sorry for delay! 
&lt;BR /&gt;You can design a dynamic file mask in tFileList to get the last month logs and then delete them together(I mean files belong to July but not Files Before27/07/2013, such as,31 files will be deleted which include July in their file name). 
&lt;BR /&gt;The job work flow should be:tjava--&amp;gt;onSubjobOk--&amp;gt;tFileList--&amp;gt;tFileDelete 
&lt;BR /&gt;The code part: 
&lt;BR /&gt; 
&lt;PRE&gt;         &lt;BR /&gt;java.util.Calendar calendar = java.util.Calendar.getInstance(java.util.TimeZone.getDefault(),java.util.Locale.ENGLISH);&lt;BR /&gt;        calendar.add(calendar.MONTH, -1);&lt;BR /&gt;        java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyyMM"); //$NON-NLS-1$&lt;BR /&gt;        dateFormat.format(calendar.getTime());  &lt;BR /&gt;        &lt;BR /&gt;        globalMap.put("key", dateFormat.format(calendar.getTime()));   &lt;BR /&gt;        System.out.println(dateFormat.format(calendar.getTime()));&lt;/PRE&gt; 
&lt;BR /&gt;See my screenshots for details 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAqB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129397i1D456DE68C2733DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAqB.png" alt="0683p000009MAqB.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAzG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128970iC3091B014CE2591B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAzG.png" alt="0683p000009MAzG.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAqF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140624iFB02F19B26A531B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAqF.png" alt="0683p000009MAqF.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 28 Aug 2013 08:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292922#M65948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292923#M65949</link>
      <description>Hello Sabrina, 
&lt;BR /&gt;Thankful for your efforts to help me. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Just like to inform you, i do have 7 text files in my LOG folder 
&lt;BR /&gt;1) 20130727_log.txt 
&lt;BR /&gt;2) 20130728_log.txt 
&lt;BR /&gt;3) 20130729_log.txt 
&lt;BR /&gt;4) 20130730_log.txt 
&lt;BR /&gt;5) 20130731_log.txt 
&lt;BR /&gt;6) 20130826_log.txt 
&lt;BR /&gt;7) 20130827_log.txt 
&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; 20130828_log.txt 
&lt;BR /&gt;Our today date will be generated by Talenddate.getdate(yyyymmdd) and it will be stored in context. 
&lt;BR /&gt;(Suppose today is 20130828) 
&lt;BR /&gt;So if i run the job it should delete only 2 files like 
&lt;BR /&gt;1) 20130727_log.txt 
&lt;BR /&gt;2) 20130728_log.txt 
&lt;BR /&gt;because ( Systemdate - 1 month ) = 20130728 , 
&lt;BR /&gt;but presently when i Run our job it DELETE following files: 
&lt;BR /&gt;1) 20130727_log.txt 
&lt;BR /&gt;2) 20130728_log.txt 
&lt;BR /&gt;3) 20130729_log.txt 
&lt;BR /&gt;4) 20130730_log.txt 
&lt;BR /&gt;5) 20130731_log.txt WHICH IS WRONG... 
&lt;BR /&gt;Please suggest what changes need to be done in CODE? 
&lt;BR /&gt;Can you please tell me what is this code: ((String)globalMap.get("key")) ?? i dint got by "ctrl+ Space" 
&lt;BR /&gt;Thanks in Advance... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;RSH</description>
      <pubDate>Wed, 28 Aug 2013 10:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292923#M65949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T10:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292924#M65950</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Can you please tell me what is this code: ((String)globalMap.get("key")) ?? i dint got by "ctrl+ Space"&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It is "Global variables". From the code in java, you can get a date"201307". 
&lt;BR /&gt; I put the date into a "Global variables"((String)globalMap.put("key",date)) so that tFilelist can use "((String)globalMap.get("key",date)))" in file mask. 
&lt;BR /&gt;NOTE:"key" is just the name of Global variables and it is changeable. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;So if i run the job it should delete only 2 files like&lt;BR /&gt;1) 20130727_log.txt&lt;BR /&gt;2) 20130728_log.txt&lt;BR /&gt;because ( Systemdate - 1 month ) = 20130728 ,&lt;BR /&gt;but presently when i Run our job it DELETE following files:&lt;BR /&gt;1) 20130727_log.txt&lt;BR /&gt;2) 20130728_log.txt&lt;BR /&gt;3) 20130729_log.txt&lt;BR /&gt;4) 20130730_log.txt&lt;BR /&gt;5) 20130731_log.txt WHICH IS WRONG...&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It seems that you need a date field "20130701-20130728", I need make a investigation on it and will come back to you asap. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 28 Aug 2013 10:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292924#M65950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T10:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from FTP server to Local Machine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292925#M65951</link>
      <description>Hi,
&lt;BR /&gt;You can use use tFileCopy and check "Remove source file"(if you don't want the source file).
&lt;BR /&gt;To make it clear, I have designed a demo job: tfilelist--&amp;gt;iterate--&amp;gt;tfilecopy
&lt;BR /&gt;See my screenshot for details
&lt;BR /&gt;
&lt;BR /&gt;Agreed!</description>
      <pubDate>Mon, 09 Sep 2013 14:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-Files-from-FTP-server-to-Local-Machine/m-p/2292925#M65951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-09T14:06:11Z</dc:date>
    </item>
  </channel>
</rss>

