<?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: Error using FIlename statement and FTP access method in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372061#M88913</link>
    <description>&lt;P&gt;Remove the leading forward slash from the filename:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename rmt ftp 'testclear.zip' host='sftp.ucas.com'
user='anonymous' pass='XXXXX'
cd='/incoming/' recfm=s debug;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Jun 2017 08:51:17 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-06-30T08:51:17Z</dc:date>
    <item>
      <title>Error using FIlename statement and FTP access method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372047#M88910</link>
      <description>&lt;P&gt;Am getting the error "ERROR: Physical file does not exist, /testclear.zip".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename rmt ftp '/testclear.zip' host='sftp.ucas.com' &lt;BR /&gt;user='anonymous' pass='XXXXX'&lt;BR /&gt;cd='/incoming/' recfm=s debug;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME lcl '\\par2\adi\data\STROBE\Jobs\2017\SR170601_001_BRITCO\PROJECT\RAW_DATA\testclear.zip' recfm=n;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _NULL_;&lt;BR /&gt;N=1;&lt;BR /&gt;INFILE rmt NBYTE=n;&lt;BR /&gt;INPUT;&lt;BR /&gt;FILE lcl ;&lt;BR /&gt;PUT _INFILE_ @@; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The rest of the log looks ok and file does exist and can be retrieved using FTP portal. &amp;nbsp;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372047#M88910</guid>
      <dc:creator>kimdukes77</dc:creator>
      <dc:date>2017-06-30T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error using FIlename statement and FTP access method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372061#M88913</link>
      <description>&lt;P&gt;Remove the leading forward slash from the filename:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename rmt ftp 'testclear.zip' host='sftp.ucas.com'
user='anonymous' pass='XXXXX'
cd='/incoming/' recfm=s debug;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2017 08:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372061#M88913</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-30T08:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error using FIlename statement and FTP access method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372064#M88914</link>
      <description>&lt;P&gt;Ok I've tried that and it still doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename rmt ftp '' host='sftp.ucas.com' &lt;BR /&gt;user='anonymous' pass='XXXXX'&lt;BR /&gt;cd='/incoming/' recfm=s debug;&lt;BR /&gt; &lt;BR /&gt;FILENAME lcl '' recfm=n;&lt;BR /&gt; &lt;BR /&gt;data _NULL_;&lt;BR /&gt;N=1;&lt;BR /&gt;INFILE rmt NBYTE=n;&lt;BR /&gt;INPUT;&lt;BR /&gt;FILE lcl ;&lt;BR /&gt;PUT _INFILE_ @@; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 10:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372064#M88914</guid>
      <dc:creator>kimdukes77</dc:creator>
      <dc:date>2017-07-05T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error using FIlename statement and FTP access method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372068#M88915</link>
      <description>&lt;P&gt;The source file is simply not there. I just did this:&lt;/P&gt;
&lt;PRE&gt;$ ftp sftp.ucas.com
Connected to sftp.ucas.com.
220 UKPASS Secure FTP Server
Name (sftp.ucas.com:XXXXX): anonymous
331 Password required for anonymous.
Password: 
230 Login OK. Proceed.
ftp&amp;gt; cd /incoming/
250 Folder changed to "/incoming".
ftp&amp;gt; ls
200 Command okay.
150 Opening ASCII mode data connection for file list.
jb.txt
226 Transfer complete. 8 bytes transferred. 8 Bps.
ftp&amp;gt; quit
&lt;/PRE&gt;
&lt;P&gt;As you can see, there's only one file named jb.txt there.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 09:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-FIlename-statement-and-FTP-access-method/m-p/372068#M88915</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-30T09:19:46Z</dc:date>
    </item>
  </channel>
</rss>

