<?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: Clutter in user folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596565#M171783</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255651"&gt;@gabonzo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;Still, I would prefer to have SAS do a proper cleaning on it own &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You could set the default path for those files to the WORK folder, which in general (as you know) is automatically deleted at the end of a SAS session. Again, the autoexec.sas would be a suitable place for a statement such as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing gpath="%sysfunc(pathname(WORK))";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(For HTML files, if any, there is a checkbox "Use WORK folder" in Tools --&amp;gt; Options --&amp;gt; Preferences... --&amp;gt; Results.)&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 15:37:09 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2019-10-15T15:37:09Z</dc:date>
    <item>
      <title>Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596538#M171770</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my user folder is getting cluttered by hundreds of plots and histograms. When I close SAS, the folder is not emptied, and I have to do it manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option to force SAS to clean the user area from temporary plots?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 14:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596538#M171770</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2019-10-15T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596544#M171773</link>
      <description>&lt;P&gt;If you can run X statements or %sysexec you might just write a small program line or two and put it in your autoexec.sas file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x&amp;nbsp;'del c:\pathtouserlibrary\*.png'&lt;/P&gt;
&lt;P&gt;x 'del c:\pathtouserlibrary\*.html'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or have that as an autocall macro to call when needed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 14:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596544#M171773</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-15T14:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596561#M171781</link>
      <description>It's not a bad idea per se, I could do that in autoexec.sas&lt;BR /&gt;&lt;BR /&gt;Still, I would prefer to have SAS do a proper cleaning on it own &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596561#M171781</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2019-10-15T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596565#M171783</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255651"&gt;@gabonzo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;Still, I would prefer to have SAS do a proper cleaning on it own &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You could set the default path for those files to the WORK folder, which in general (as you know) is automatically deleted at the end of a SAS session. Again, the autoexec.sas would be a suitable place for a statement such as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing gpath="%sysfunc(pathname(WORK))";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(For HTML files, if any, there is a checkbox "Use WORK folder" in Tools --&amp;gt; Options --&amp;gt; Preferences... --&amp;gt; Results.)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596565#M171783</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-10-15T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596566#M171784</link>
      <description>Yes, that would be the ideal solution. Thank you!</description>
      <pubDate>Tue, 15 Oct 2019 15:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596566#M171784</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2019-10-15T15:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596571#M171787</link>
      <description>&lt;P&gt;Ok, but please help me here:&lt;/P&gt;&lt;P&gt;I looked in the Tools --&amp;gt; Options --&amp;gt; Preferences... --&amp;gt; Results window, and the "Use WORK folder" checkbox was already set.&lt;BR /&gt;I still get the results html file in the user folder, what am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596571#M171787</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2019-10-15T15:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596582#M171791</link>
      <description>&lt;P&gt;Ok, I think I got it. If you use:&lt;/P&gt;&lt;PRE&gt;ods html gpath="%sysfunc(pathname(WORK))";&lt;/PRE&gt;&lt;P&gt;Then the image files are sent to the work directory, but the HTML file is sent to the user directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you instead use:&lt;/P&gt;&lt;PRE&gt;ods html path="%sysfunc(pathname(WORK))";&lt;/PRE&gt;&lt;P&gt;Then both the HTML file and the images are sent to the work directory. You could specify different path and gpath if you wanted to, but it's not what I need here.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 16:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596582#M171791</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2019-10-15T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clutter in user folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596583#M171792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255651"&gt;@gabonzo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok, but please help me here:&lt;/P&gt;
&lt;P&gt;I looked in the Tools --&amp;gt; Options --&amp;gt; Preferences... --&amp;gt; Results window, and the "Use WORK folder" checkbox was already set.&lt;BR /&gt;I still get the results html file in the user folder, what am I doing wrong?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The options list check box for results is basically setting the behavior for the one level data set name. If you have a USER library then one level names go there, not the actual WORK library. And USER libraries don't get cleaned. I did find that if you uncheck "Use Work folder" and change active directories frequently you can end up with HTML and PNG scattered all over your drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not want HTML files in the USER library you would&amp;nbsp; have to do something else.&amp;nbsp;I haven't quite figured out a real good alternative. You could send ALL of your HTML to another&amp;nbsp;specific&amp;nbsp;folder but it would not get cleaned up either but they&amp;nbsp;won't be in the USER library. Just set a specific path under the Create HTML and uncheck the "use work folder"&amp;nbsp;&amp;nbsp;I basically don't worry about it much and just clean up my USER library with a script periodically.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 16:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clutter-in-user-folder/m-p/596583#M171792</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-15T16:16:43Z</dc:date>
    </item>
  </channel>
</rss>

