<?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 fdelete function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90468#M19160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using below code to delet the file from below path, but its dleteing the file from the specified path and getting return code is 20029&lt;BR /&gt;data _null_; &lt;BR /&gt;rc1=filename("x","/opt/app/SAS/test/1.bin");&amp;nbsp; &lt;BR /&gt;rc2=fdelete("x");&amp;nbsp; &lt;BR /&gt;rc3=filename("x","");&amp;nbsp; &lt;BR /&gt;put rc1= rc2= rc3=;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;run;&lt;BR /&gt;output:&lt;BR /&gt;rc1=0 rc2=20029 rc3=0 ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using SAS 9.2. Can&amp;nbsp; any one help me in this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 12:26:44 GMT</pubDate>
    <dc:creator>sunilreddy</dc:creator>
    <dc:date>2012-04-20T12:26:44Z</dc:date>
    <item>
      <title>fdelete function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90468#M19160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using below code to delet the file from below path, but its dleteing the file from the specified path and getting return code is 20029&lt;BR /&gt;data _null_; &lt;BR /&gt;rc1=filename("x","/opt/app/SAS/test/1.bin");&amp;nbsp; &lt;BR /&gt;rc2=fdelete("x");&amp;nbsp; &lt;BR /&gt;rc3=filename("x","");&amp;nbsp; &lt;BR /&gt;put rc1= rc2= rc3=;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;run;&lt;BR /&gt;output:&lt;BR /&gt;rc1=0 rc2=20029 rc3=0 ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using SAS 9.2. Can&amp;nbsp; any one help me in this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 12:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90468#M19160</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2012-04-20T12:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: fdelete function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90469#M19161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, either the file &lt;STRONG&gt;/opp/app/SAS/test/1.bin&lt;/STRONG&gt; does not exist or the UNIX account from where you are running SAS does not have permission to delete the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FILENAME function just defines a "fileref"; the file itself does not have to already exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as an experiment, see if you can create a file and then delete it using the SYSTEM function to execute a plain old UNIX commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rc = system('touch /opt/app/SAS/test/foo'); /* Create an empty file */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;put 'Created file foo' rc=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rc = system('rm /opt/app/SAS/test/foo');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;put 'Deleted file foo' rc=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;That might lead you to a solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 23:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90469#M19161</guid>
      <dc:creator>BobD</dc:creator>
      <dc:date>2012-04-20T23:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: fdelete function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90470#M19162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this...it worked for me in window environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FILENAME test "F:\Test\tes.xlsx"&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA _NULL_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = FDELETE('test') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put rc=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN ;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 04:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/fdelete-function/m-p/90470#M19162</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-04-23T04:33:12Z</dc:date>
    </item>
  </channel>
</rss>

