<?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: Unable to import a file from Remote server using SFTP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373916#M89468</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         FILENAME in SFTP '/Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt'
29         		HOST="Babloo_SFTP@b2b.cabdo.com" 
30         	USER='Bablopp_SFTP'
31         	;
32         
33         DATA _NULL_;
34         	INFILE in;
35         	INPUT HOUSEHOLD_ID;
36         RUN;

NOTE: cd /Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt
2                                                          The SAS System                              08:49 Wednesday, July 5, 2017

ERROR: Directory or file /Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt doesn't exist.
NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Jul 2017 11:49:09 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2017-07-07T11:49:09Z</dc:date>
    <item>
      <title>Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373852#M89440</link>
      <description>&lt;P&gt;I'm unable to import a file from Remote server using SFTP. I tried the following code, but the code has failed with the error.&amp;nbsp;I verified SFTP connection from our SAS Grid server and credentials looks fine. I am able to import the file using SFTP client which means I confirm that file exists in the directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaaa;
	a=1;
run;

FILENAME in SFTP '/IN/SNAP/CAT_20170705171730.txt' LRECL=256
	HOST='sftp://babloo_SFTP@b2b.cabdo.com'
	USER='babloo_SFTP'
;

DATA _NULL_;
	INFILE in;
	INPUT HOUSEHOLD_ID;
RUN;

PROC PRINT DATA=_NULL_(obs=10);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Snippet from Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;34         DATA _NULL_;
35         	INFILE in;
36         	INPUT HOUSEHOLD_ID;
37         RUN;

2                                                          The SAS System                              08:49 Wednesday, July 5, 2017

NOTE: cd /IN/SNAP
ERROR: Directory or file /IN/SNAP/CAT_20170705171730.txt doesn't exist.
NOTE: The SAS System stopped processing this step because of errors&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373852#M89440</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2017-07-07T08:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373856#M89441</link>
      <description>&lt;P&gt;Log on to the server with sftp (you do have public/private key authentication enabled?), change to the directory, do a ls there, and then post a copy/paste of the whole process here.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373856#M89441</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T08:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373860#M89443</link>
      <description>&lt;P&gt;sftp&amp;gt; dir&lt;BR /&gt;IN&lt;BR /&gt;sftp&amp;gt; pwd&lt;BR /&gt;sftp&amp;gt; cd /IN/SNAP&lt;BR /&gt;sftp&amp;gt; ls&lt;BR /&gt;CAT_20170705171730.txt&lt;BR /&gt;sftp&amp;gt; pwd&lt;BR /&gt;Remote working directory: /IN/SNAP&lt;BR /&gt;sftp&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 09:27:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373860#M89443</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2017-07-07T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373865#M89446</link>
      <description>&lt;P&gt;Reduce the host= in your code to the bare hostname:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME in SFTP '/IN/SNAP/CAT_20170705171730.txt' LRECL=256
	HOST='b2b.cabdo.com'
	USER='babloo_SFTP'
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;No protocol and/or username necessary and allowed there.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 09:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373865#M89446</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373866#M89447</link>
      <description>I tried this already, but still receiving the same error message.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 07 Jul 2017 09:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373866#M89447</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2017-07-07T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373890#M89454</link>
      <description>&lt;P&gt;Well, I tried something similar (filename sftp from a Linux server), and when I added the "sftp://username@" to the host name, I got exactly your error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the log of the complete step, from filename statement to the ERROR message.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373890#M89454</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373916#M89468</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         FILENAME in SFTP '/Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt'
29         		HOST="Babloo_SFTP@b2b.cabdo.com" 
30         	USER='Bablopp_SFTP'
31         	;
32         
33         DATA _NULL_;
34         	INFILE in;
35         	INPUT HOUSEHOLD_ID;
36         RUN;

NOTE: cd /Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt
2                                                          The SAS System                              08:49 Wednesday, July 5, 2017

ERROR: Directory or file /Babloo_SFTP/IN/SNAP/CAT_20170705171730.txt doesn't exist.
NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373916#M89468</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2017-07-07T11:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373919#M89471</link>
      <description>&lt;P&gt;WOULD YOU PLEASE CARE TO READ &lt;STRONG&gt;&lt;U&gt;AND IMPLEMENT&lt;/U&gt;&lt;/STRONG&gt; MY POSTS?&lt;/P&gt;
&lt;P&gt;Drop the&amp;nbsp; "Babloo_SFTP@" from the hostname!!!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373919#M89471</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T11:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373921#M89472</link>
      <description>I'm still receiving the same error message when I drop 'Babloo_SFTP@'.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 07 Jul 2017 11:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373921#M89472</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2017-07-07T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import a file from Remote server using SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373927#M89477</link>
      <description>&lt;P&gt;Since you probably don't want to reveal the real host-/user/filenames so we could test from our SAS (or the server won't be reachable from outside), it's best you open a track with SAS technical support.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-a-file-from-Remote-server-using-SFTP/m-p/373927#M89477</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T12:03:18Z</dc:date>
    </item>
  </channel>
</rss>

