<?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: Delete invalid folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574302#M162250</link>
    <description>&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename deldir "/usr/apps/.../_Error_Report;GOPTIONS NOACCESSIBLE;;*';*";
data _null_;
	rc = fdelete('deldir');
	put rc=;
	msg2=sysmsg();
	put msg2=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                                14:22 Monday, July 15, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=ACTIVEX;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///D:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         filename deldir
26       ! "/usr/apps/../_E
26       ! rror_Report;GOPTIONS NOACCESSIBLE;;*';*";
27         data _null_;
28         	rc = fdelete('deldir');
29         	put rc=;
30         	msg2=sysmsg();
31         	put msg2=;
32         run;

&lt;STRONG&gt;INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
      30:2     msg2
rc=20017
msg2=ERROR: Invalid physical name.&lt;/STRONG&gt;
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              349.21k
      OS Memory           55364.00k
      Timestamp           07/17/2019 01:26:07 PM
      Step Count                        58  Switch Count  0
      Page Faults                       0
      Page Reclaims                     50
      Page Swaps                        0
      Voluntary Context Switches        0
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      
2                                                          The SAS System                                14:22 Monday, July 15, 2019


33         
34         GOPTIONS NOACCESSIBLE;
35         %LET _CLIENTTASKLABEL=;
36         %LET _CLIENTPROCESSFLOWNAME=;
37         %LET _CLIENTPROJECTPATH=;
38         %LET _CLIENTPROJECTPATHHOST=;
39         %LET _CLIENTPROJECTNAME=;
40         %LET _SASPROGRAMFILE=;
41         %LET _SASPROGRAMFILEHOST=;
42         
43         ;*';*";*/;quit;run;
44         ODS _ALL_ CLOSE;
45         
46         
47         QUIT; RUN;
48         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 17:31:27 GMT</pubDate>
    <dc:creator>Ramesh_165</dc:creator>
    <dc:date>2019-07-17T17:31:27Z</dc:date>
    <item>
      <title>Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574038#M162123</link>
      <description>&lt;P&gt;I'm trying to delete the below folder created by mistake (not sure how it got created in the first place though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Folder name: &lt;STRONG&gt;_Error_Report;GOPTIONS NOACCESSIBLE;;*';*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Invalid SAS folder.PNG" style="width: 306px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31081i14FF2CE1F20F8040/image-size/large?v=v2&amp;amp;px=999" role="button" title="Invalid SAS folder.PNG" alt="Invalid SAS folder.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried deleting it manually in egp, and also using the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename deldir "File_Folder&amp;amp;i..";&lt;BR /&gt;data _null_;&lt;BR /&gt;rc = fdelete('deldir');&lt;BR /&gt;put rc=;&lt;BR /&gt;msg2=sysmsg();&lt;BR /&gt;put msg2=;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the below errors.&lt;/P&gt;&lt;P&gt;rc=20017&lt;BR /&gt;msg2=ERROR: Invalid physical name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to delete this folder is much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 22:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574038#M162123</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-16T22:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574041#M162125</link>
      <description>Try using the full path directly in FDELETE? I suspect your FILENAME reference is incorrect, so pass the full file name and see if that works out. &lt;BR /&gt;&lt;BR /&gt;*your file name has _error_report... and  &amp;amp;I is usually a number so I don't think it goes where you want it to. You can right click the file, properties and get the path from there.</description>
      <pubDate>Tue, 16 Jul 2019 22:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574041#M162125</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-16T22:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574049#M162129</link>
      <description>&lt;P&gt;If the server runs does not run under under Windows, you can try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CMD pipe 'rm -rf ""folderpath"" ';
data _null_;
  infile CMD;
  input; 
  put _infile_; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Supposing the server runs under Windows:&lt;/P&gt;
&lt;P&gt;Windows does not accept stars as part of folder names, so it looks like Windows allowed untoward things here.&lt;/P&gt;
&lt;P&gt;Your best bet is to delete it using its short name.&lt;/P&gt;
&lt;P&gt;You can see the short name by running the DIR command with the /X option.&lt;/P&gt;
&lt;P&gt;Probably something like&amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;del _ERROR~1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 01:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574049#M162129</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-07-17T01:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574256#M162229</link>
      <description>&lt;P&gt;The code pasted above had that incorrect &amp;amp;i, however I had ran it with out the &amp;amp;i.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the actual path directly to the FDELETE command. Still the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 16:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574256#M162229</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-17T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574257#M162230</link>
      <description>&lt;P&gt;We don't have "sas x command" enabled in our site. So I'm afraid I can use pipe commands.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 16:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574257#M162230</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-17T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574259#M162232</link>
      <description>Post your code and log. The folder was created likely because of a missing semi-colon somewhere.</description>
      <pubDate>Wed, 17 Jul 2019 16:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574259#M162232</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T16:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574302#M162250</link>
      <description>&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename deldir "/usr/apps/.../_Error_Report;GOPTIONS NOACCESSIBLE;;*';*";
data _null_;
	rc = fdelete('deldir');
	put rc=;
	msg2=sysmsg();
	put msg2=;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          The SAS System                                14:22 Monday, July 15, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program (2)';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=ACTIVEX;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///D:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         filename deldir
