<?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 create directory using ftp filename statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64034#M13937</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a directory via the FTP filename statement with no success. The code I'm using is provided below. The TEMP directory already exists. I need to create a subdirectory called test. Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
filename dlc ftp "/TEMP/test/" dir new host="&amp;amp;host" user="&amp;amp;userid" pass="&amp;amp;ftppwd" ;</description>
    <pubDate>Wed, 03 Mar 2010 13:04:24 GMT</pubDate>
    <dc:creator>ding_dong</dc:creator>
    <dc:date>2010-03-03T13:04:24Z</dc:date>
    <item>
      <title>create directory using ftp filename statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64034#M13937</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a directory via the FTP filename statement with no success. The code I'm using is provided below. The TEMP directory already exists. I need to create a subdirectory called test. Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
filename dlc ftp "/TEMP/test/" dir new host="&amp;amp;host" user="&amp;amp;userid" pass="&amp;amp;ftppwd" ;</description>
      <pubDate>Wed, 03 Mar 2010 13:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64034#M13937</guid>
      <dc:creator>ding_dong</dc:creator>
      <dc:date>2010-03-03T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: create directory using ftp filename statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64035#M13938</link>
      <description>Your syntax is correct, per the SAS 9.2 DOC, FILENAME stmt (with FTP access method).  Have you attempted to execute the code and you get some type of error?  Share your actual SAS log please and help clarify your SAS execution behavior as to what error, if any, is generated by SAS?&lt;BR /&gt;
&lt;BR /&gt;
Oh yes, let us know that you are able to create the same directory outside of SAS, by the way -- a key consideration to contribute.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178980.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000178980.htm&lt;/A&gt;</description>
      <pubDate>Wed, 03 Mar 2010 13:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64035#M13938</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-03T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: create directory using ftp filename statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64036#M13939</link>
      <description>Hi Scott&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply. The problem I'm having is when I access the filename within the datastep.&lt;BR /&gt;
&lt;BR /&gt;
I'm using the filename statement statement as specified and using the below datastep.&lt;BR /&gt;
&lt;BR /&gt;
	data _null_;&lt;BR /&gt;
	   file dlc;&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
I'm able to create the directory using the above. However, I receive the below error message.&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Invalid Reply received for the STOR command..&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.05 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
Any suggestion?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Thu, 04 Mar 2010 11:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64036#M13939</guid>
      <dc:creator>ding_dong</dc:creator>
      <dc:date>2010-03-04T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: create directory using ftp filename statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64037#M13940</link>
      <description>Please share your entire SAS program, pasted from your SAS log!&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 04 Mar 2010 14:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64037#M13940</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-04T14:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: create directory using ftp filename statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64038#M13941</link>
      <description>Hi:&lt;BR /&gt;
  With regard to that very same error message, this Tech Support note explains that:&lt;BR /&gt;
&lt;B&gt;You can use the FTP access method on a FILENAME statement with SAS/GRAPH&lt;BR /&gt;
device drivers as long as the FILENAME statement references a specific&lt;BR /&gt;
file (as opposed to a directory location).  If you attempt to use the&lt;BR /&gt;
FTP access method on a FILENAME statement that refers to a directory&lt;BR /&gt;
location, the following error messages will appear in the SAS Log:&lt;BR /&gt;
&lt;BR /&gt;
  Invalid reply received for the STOR command.&lt;BR /&gt;
  Unable to open graphics device.&lt;BR /&gt;
  Unable to initialize graphics device.&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
             &lt;BR /&gt;
From: &lt;A href="http://support.sas.com/kb/1/632.html" target="_blank"&gt;http://support.sas.com/kb/1/632.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Even though your program is not using SAS/GRAPH, you -are- attempting to write to a directory and not to a specific file. You might wish to open a track with Tech Support to determine whether this note is relevant to your issue with FTP filename engine.&lt;BR /&gt;
 &lt;BR /&gt;
Also, this note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/4/470.html" target="_blank"&gt;http://support.sas.com/kb/4/470.html&lt;/A&gt;&lt;BR /&gt;
explains that:&lt;BR /&gt;
&lt;B&gt;When you use the FTP device type with Universal Printing, you may&lt;BR /&gt;
receive the following error message:&lt;BR /&gt;
 &lt;BR /&gt;
Error: Invalid Reply received for the STOR command...&lt;BR /&gt;
&lt;BR /&gt;
The reason is that FTP needs write access to a pre-existing file on&lt;BR /&gt;
the FTP server.&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
   &lt;BR /&gt;
Again, even though this second note was specific to Universal Printing, I sense a "theme" in the use of the FTP filename engine: it might be "happier" if you pointed to a named file. To me, this makes sense. Normally, when I take SAS out of the picture and just use FTP utilities, I am working at the FILE level to FTP back and forth. So I would expect that you can't just FTP a whole directory from within a SAS program -- you'd either have to FTP one file at a time into the directory or use some other kind of process to FTP the contents of an entire directory.&lt;BR /&gt;
 &lt;BR /&gt;
Since these 2 notes do not mention DATA _NULL_ specifically, you might wish to work with Tech Support on this issue. Or, post your entire LOG, as Scott suggests to give folks the most information to attempt to help you.&lt;BR /&gt;
           &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 04 Mar 2010 16:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-directory-using-ftp-filename-statement/m-p/64038#M13941</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-04T16:43:09Z</dc:date>
    </item>
  </channel>
</rss>

