<?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 Issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Issue/m-p/102191#M258206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to upload or download a file from SFTP. The sas code that I use for the job is&lt;/P&gt;&lt;P&gt;options&amp;nbsp; mlogic mprint obs=max formdlim='_'&amp;nbsp; source2 noxsync noxwait source=1;&lt;/P&gt;&lt;P&gt;%let id=user;&lt;/P&gt;&lt;P&gt;%let pw=xxxxxx;&lt;/P&gt;&lt;P&gt;data null;&lt;/P&gt;&lt;P&gt;file 'F:\Batch\getDATA.bat'; * the batch file;&lt;/P&gt;&lt;P&gt;put "ftp -s:%0";&lt;/P&gt;&lt;P&gt;put "goto END";&lt;/P&gt;&lt;P&gt;put "open &lt;A href="mailto:something@abcd.com%22;%20/*Host"&gt;something@abcd.com"; /*Host&lt;/A&gt; name*/&lt;/P&gt;&lt;P&gt;put "&amp;amp;id";&lt;/P&gt;&lt;P&gt;put "&amp;amp;pw";&lt;/P&gt;&lt;P&gt;put 'CD "USer/Test/file"';/* FTP path*/&lt;/P&gt;&lt;P&gt;put "LCD C:\Users\dwnld";/* Local Destination path*/&lt;/P&gt;&lt;P&gt;put "GET abcd.txt";/* File name*/&lt;/P&gt;&lt;P&gt;put "bye";&lt;/P&gt;&lt;P&gt;put ":END";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;for FTP. This is not working for SFTP. Can you please suggest the same using batch file for SFTP. I have tried with file name options as well. That is not working too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 10:41:46 GMT</pubDate>
    <dc:creator>Subrata_LS</dc:creator>
    <dc:date>2013-10-03T10:41:46Z</dc:date>
    <item>
      <title>SFTP Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Issue/m-p/102191#M258206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to upload or download a file from SFTP. The sas code that I use for the job is&lt;/P&gt;&lt;P&gt;options&amp;nbsp; mlogic mprint obs=max formdlim='_'&amp;nbsp; source2 noxsync noxwait source=1;&lt;/P&gt;&lt;P&gt;%let id=user;&lt;/P&gt;&lt;P&gt;%let pw=xxxxxx;&lt;/P&gt;&lt;P&gt;data null;&lt;/P&gt;&lt;P&gt;file 'F:\Batch\getDATA.bat'; * the batch file;&lt;/P&gt;&lt;P&gt;put "ftp -s:%0";&lt;/P&gt;&lt;P&gt;put "goto END";&lt;/P&gt;&lt;P&gt;put "open &lt;A href="mailto:something@abcd.com%22;%20/*Host"&gt;something@abcd.com"; /*Host&lt;/A&gt; name*/&lt;/P&gt;&lt;P&gt;put "&amp;amp;id";&lt;/P&gt;&lt;P&gt;put "&amp;amp;pw";&lt;/P&gt;&lt;P&gt;put 'CD "USer/Test/file"';/* FTP path*/&lt;/P&gt;&lt;P&gt;put "LCD C:\Users\dwnld";/* Local Destination path*/&lt;/P&gt;&lt;P&gt;put "GET abcd.txt";/* File name*/&lt;/P&gt;&lt;P&gt;put "bye";&lt;/P&gt;&lt;P&gt;put ":END";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;for FTP. This is not working for SFTP. Can you please suggest the same using batch file for SFTP. I have tried with file name options as well. That is not working too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Issue/m-p/102191#M258206</guid>
      <dc:creator>Subrata_LS</dc:creator>
      <dc:date>2013-10-03T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-Issue/m-p/102192#M258207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are creating a batch file by yourself and than calling that batch-file. (not coded above)&lt;/P&gt;&lt;P&gt;The contents of that batchfile has nothing to do with SAS but is dedicated tool scritpting. If you know to handle anay tool you ca do this calling from SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to used SAS instead of that, that is possible&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#p0v0ijxl1k6d4bn16cshtic7u4i3.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#p0v0ijxl1k6d4bn16cshtic7u4i3.htm"&gt;SAS(R) 9.4 Statements: Reference&lt;/A&gt;&amp;nbsp; (filename FTP)&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm"&gt;SAS(R) 9.4 Statements: Reference&lt;/A&gt; (filename sftp)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 18:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-Issue/m-p/102192#M258207</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-10-03T18:31:25Z</dc:date>
    </item>
  </channel>
</rss>