26       ! "/usr/apps/../_E
26       ! rror_Report;GOPTIONS NOACCESSIBLE;;*';*";
27         data _null_;
28         	rc = fdelete('deldir');
29         	put rc=;
30         	msg2=sysmsg();
31         	put msg2=;
32         run;

&lt;STRONG&gt;INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
      30:2     msg2
rc=20017
msg2=ERROR: Invalid physical name.&lt;/STRONG&gt;
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              349.21k
      OS Memory           55364.00k
      Timestamp           07/17/2019 01:26:07 PM
      Step Count                        58  Switch Count  0
      Page Faults                       0
      Page Reclaims                     50
      Page Swaps                        0
      Voluntary Context Switches        0
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      
2                                                          The SAS System                                14:22 Monday, July 15, 2019


33         
34         GOPTIONS NOACCESSIBLE;
35         %LET _CLIENTTASKLABEL=;
36         %LET _CLIENTPROCESSFLOWNAME=;
37         %LET _CLIENTPROJECTPATH=;
38         %LET _CLIENTPROJECTPATHHOST=;
39         %LET _CLIENTPROJECTNAME=;
40         %LET _SASPROGRAMFILE=;
41         %LET _SASPROGRAMFILEHOST=;
42         
43         ;*';*";*/;quit;run;
44         ODS _ALL_ CLOSE;
45         
46         
47         QUIT; RUN;
48         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574302#M162250</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-17T17:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574304#M162252</link>
      <description>You don't actually have the ... in your path do you?</description>
      <pubDate>Wed, 17 Jul 2019 17:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574304#M162252</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T17:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574318#M162260</link>
      <description>No. The dots are for just posting it in the blog purposes.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574318#M162260</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-17T18:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574339#M162266</link>
      <description>Well, so far it seems like the issue is still the filename portion. You'll need to figure out how to reference it exactly, the method of copying the path from properties usually works, is that the approach you used?</description>
      <pubDate>Wed, 17 Jul 2019 19:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574339#M162266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T19:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574343#M162267</link>
      <description>&lt;P&gt;I'm asking myself if the stars in the foldername are creating issues when trying to delete the folder programmatically.&lt;/P&gt;
&lt;P&gt;You've posted a picture of the folder. Can't you delete it right there manually with the browser you're using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574343#M162267</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-17T19:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574377#M162280</link>
      <description>&lt;P&gt;So you are under unix and the name is probably valid then. There may be special characters there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can retrieve the exact name (and process the folder) using one of the many SAS folder-reading utilities on the web, such as&amp;nbsp;&lt;A href="http://www.sascommunity.org/wiki/Filelist_macro" target="_self"&gt;this one&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 21:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/574377#M162280</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-07-17T21:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575512#M162818</link>
      <description>&lt;P&gt;No, the manual delete fails too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DeleteFolderGoOptions.PNG" style="width: 387px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31195i81ED2187BCD26282/image-size/large?v=v2&amp;amp;px=999" role="button" title="DeleteFolderGoOptions.PNG" alt="DeleteFolderGoOptions.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DeleteFolderError.PNG" style="width: 476px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31196iBAF173AE077BCF7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DeleteFolderError.PNG" alt="DeleteFolderError.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 17:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575512#M162818</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-22T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575546#M162832</link>
      <description>&lt;P&gt;Did you try using \ in the filename to escape the special characters?&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   length filename $500;
   filename = "/path/to/where/file/is/" || "_Error_Report;GOPTIONS NOACCESSIBLE;;*';*";
   filename = tranwrd(filename,'*','\*');
   filename = tranwrd(filename,';','\;');
   filename = tranwrd(filename,"'","\'");
&amp;nbsp;&amp;nbsp;&amp;nbsp;rc=filename('myfile',filename);
&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;rc&amp;nbsp;then&amp;nbsp;put&amp;nbsp;'Unable&amp;nbsp;to&amp;nbsp;make&amp;nbsp;fileref.&amp;nbsp;'&amp;nbsp;rc=;
&amp;nbsp;&amp;nbsp;&amp;nbsp;else&amp;nbsp;do;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rc=fdelete('myfile');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;rc&amp;nbsp;then&amp;nbsp;put&amp;nbsp;'Unable&amp;nbsp;to&amp;nbsp;delete&amp;nbsp;file.&amp;nbsp;'&amp;nbsp;rc=;
&amp;nbsp;&amp;nbsp;&amp;nbsp;end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps since it looks like it might be a folder and not a file you need to make sure there aren't any files inside of it before you can delete the folder.&amp;nbsp; Also looks like the syntax for FDELETE() when deleting a folder is different than when deleting a file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 19:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575546#M162832</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-22T19:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575553#M162833</link>
      <description>Fastest solution is probably to go to the server directly and use an RM (remove) command to delete that file - very carefully of course. If you have x commands enabled (not usually with EG) you may want to consider that anyways.</description>
      <pubDate>Mon, 22 Jul 2019 19:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575553#M162833</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete invalid folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575654#M162890</link>
      <description>&lt;P&gt;Yes, I ended up contacting SAS admin at our site. He was able to get into the server and delete the folder for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for time and continuous ideas. I appreciate it!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 06:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-invalid-folder/m-p/575654#M162890</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2019-07-23T06:31:48Z</dc:date>
    </item>
  </channel>
</rss>

