<?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 SFTP Physical file does not exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520093#M140983</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using SAS 9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having an issue using SFTP from my Unix SAS server to a Linux server.&amp;nbsp; I have already setup my rsa key and have added it to knownhost file.&amp;nbsp; I am able to ssh without a password so that shouldn't be the issue.&amp;nbsp; However&amp;nbsp;When ever i try to&amp;nbsp;SFTP though SAS with the following code i get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FILENAME COOL SFTP "/home/myhome/cool.txt" USER='user' HOST="myhost" DEBUG;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA COOLSAS;&lt;BR /&gt;INFILE COOL DLM='|' DSD;&lt;BR /&gt;INPUT TEST&amp;nbsp;$;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=COOLSAS (OBS=100); RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Connected to &amp;lt;host&amp;gt;.&lt;BR /&gt;NOTE: sftp&amp;gt; cd&amp;nbsp;&lt;SPAN&gt;/home/&lt;/SPAN&gt;&lt;SPAN&gt;myhome&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;NOTE: sftp&amp;gt; get&amp;nbsp;cool.txt /data/SASWORK/SAS_workD88300960066_p00012/#LN00058Fetching&lt;BR /&gt;/home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/cool.txt&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, &lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;/SASWORK/SAS_workD88300960066_p00012/#LN000&lt;/SPAN&gt;&lt;SPAN&gt;58&lt;/SPAN&gt;.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file on the remote server certainly exist, i have triple checked it.&amp;nbsp; in fact it looks like in the work library the file is actually transferred over.&amp;nbsp; However SAS never reads the file in and then for some reason is looking for this file and errors out when it cant find it&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, /data/SASWORK/SAS_workD88300960066_p00012/#LN00058.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 19:00:58 GMT</pubDate>
    <dc:creator>naspep21</dc:creator>
    <dc:date>2018-12-10T19:00:58Z</dc:date>
    <item>
      <title>SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520093#M140983</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using SAS 9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having an issue using SFTP from my Unix SAS server to a Linux server.&amp;nbsp; I have already setup my rsa key and have added it to knownhost file.&amp;nbsp; I am able to ssh without a password so that shouldn't be the issue.&amp;nbsp; However&amp;nbsp;When ever i try to&amp;nbsp;SFTP though SAS with the following code i get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FILENAME COOL SFTP "/home/myhome/cool.txt" USER='user' HOST="myhost" DEBUG;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA COOLSAS;&lt;BR /&gt;INFILE COOL DLM='|' DSD;&lt;BR /&gt;INPUT TEST&amp;nbsp;$;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=COOLSAS (OBS=100); RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Connected to &amp;lt;host&amp;gt;.&lt;BR /&gt;NOTE: sftp&amp;gt; cd&amp;nbsp;&lt;SPAN&gt;/home/&lt;/SPAN&gt;&lt;SPAN&gt;myhome&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;NOTE: sftp&amp;gt; get&amp;nbsp;cool.txt /data/SASWORK/SAS_workD88300960066_p00012/#LN00058Fetching&lt;BR /&gt;/home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/cool.txt&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, &lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;/SASWORK/SAS_workD88300960066_p00012/#LN000&lt;/SPAN&gt;&lt;SPAN&gt;58&lt;/SPAN&gt;.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file on the remote server certainly exist, i have triple checked it.&amp;nbsp; in fact it looks like in the work library the file is actually transferred over.&amp;nbsp; However SAS never reads the file in and then for some reason is looking for this file and errors out when it cant find it&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, /data/SASWORK/SAS_workD88300960066_p00012/#LN00058.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520093#M140983</guid>
      <dc:creator>naspep21</dc:creator>
      <dc:date>2018-12-10T19:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520096#M140985</link>
      <description>&lt;P&gt;The message is clear, and it's not coming from SAS, but from sftp:&lt;/P&gt;
&lt;PRE&gt;"/home/myhome/cool.txt" not found.&lt;/PRE&gt;
&lt;P&gt;The file is not there.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520096#M140985</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-10T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520100#M140987</link>
      <description>&lt;P&gt;File is certainly there. In fact the file is actually transferred over to SAS to the temp Work library. However then SAS throws in This error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, data/SASWORK/SAS_workD88300960066_p00012/#LN00058.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It never reads the file in after that point.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520100#M140987</guid>
      <dc:creator>naspep21</dc:creator>
      <dc:date>2018-12-10T18:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520104#M140990</link>
      <description>&lt;P&gt;Is that path to your WORK library in the SAS error correct - does it match the definition of your WORK library in your SAS session?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 18:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520104#M140990</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-12-10T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520105#M140991</link>
      <description>&lt;P&gt;yup sure does. And the file does transfer over to the correct&amp;nbsp;work location...so sas is getting that part right.&amp;nbsp; But this #LN00058 file doesnt&amp;nbsp;exist.&amp;nbsp; Not even sure what its doing with that file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520105#M140991</guid>
      <dc:creator>naspep21</dc:creator>
      <dc:date>2018-12-10T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520106#M140992</link>
      <description>&lt;P&gt;I suggest you track this problem to SAS Tech Support if you haven't already done so.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520106#M140992</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-12-10T19:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520127#M140994</link>
      <description>&lt;P&gt;I pointed out the message from&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;SFTP&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt; to you. Ignoring it will not make the cause go away. The file is not where the sftp expects it on the remote server, period.&lt;/P&gt;
&lt;P&gt;Unless you failed to post the log correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520127#M140994</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-10T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520128#M140995</link>
      <description>&lt;P&gt;log was posted incorrectly and corrected above.&amp;nbsp; The file exist, the corrected question above now reflects that....thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520128#M140995</guid>
      <dc:creator>naspep21</dc:creator>
      <dc:date>2018-12-10T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Physical file does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520130#M140996</link>
      <description>&lt;PRE&gt;NOTE: sftp&amp;gt; get cool.txt /data/SASWORK/SAS_workD88300960066_p00012/#LN00058Fetching
/home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/cool.txt&lt;/PRE&gt;
&lt;P&gt;The crucial part is this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Fetching&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/&lt;STRONG&gt;cool.txt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(emphasis by me)&lt;/P&gt;
&lt;P&gt;Somehow the sftp does not honor the target name and uses the source file name for the target.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 20:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Physical-file-does-not-exist/m-p/520130#M140996</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-12-10T20:16:53Z</dc:date>
    </item>
  </channel>
</rss>

