<?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: Get Files from SFTP server to unix server with help of SAS DI 4.6 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226859#M5433</link>
    <description>&lt;P&gt;Please post the code that was used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also have a look at this entry &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SFTP/td-p/160607" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/SFTP/td-p/160607&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 08:29:34 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2015-09-23T08:29:34Z</dc:date>
    <item>
      <title>Get Files from SFTP server to unix server with help of SAS DI 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226718#M5424</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get and copy (with rename) files from SFTP server to Unix Server with the help of DI 4.6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Files that i need to read are .dat files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest me the approach to do this . I have tried with File name option but it doesn't work and gave error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It trying to get file from sas work as per below error :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOTE: get File.dat "/saswork01/SAS_workEF2F012F00C6_tns-lk-test-ma-comp/#LN090018"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR: Directory or file File.dat doesn't exist.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I am not able to understand why its trying to get file from saswork,it should go and get details of the files from SFTP system not saswork.&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226718#M5424</guid>
      <dc:creator>ruch</dc:creator>
      <dc:date>2015-09-22T12:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from SFTP server to unix server with help of SAS DI 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226859#M5433</link>
      <description>&lt;P&gt;Please post the code that was used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also have a look at this entry &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SFTP/td-p/160607" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/SFTP/td-p/160607&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 08:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226859#M5433</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-09-23T08:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from SFTP server to unix server with help of SAS DI 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226885#M5435</link>
      <description>&lt;DIV&gt;%let host=&lt;A href="http://trans.nsc.no/" target="_blank"&gt;trans.nsc.no&lt;/A&gt;;&lt;/DIV&gt;&lt;DIV&gt;%let sftpOption=-o IdentityFile=/uttrekk/prodadm/.ssh/winback_prod;&lt;/DIV&gt;&lt;DIV&gt;%let filename=CMD*.dat;&lt;/DIV&gt;&lt;DIV&gt;%let sftpPath=/home/t000315/;&lt;/DIV&gt;&lt;DIV&gt;filename myfile sftp "&amp;amp;sftpPath.&amp;amp;filename." host="&amp;amp;host." options="&amp;amp;sftpOption.";&lt;/DIV&gt;&lt;DIV class="yj6qo ajU"&gt;&lt;DIV class="ajR"&gt;&lt;IMG src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" border="0" /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="adL"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;data work.test_sftp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;infile myfile truncover;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;input File_Names $100.;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226885#M5435</guid>
      <dc:creator>ruch</dc:creator>
      <dc:date>2015-09-23T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from SFTP server to unix server with help of SAS DI 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226945#M5438</link>
      <description>&lt;P&gt;Currently the code is only reading from the fileref myfile but not writing it anywhere. Checkout this blog entry &lt;A href="http://blogs.sas.com/content/sasdummy/2013/09/17/copy-file-macro/" target="_self"&gt;Copy a file using a SAS program: another method&lt;/A&gt; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will find usefull information on how to do a binary file copy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 18:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/226945#M5438</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-09-23T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get Files from SFTP server to unix server with help of SAS DI 4.6</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/227030#M5458</link>
      <description>&lt;P&gt;Yes ,But i got error during reading only.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 06:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Get-Files-from-SFTP-server-to-unix-server-with-help-of-SAS-DI-4/m-p/227030#M5458</guid>
      <dc:creator>ruch</dc:creator>
      <dc:date>2015-09-24T06:13:49Z</dc:date>
    </item>
  </channel>
</rss>

