<?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 How to FTP a ZIP file from a remote host to my local computer using SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-FTP-a-ZIP-file-from-a-remote-host-to-my-local-computer/m-p/21542#M4572</link>
    <description>I'm trying to automate a current process we are running and would like to know how to ftp a zip file from a clients ftp site to my local hard drive using SAS code.  Any help will be GREATLY appreciated!!!</description>
    <pubDate>Thu, 29 May 2008 14:38:23 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-29T14:38:23Z</dc:date>
    <item>
      <title>How to FTP a ZIP file from a remote host to my local computer using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-FTP-a-ZIP-file-from-a-remote-host-to-my-local-computer/m-p/21542#M4572</link>
      <description>I'm trying to automate a current process we are running and would like to know how to ftp a zip file from a clients ftp site to my local hard drive using SAS code.  Any help will be GREATLY appreciated!!!</description>
      <pubDate>Thu, 29 May 2008 14:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-FTP-a-ZIP-file-from-a-remote-host-to-my-local-computer/m-p/21542#M4572</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to FTP a ZIP file from a remote host to my local computer using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-FTP-a-ZIP-file-from-a-remote-host-to-my-local-computer/m-p/21543#M4573</link>
      <description>I found a work around using a .bat file if anybody is interested.  It creates a table, exports it as a .bat file, and executes it.  This worked good for me since my file is named with a date that changes every week.&lt;BR /&gt;
&lt;BR /&gt;
DATA lib.table;&lt;BR /&gt;
INPUT  rem $ 1-50;&lt;BR /&gt;
CARDS;&lt;BR /&gt;
@echo off&lt;BR /&gt;
cd\&lt;BR /&gt;
d:&lt;BR /&gt;
cd \directory&lt;BR /&gt;
&amp;gt; my.ftp echo o ftp.address.com&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo user&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo password&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo bin&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo cd directory&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo get file.zip&lt;BR /&gt;
&amp;gt;&amp;gt; my.ftp echo quit&lt;BR /&gt;
ftp -s:my.ftp&lt;BR /&gt;
exit&lt;BR /&gt;
;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
proc export data = lib.table&lt;BR /&gt;
outfile = 'D:\directory\table.BAT'&lt;BR /&gt;
dbms=tab;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
 %sysexec D:\directory\table.BAT;</description>
      <pubDate>Thu, 29 May 2008 21:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-FTP-a-ZIP-file-from-a-remote-host-to-my-local-computer/m-p/21543#M4573</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-29T21:05:56Z</dc:date>
    </item>
  </channel>
</rss>

