<?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: FTP log in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251743#M35595</link>
    <description>Thank you for the reply.&lt;BR /&gt;I have implemented it as suggested and it works fine.&lt;BR /&gt;Now i will look for a way to pipe it to a file and mail it to me and i am done&lt;BR /&gt;Kind regards.&lt;BR /&gt;/Tom</description>
    <pubDate>Fri, 26 Sep 2008 13:21:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-09-26T13:21:21Z</dc:date>
    <item>
      <title>FTP log</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251741#M35593</link>
      <description>Hello,&lt;BR /&gt;I am new to TOS and what i try to achieve is to set up a dataflow getting files form one server and reproduce them to 6 other servers.&lt;BR /&gt;I am using the ftpget and ftpput funcitions and all works fine, however i would like to get a report whether the transfer has been succeeded or not (and the reason why not).&lt;BR /&gt;Kind of like the output from a dos ftp command.&lt;BR /&gt;Is there a funcion i can use for that?&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Tom Blank</description>
      <pubDate>Sat, 16 Nov 2024 14:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251741#M35593</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: FTP log</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251742#M35594</link>
      <description>use a tJava (if you're connecting via Trigger Link ) or tJavaRow (if you're connecting via Row Link ) 
&lt;BR /&gt;press CTRL-SPACE in the code box, and you'll get a drop down of the available variables and functions and whatnot 
&lt;BR /&gt;-if you're using 2.4.1 (first pic), you'll be able to get the number of lines (NB_LINE) and error message (ERROR_MESSAGE) 
&lt;BR /&gt;--you could use code like this, in your tJava or tJavaRow, to print out output to your console (aka the Run tab): 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println("***tFTPGet***");&lt;BR /&gt;System.out.println("Error Message = " + ((String)globalMap.get("tFTPGet_1_ERROR_MESSAGE")) );&lt;BR /&gt;System.out.println("Nb File = " + ((Integer)globalMap.get("tFTPGet_1_NB_FILE")) );&lt;BR /&gt;System.out.println("***tFTPPut***");&lt;BR /&gt;System.out.println("Error Message = " + ((String)globalMap.get("tFTPPut_1_ERROR_MESSAGE")) );&lt;BR /&gt;System.out.println("Nb File = " + ((Integer)globalMap.get("tFTPPut_1_NB_FILE")) );&lt;/PRE&gt; 
&lt;BR /&gt;-if you're using 3.0.0M3 or 3.0.0RC1 (second pic), you'll be able to get the current status (CURRENT_STATUS) for both components, and if the file exists (CURRENT_FILE_EXISTS) with tFTPPut 
&lt;BR /&gt;--you could use code like this, in your tJava or tJavaRow, to print out output to your console (aka the Run tab): 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println("***tFTPGet***");&lt;BR /&gt;System.out.println("Current Status = " + ((String)globalMap.get("tFTPGet_1_CURRENT_STATUS")) );&lt;BR /&gt;System.out.println("Error Message = " + ((String)globalMap.get("tFTPGet_1_ERROR_MESSAGE")) );&lt;BR /&gt;System.out.println("Nb File = " + ((Integer)globalMap.get("tFTPGet_1_NB_FILE")) );&lt;BR /&gt;System.out.println("***tFTPPut***");&lt;BR /&gt;System.out.println("Current Status = " + ((String)globalMap.get("tFTPPut_1_CURRENT_STATUS")) );&lt;BR /&gt;System.out.println("Error Message = " + ((String)globalMap.get("tFTPPut_1_ERROR_MESSAGE")) );&lt;BR /&gt;System.out.println("Nb File = " + ((Integer)globalMap.get("tFTPPut_1_NB_FILE")) );&lt;BR /&gt;System.out.println("Current File Exists? = " +  ((Boolean)globalMap.get("tFTPPut_1_CURRENT_FILE_EXISTS")) );&lt;/PRE&gt; 
&lt;BR /&gt;if you have any other information you would like, you can add a note to this feature request i've just made: 5213</description>
      <pubDate>Wed, 24 Sep 2008 17:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251742#M35594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-24T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP log</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251743#M35595</link>
      <description>Thank you for the reply.&lt;BR /&gt;I have implemented it as suggested and it works fine.&lt;BR /&gt;Now i will look for a way to pipe it to a file and mail it to me and i am done&lt;BR /&gt;Kind regards.&lt;BR /&gt;/Tom</description>
      <pubDate>Fri, 26 Sep 2008 13:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FTP-log/m-p/2251743#M35595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-26T13:21:21Z</dc:date>
    </item>
  </channel>
</rss>

