<?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 Help to download FTP File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-to-download-FTP-File/m-p/599798#M173208</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to download file in FTP server with password, im trying but is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full FTP link example: &lt;A href="https://ftponline.zipcode.com/file/d/files/file.zip" target="_blank" rel="noopener"&gt;ftponline.zipcode.com/file/d/files/file.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; teste &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ftp&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'file.zip'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cd&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'file/d/files/'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;host&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'ftponline.zipcode.com'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;user&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'SAS_HELP'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pass&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'XXX'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;passive&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;binary&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;recfm&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=s;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; teste;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Open failed for file TESTE&lt;/P&gt;&lt;P&gt;ERROR: Connection refused.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 13.13 seconds&lt;/P&gt;&lt;P&gt;user cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;system cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;memory 770.46k&lt;/P&gt;&lt;P&gt;OS Memory 18848.00k&lt;/P&gt;&lt;P&gt;Timestamp 10/28/2019 10:52:57 AM&lt;/P&gt;&lt;P&gt;Step Count 8 Switch Count 44&lt;/P&gt;&lt;P&gt;Page Faults 0&lt;/P&gt;&lt;P&gt;Page Reclaims 364&lt;/P&gt;&lt;P&gt;Page Swaps 0&lt;/P&gt;&lt;P&gt;Voluntary Context Switches 175&lt;/P&gt;&lt;P&gt;Involuntary Context Switches 5&lt;/P&gt;&lt;P&gt;Block Input Operations 0&lt;/P&gt;&lt;P&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;anyone knows what i need to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 28 Oct 2019 14:03:40 GMT</pubDate>
    <dc:creator>Sk1_SAS</dc:creator>
    <dc:date>2019-10-28T14:03:40Z</dc:date>
    <item>
      <title>Help to download FTP File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-to-download-FTP-File/m-p/599798#M173208</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to download file in FTP server with password, im trying but is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Full FTP link example: &lt;A href="https://ftponline.zipcode.com/file/d/files/file.zip" target="_blank" rel="noopener"&gt;ftponline.zipcode.com/file/d/files/file.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; teste &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ftp&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'file.zip'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cd&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'file/d/files/'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;host&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'ftponline.zipcode.com'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;user&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'SAS_HELP'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pass&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'XXX'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;passive&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;binary&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;recfm&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=s;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; teste;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Open failed for file TESTE&lt;/P&gt;&lt;P&gt;ERROR: Connection refused.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 13.13 seconds&lt;/P&gt;&lt;P&gt;user cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;system cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;memory 770.46k&lt;/P&gt;&lt;P&gt;OS Memory 18848.00k&lt;/P&gt;&lt;P&gt;Timestamp 10/28/2019 10:52:57 AM&lt;/P&gt;&lt;P&gt;Step Count 8 Switch Count 44&lt;/P&gt;&lt;P&gt;Page Faults 0&lt;/P&gt;&lt;P&gt;Page Reclaims 364&lt;/P&gt;&lt;P&gt;Page Swaps 0&lt;/P&gt;&lt;P&gt;Voluntary Context Switches 175&lt;/P&gt;&lt;P&gt;Involuntary Context Switches 5&lt;/P&gt;&lt;P&gt;Block Input Operations 0&lt;/P&gt;&lt;P&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;anyone knows what i need to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Oct 2019 14:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-to-download-FTP-File/m-p/599798#M173208</guid>
      <dc:creator>Sk1_SAS</dc:creator>
      <dc:date>2019-10-28T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help to download FTP File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-to-download-FTP-File/m-p/599807#M173215</link>
      <description>&lt;P&gt;First of all, test if an ftp connection to the server works from your SAS environment.&lt;/P&gt;
&lt;P&gt;If you use remote, server-based SAS, log on to the SAS server with your SAS user-ID and run ftp from the commandline. Otherwise, test the ftp connection from your desktop.&lt;/P&gt;
&lt;P&gt;Also note that you most probably have to use an absolute path for the change directory:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/FONT&gt;file/d/files&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 14:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-to-download-FTP-File/m-p/599807#M173215</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-28T14:15:59Z</dc:date>
    </item>
  </channel>
</rss>

