<?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: Deleting external file in FTP... in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17184#M3234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can specify the delete command on the RCMD parameter of the filename statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;﻿FILENAME FILEREF FTP "ABC.DAT" HOST="TESTHOST" USER="USERNAME" PASS="PASSWORD" RCMD="DELE ABC.DAT";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #993366; font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif;"&gt;otherwise you&amp;nbsp; can try this also&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;QUOTE RCMD DLTF FILE(mylib/myfile)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;mylib is the name of the library from which the file is to be deleted. myfile is the name of the file to be deleted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dhanasekaran R &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366; font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 06:07:17 GMT</pubDate>
    <dc:creator>dhana</dc:creator>
    <dc:date>2011-09-27T06:07:17Z</dc:date>
    <item>
      <title>Deleting external file in FTP...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17183#M3233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i have a senario that read external file from ftp and after reading it, i wish to made a deletion on that particular external file.&lt;/P&gt;&lt;P&gt;i tried FDELETE but seem it cant do so.&lt;/P&gt;&lt;P&gt;my colleage tell that fdelete function are only access to a local directory but not remote directory.&lt;/P&gt;&lt;P&gt;is there any other method to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seeking for help, thanks you. Apperciate its alot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;LiangCk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 03:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17183#M3233</guid>
      <dc:creator>Liangck</dc:creator>
      <dc:date>2011-09-27T03:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting external file in FTP...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17184#M3234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can specify the delete command on the RCMD parameter of the filename statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;﻿FILENAME FILEREF FTP "ABC.DAT" HOST="TESTHOST" USER="USERNAME" PASS="PASSWORD" RCMD="DELE ABC.DAT";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #993366; font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial,helvetica,sans-serif;"&gt;otherwise you&amp;nbsp; can try this also&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;QUOTE RCMD DLTF FILE(mylib/myfile)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;mylib is the name of the library from which the file is to be deleted. myfile is the name of the file to be deleted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dhanasekaran R &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366; font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 06:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17184#M3234</guid>
      <dc:creator>dhana</dc:creator>
      <dc:date>2011-09-27T06:07:17Z</dc:date>
    </item>
    <item>
      <title>Deleting external file in FTP...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17185#M3235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly , make sure you have right to deleting files at ftp .&lt;/P&gt;&lt;P&gt;And also you can use OS command to delete it.&lt;/P&gt;&lt;P&gt;Start-&amp;gt; Run-&amp;gt; cmd-&amp;gt; ftp 10.1.2.2 -&amp;gt; del ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it should be worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 06:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17185#M3235</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-09-27T06:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting external file in FTP...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17186#M3236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DHNA and Ksharp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for your advice, i done it with fdelete alreadly..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;filename fileDel ftp "&amp;amp;&amp;amp;SAS_Import&amp;amp;&amp;amp;Note&amp;amp;I&amp;amp;&amp;amp;Data_Upload&amp;amp;&amp;amp;Docm&amp;amp;J"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host=&amp;amp;ftpHost&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user=&amp;amp;ftpUser pass=&amp;amp;ftpPass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prompt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let rc = %sysfunc(fdelete(fileDel)); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks anyway.Apperciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Liangck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 04:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Deleting-external-file-in-FTP/m-p/17186#M3236</guid>
      <dc:creator>Liangck</dc:creator>
      <dc:date>2011-09-29T04:05:17Z</dc:date>
    </item>
  </channel>
</rss>

