<?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: Read data from SFTP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415381#M101864</link>
    <description>&lt;P&gt;Thanks Kurt. It will be helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 05:41:23 GMT</pubDate>
    <dc:creator>ruchir_m</dc:creator>
    <dc:date>2017-11-22T05:41:23Z</dc:date>
    <item>
      <title>Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415030#M101753</link>
      <description>&lt;P&gt;can we read data from SFTP through SAS . I have below approach ,need suggestion for better .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 05:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415030#M101753</guid>
      <dc:creator>ruchir_m</dc:creator>
      <dc:date>2017-11-22T05:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415032#M101754</link>
      <description>&lt;P&gt;What’s your definition of better? Can you include the information directly in the post, attachments don’t work for everyone.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415032#M101754</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-21T06:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415036#M101755</link>
      <description>&lt;P&gt;SAS provides filename sftp to access files via the ssh protocol, see here: &lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415036#M101755</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-21T06:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415380#M101863</link>
      <description>&lt;P&gt;Yeah sure, so definition is take less time and easy to implement in SAS.&lt;BR /&gt;&lt;BR /&gt;I have to get sftp files to sas system and then perform ETL. I&amp;nbsp;can write unix script for the same&amp;nbsp;but team what to do this operation with sas only.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 05:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415380#M101863</guid>
      <dc:creator>ruchir_m</dc:creator>
      <dc:date>2017-11-22T05:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415381#M101864</link>
      <description>&lt;P&gt;Thanks Kurt. It will be helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 05:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415381#M101864</guid>
      <dc:creator>ruchir_m</dc:creator>
      <dc:date>2017-11-22T05:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415393#M101868</link>
      <description>&lt;P&gt;In short:&lt;/P&gt;
&lt;P&gt;- you need an external sftp; other than with filename ftp, which is programmed into SAS, filename sftp relies on an installed external sftp client.&lt;/P&gt;
&lt;P&gt;- you need to set up passwordless authentication; SAS expects that sftp username@host will automatically log on; usually this is done with public/private key pairs&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 06:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415393#M101868</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-22T06:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415403#M101877</link>
      <description>&lt;P&gt;I try again:....&lt;/P&gt;&lt;P&gt;Warning:&amp;nbsp;&amp;nbsp; I have not tested this functionality lately, but last time i tried to use it&amp;nbsp;I gave up.&amp;nbsp; This Interface is probably the worst **bleep** SAS Institute has ever made (sorry for the Words, but this i true).&amp;nbsp; I tried to get SAS to fix it With the help of my former collegue in SAS (yes, I have worked for SAS earlier for many years).&amp;nbsp; After a lot of work and dokumentation we actually gave up.&amp;nbsp; There was absolutely no will at SAS in Cary&amp;nbsp;to even consider to do anything about it.&amp;nbsp;The typicall answer from them was: "What do you expect ?".&amp;nbsp; We tried to explain that we expect at least a warning or an error Message when Things do not work. But, no, we had no chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is (I assume it still is) wrong With this Interface ?&lt;/P&gt;&lt;P&gt;It Works somewhat like this:&lt;/P&gt;&lt;P&gt;It starts an external process that Writes the data to a local file.&lt;/P&gt;&lt;P&gt;After WAIT_MILLISECONDS (an option you can set)&amp;nbsp;SAS starts Reading the local file without checking that the external fetch is done.&lt;/P&gt;&lt;P&gt;In real world you use SFTP to fetch date from outside Your Company, and the line speed is mostly not as intenal speed. The SAS read of the file will be a lot quicker than the external fetch of the file and SAS will read Down and conclude that&amp;nbsp;it has reached the end of the file, and tell you the statistics and make you&amp;nbsp;think everything is OK.&amp;nbsp; However, if you run exactly the same code again and again you will get fifferent result every time, AND NO WARNINGS! &amp;nbsp;&amp;nbsp; Your only Choice is to adjust WAIT_MILLISECONDS, but as you never know the size of the file.....&amp;nbsp; you are&amp;nbsp; stuck,,&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting&amp;nbsp; WAIT_MILLISECONDS&amp;nbsp; to a big enough value will&amp;nbsp; make evey sigle file fetch take at leat 2 times WAIT_MILLISECONDS&amp;nbsp;&amp;nbsp; (or maybe it was 3 times) as WAIT_MILLISECONDS&amp;nbsp; is Applied to every single operation in the process (like also logging in).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So... Be careful.. Check if this really is reliable in Your situation!!!&lt;/P&gt;&lt;P&gt;I have only tested this under Unix/Linux.&amp;nbsp;&amp;nbsp; I do not know how this woulld behave under Windows..&amp;nbsp; It's possible that you get an error Message under Windows since I assume Windows is not (always) happy about Reading from a file that is currently opened for Write, Unix/Linux does not care and that's why there is absolutely no indications of any problems...&amp;nbsp;&amp;nbsp; As I said, I had to go for other solutions to fetch files With SFPT.&amp;nbsp; The SAS Interface is (or at least was) a really bad joke.&amp;nbsp; TEST IT before using it !!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 07:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415403#M101877</guid>
      <dc:creator>PSNn</dc:creator>
      <dc:date>2017-11-22T07:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415409#M101881</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/171188"&gt;@PSNn&lt;/a&gt; is that still so in SAS 9.4? I noticed that unreliable behaviour in 9.2 (when filename sftp was first added), and programmed a workaround that does the sftp externally and then reads from the local file, so that the file is transmitted completely before SAS starts reading. IIRC, there was a SAS TS track by me regarding this issue. If it's still not fixed, shame on SAS, as this descends to Microsoft-typical depths of totally unacceptable design and coding habits.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 07:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415409#M101881</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-22T07:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from SFTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415411#M101883</link>
      <description>&lt;P&gt;I work another Place now. I totally gave up the FILENAME SFTP, and like you I have a Linux solution which&amp;nbsp;I use/call from SAS (and that Works great).&amp;nbsp;&amp;nbsp; I cannot be 100% sure, but I do believe that we had 9.4 the other Place. &lt;U&gt;At least&lt;/U&gt; we had 9.3.&amp;nbsp; If you like, I might be able to find the answer:&amp;nbsp;&amp;nbsp;I'm sure my friend at the local SAS Office sits on all the conversation we had.&amp;nbsp;&amp;nbsp; I had to leave all my email conversations behind when I started working for the competitor &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-data-from-SFTP/m-p/415411#M101883</guid>
      <dc:creator>PSNn</dc:creator>
      <dc:date>2017-11-22T08:09:05Z</dc:date>
    </item>
  </channel>
</rss>

