<?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: Can SAS use SFTP method to import a file from external network in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262288#M18247</link>
    <description>&lt;P&gt;I need to know whether we can transfer the file even if it is from outside our network. As the file is present in another network&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 04:03:11 GMT</pubDate>
    <dc:creator>naveenraj</dc:creator>
    <dc:date>2016-04-08T04:03:11Z</dc:date>
    <item>
      <title>Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262282#M18244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going through the documentation for sas on sftp&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm." target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm.&lt;/A&gt; Here it is mentioned that we can import files from differant systems. Is it possible to import the files present on adifferant network through sftp method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where i need to load a file in sas after fetching the file directly which will be present in another network(outside my organisation).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 03:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262282#M18244</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2016-04-08T03:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262284#M18245</link>
      <description>&lt;P&gt;You can always use the X or %sysexec command to SFTP the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use Filename to read the file directly - without transferring it&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to depend a bit on your setup though.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 03:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262284#M18245</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-08T03:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262287#M18246</link>
      <description>&lt;P&gt;I need to know whether we can transfer the file even if it is from outside our network.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 03:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262287#M18246</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2016-04-08T03:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262288#M18247</link>
      <description>&lt;P&gt;I need to know whether we can transfer the file even if it is from outside our network. As the file is present in another network&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 04:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262288#M18247</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2016-04-08T04:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262290#M18248</link>
      <description>&lt;P&gt;This isn't my area of expertise but I think if you can sftp it out of SAS you can in SAS as long as you have someway to connect to the other network.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If if you can't do it via a sftp via putty then you can't in SAS either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 04:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262290#M18248</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-08T04:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262299#M18249</link>
      <description>&lt;P&gt;For SFTP from SAS to work, you need to setup the connection externally first:&lt;/P&gt;
&lt;P&gt;- log on to the SAS server with the userID that will be used to run SAS&lt;/P&gt;
&lt;P&gt;- open a SFTP/SSH connection to the target host; this depends on the operating system of the SAS host: Windows uses PuTTY, UNIX uses ssh from the OpenSSH suite&lt;/P&gt;
&lt;P&gt;- confirm the target host's key so that it will be included in your known_hosts database&lt;/P&gt;
&lt;P&gt;- transfer your public key to the remote host and insert it there, according to the host type; see the SSH software's documentation where keys are stored and can be found on both servers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While doing this, you confirm that you have a connection to the target host (port 22) through the firewalls, have a valid userid and appropriate software there.&lt;/P&gt;
&lt;P&gt;Note that setting up the public key in the target host is mandatory, as SAS does not support password authentication with SFTP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you can do &lt;FONT face="courier new,courier"&gt;ssh username@host&lt;/FONT&gt; and get a command prompt on the remote host without further inputs, you're set up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Information can be found in &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm" target="_self"&gt;Filename SFTP statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 05:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262299#M18249</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-08T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262323#M18258</link>
      <description>&lt;P&gt;Dear KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong. I am completely new to SFTP, so need your assistance.&lt;/P&gt;&lt;P&gt;You are saying that with sas we can import file from an external network(outside my network) using SFTP. there wont be any issues, once proper setup is done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 08:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262323#M18258</guid>
      <dc:creator>naveenraj</dc:creator>
      <dc:date>2016-04-08T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS use SFTP method to import a file from external network</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262332#M18259</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/66186"&gt;@naveenraj&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear KurtBremser,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct me if i am wrong. I am completely new to SFTP, so need your assistance.&lt;/P&gt;
&lt;P&gt;You are saying that with sas we can import file from an external network(outside my network) using SFTP. there wont be any issues, once proper setup is done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Naveen&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. The main point is that you MUST have SSH access from your SAS server to that remote host. If you are prompted to approve the remote server's key when you do &lt;FONT face="courier new,courier"&gt;ssh servername&lt;/FONT&gt; (or are immediately asked for a password because you already have that key), you have already verified that you can connect to the remote server across all the network hops inbetween. Everything else is configuration work, as I outlined before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One caveat: with SAS 9.2, I had a problem when downloading larger files over a complex WAN connection. Since SAS uses an external tool for SFTP (while FTP is built-in), and tries to read the transferred file concurrently while the download is still in progress, it can run over the current end of the transferred file and terminate a data step with a LOST CARD Note. This forced me to do the SFTP transfer with sftp in a filename pipe and wait for the transfer to finish before reading the transfer file.&lt;/P&gt;
&lt;P&gt;This (bug?) may be fixed in later SAS versions.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 08:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-SAS-use-SFTP-method-to-import-a-file-from-external-network/m-p/262332#M18259</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-08T08:41:06Z</dc:date>
    </item>
  </channel>
</rss>

