<?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: Exporting to a FTP site in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39117#M10055</link>
    <description>The example on the online says:&lt;BR /&gt;
"This example creates a file called test.dat in a directory called c:\remote for the user bbailey on the host winnt.pc.&lt;BR /&gt;
&lt;BR /&gt;
filename create ftp 'c:\remote\test.dat'&lt;BR /&gt;
         host='winnt.pc'&lt;BR /&gt;
         user='bbailey' prompt recfm=v;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   file create;&lt;BR /&gt;
   do i=1 to 10;&lt;BR /&gt;
      put i=;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
"&lt;BR /&gt;
&lt;BR /&gt;
So i changed it to be:&lt;BR /&gt;
filename create ftp '\\Daily\yyyymmdd\File01.xls'&lt;BR /&gt;
         host='example.com'&lt;BR /&gt;
         user='user' pass='pass' recfm=v;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   file create;&lt;BR /&gt;
   do i=1 to 10;&lt;BR /&gt;
      put i=;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
"&lt;BR /&gt;
&lt;BR /&gt;
But to no success&lt;BR /&gt;
And how does it know what data source the file to be created is called?</description>
    <pubDate>Fri, 15 Aug 2008 09:08:02 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-15T09:08:02Z</dc:date>
    <item>
      <title>Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39115#M10053</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to export to a FTP site, all i want to do is simply upload 5 files, &lt;BR /&gt;
Files=01-05, &lt;BR /&gt;
Host=example.com &lt;BR /&gt;
username=user&lt;BR /&gt;
password=pass&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 14 Aug 2008 09:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39115#M10053</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-14T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39116#M10054</link>
      <description>See the online doc for FILENAME FTP statement (if you want to do it within SAS). Otherwise you can create a shell script with your ftp commands, which you can call from a SAS session using the X statement.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 14 Aug 2008 14:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39116#M10054</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-14T14:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39117#M10055</link>
      <description>The example on the online says:&lt;BR /&gt;
"This example creates a file called test.dat in a directory called c:\remote for the user bbailey on the host winnt.pc.&lt;BR /&gt;
&lt;BR /&gt;
filename create ftp 'c:\remote\test.dat'&lt;BR /&gt;
         host='winnt.pc'&lt;BR /&gt;
         user='bbailey' prompt recfm=v;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   file create;&lt;BR /&gt;
   do i=1 to 10;&lt;BR /&gt;
      put i=;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
"&lt;BR /&gt;
&lt;BR /&gt;
So i changed it to be:&lt;BR /&gt;
filename create ftp '\\Daily\yyyymmdd\File01.xls'&lt;BR /&gt;
         host='example.com'&lt;BR /&gt;
         user='user' pass='pass' recfm=v;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   file create;&lt;BR /&gt;
   do i=1 to 10;&lt;BR /&gt;
      put i=;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
"&lt;BR /&gt;
&lt;BR /&gt;
But to no success&lt;BR /&gt;
And how does it know what data source the file to be created is called?</description>
      <pubDate>Fri, 15 Aug 2008 09:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39117#M10055</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-15T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39118#M10056</link>
      <description>The DATA step, in general, is the source, even if there is no SET statement.  Suggest you set the FILEMSGS option for more complete diagnostics.  Also, you should consider sharing SASLOG output (and local/foreign FTP environments, SAS version info) for more accurate assistance/guidance from forum members -- your first DATA step should have worked fine, presuming you are able to FTP to that machine outside of SAS, with native FTP client on your OS platform.  Recommend that you first confirm you are able to use FTP (native), and then with FILEMSGS set, test FTP under SAS.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 15 Aug 2008 12:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39118#M10056</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-08-15T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39119#M10057</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I have come back to this problem...i had a break on some other work, but back on it now.&lt;BR /&gt;
If my file i want export is called fred1 how do i export this to the FTP site above?&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Thu, 25 Sep 2008 14:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39119#M10057</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-25T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to a FTP site</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39120#M10058</link>
      <description>I suggest you first try to ftp a file from the directory that you are starting SAS from. If you succeed with that, go on using the diagnostics Scott talks about in the previous message.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 25 Sep 2008 15:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/39120#M10058</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-25T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

