<?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: export to SFTP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398953#M96572</link>
    <description>&lt;P&gt;Filename sftp requires that passwordless authentication (public/private key) has been established; therefore it does not have a password option.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 21:27:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-09-26T21:27:27Z</dc:date>
    <item>
      <title>export to SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398948#M96567</link>
      <description>&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a code that was working fine for a lot of time, but sudenly the receptor of the file changed his FTP conection to an SFTP one,&lt;/P&gt;&lt;P&gt;now i am getting an error.&lt;/P&gt;&lt;P&gt;bellow you can find my current code to export to FTP, it is on a macro that is in another macro.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
%macro export_to_ftp(dsn ,outfile_name, user, pass );

      Filename MyFTP ftp "&amp;amp;outfile_name." 
                                HOST='ftp.myhost.com'
                                cd= '/'
                        USER="&amp;amp;user."
                        PASS="&amp;amp;pass.";
      PROC EXPORT DATA= &amp;amp;dsn. 
      OUTFILE= MyFTP 
      DBMS=csv REPLACE;
      RUN; filename MyFTP clear;
%mend;

%export_to_ftp(dsn=folder.DataSetName ,outfile_name=my_file-&amp;amp;sysdate..csv, user = user, pass = pass);

endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i have tried to just change the line&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename MyFTP ftp "&amp;amp;outfile_name. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename MyFTP sftp "&amp;amp;outfile_name." &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but &amp;nbsp;i am getting an error like :&lt;/P&gt;&lt;P&gt;ERROR 23-2: Invalid option name PASS.&lt;BR /&gt;ERROR: Error in the FILENAME statement.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 21:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398948#M96567</guid>
      <dc:creator>GabrielGajardo</dc:creator>
      <dc:date>2017-09-26T21:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: export to SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398953#M96572</link>
      <description>&lt;P&gt;Filename sftp requires that passwordless authentication (public/private key) has been established; therefore it does not have a password option.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 21:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398953#M96572</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-26T21:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: export to SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398956#M96574</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118325"&gt;@GabrielGajardo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;May be the following link will be of help:&amp;nbsp;&lt;A href="http://support.sas.com/kb/56/154.html" target="_blank"&gt;http://support.sas.com/kb/56/154.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Link edited by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 06:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-SFTP/m-p/398956#M96574</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-27T06:17:44Z</dc:date>
    </item>
  </channel>
</rss>

