<?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/49990#M13574</link>
    <description>sorry im using SAS 9.1.3 SP4&lt;BR /&gt;
and im on XP_pro</description>
    <pubDate>Fri, 26 Sep 2008 09:40:02 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-09-26T09:40: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/49986#M13570</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I have stumbled across another problem....i have found the correct code to upload my file to a FTP site but i can only upload this as csv is it possible to export as xls?&lt;BR /&gt;
my code:&lt;BR /&gt;
&lt;BR /&gt;
filename create ftp 'test01.xls'&lt;BR /&gt;
host='ftp.example.com'&lt;BR /&gt;
user='usre' pass='pass' recfm=v;&lt;BR /&gt;
proc export data=Fred01outfile=create dbms=csv replace; run;&lt;BR /&gt;
&lt;BR /&gt;
i have tried to change the dbms to EXCEL but alas it does not work.&lt;BR /&gt;
&lt;BR /&gt;
please help&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Thu, 25 Sep 2008 15:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49986#M13570</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-25T15:53:19Z</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/49987#M13571</link>
      <description>Please provide SASLOG output with the exact error condition you are receiving, as well as your code.  Also, your SAS version info (include service pack level) would be helpful, as well as the "local" and "foreign" operating platform would be most helpful.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a003102702.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a003102702.htm&lt;/A&gt;</description>
      <pubDate>Thu, 25 Sep 2008 21:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49987#M13571</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-25T21:00:54Z</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/49988#M13572</link>
      <description>Do you have a license for SAS /ACCESS for PC File Formats? I believe you need that when using Excel as output format.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 26 Sep 2008 06:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49988#M13572</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-26T06:42:44Z</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/49989#M13573</link>
      <description>Sas log:&lt;BR /&gt;
28   filename create ftp 'test01.xls'&lt;BR /&gt;
29   host='ftp.example.com'&lt;BR /&gt;
30   user='user' pass=XXXXXXXXXX recfm=v;&lt;BR /&gt;
31   proc export data=Fred01outfile=create dbms=EXCEL replace;&lt;BR /&gt;
31 !                                                              SHEET = "data1" ;run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: "data1" was successfully created.&lt;BR /&gt;
NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;
      real time           0.25 seconds&lt;BR /&gt;
      cpu time            0.04 seconds&lt;BR /&gt;
&lt;BR /&gt;
So there is no error but no file created&lt;BR /&gt;
&lt;BR /&gt;
And yes we do have a license for SAS /ACCESS for PC File Formats.&lt;BR /&gt;
I can export to excel on to my c drive.</description>
      <pubDate>Fri, 26 Sep 2008 09:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49989#M13573</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-26T09:08:30Z</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/49990#M13574</link>
      <description>sorry im using SAS 9.1.3 SP4&lt;BR /&gt;
and im on XP_pro</description>
      <pubDate>Fri, 26 Sep 2008 09:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49990#M13574</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-26T09:40: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/49991#M13575</link>
      <description>Have you tried to create the excel file in the SAS current directory, and then do the ftp from a command prompt with same parameter as you use in the code?&lt;BR /&gt;
Does ftp.example.com really exist? I'm behind a firewall that doesn't allow me to ping ftp sites outside.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 26 Sep 2008 10:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49991#M13575</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-26T10:10:59Z</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/49992#M13576</link>
      <description>Have a look at the supplied SAS DOC link - there are special considerations using DBMS=EXCEL to consider (LIBNAME statement, not FILENAME).  Also, one will assume that there is at least one blank character between "Fred01" and "outfile=".&lt;BR /&gt;
Lastly, you may want to start simple with a DATA step to "output" a sequential file to the remote/foreign FTP destination -- just to verify whether the problem is related to your FTP authority (at the remote host) or some issue with PROC EXPORT.  First though, you need to review the DOC and find/resolve suitable compatibility issues with your code.  Also, there are technotes and technical papers (SUGI, SGF) at the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; for reference.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 26 Sep 2008 12:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49992#M13576</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-26T12:55:12Z</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/49993#M13577</link>
      <description>Spud,&lt;BR /&gt;
i don't think you may write directly on another server an Excel file&lt;BR /&gt;
&lt;BR /&gt;
i submit&lt;BR /&gt;
options msglevel=i;&lt;BR /&gt;
filename create ftp 'testftp.xls'&lt;BR /&gt;
 host='marg.rech.ine.fr' rcmd='type i'&lt;BR /&gt;
 user='andre' pass='xxxxxxx' recfm=v  debug;&lt;BR /&gt;
 proc export data=sashelp.class  outfile=create dbms=EXCEL replace;&lt;BR /&gt;
 SHEET = "data1" ;run;&lt;BR /&gt;
 quit;&lt;BR /&gt;
and the result give&lt;BR /&gt;
&lt;BR /&gt;
NOTE: 220 Service de transfert de fichiers (FTP)&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 220 Service de transfert de fichiers (FTP)&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; USER andre&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 331 Please specify the password.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; PASS XXXXXXXX&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 230 Login successful.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; PORT 173,16,20,79,11,32&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 PORT command successful. Consider using PASV.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; TYPE A&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 Switching to ASCII mode.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; PWD&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 257 "/home/users/andre"&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; type i&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 200 Switching to Binary mode.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; RETR testftp.xls&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 550 Failed to open file.&lt;BR /&gt;
ERROR: Physical file does not exist, testftp.xls.&lt;BR /&gt;
&lt;BR /&gt;
there is a gap between the internal production of SAS which  is ok&lt;BR /&gt;
and the link between the pc and the server for an excel file&lt;BR /&gt;
&lt;BR /&gt;
as it is working perfect for a cport file&lt;BR /&gt;
&lt;BR /&gt;
NOTE: User andre has connected to FTP server  on Host marg.rech.ine.fr .&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Proc CPORT begins to transport data set SASHELP.CLASS&lt;BR /&gt;
NOTE: The data set contains 5 variables and 19 observations.&lt;BR /&gt;
      Logical record length is 40.&lt;BR /&gt;
NOTE: &amp;lt;&amp;lt;&amp;lt; 226 File receive OK.&lt;BR /&gt;
NOTE: &amp;gt;&amp;gt;&amp;gt; QUIT&lt;BR /&gt;
NOTE: PROCEDURE CPORT used (Total process time):&lt;BR /&gt;
      real time           0.57 seconds&lt;BR /&gt;
      cpu time            0.03 second&lt;BR /&gt;
&lt;BR /&gt;
Try another method and forget this one&lt;BR /&gt;
&lt;BR /&gt;
Before sp4, was Sas Institute constructing a special solution for exporting excel&lt;BR /&gt;
file to a pc from a linux or unix and the rules were special.&lt;BR /&gt;
This indicate that it was not easy to threat the binary pf Microsoft&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Mon, 29 Sep 2008 15:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-to-a-FTP-site/m-p/49993#M13577</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2008-09-29T15:55:49Z</dc:date>
    </item>
  </channel>
</rss>

