<?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 SAS is asking for disk permissions. What do I do to stop this? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779360#M38248</link>
    <description>&lt;P&gt;I have the following code in an autoexec.&lt;/P&gt;
&lt;PRE&gt;*ODS STATEMENTS RESET;
options mrecall;
%macro odsReset;
ods path reset; 
ods _ALL_ close; 
ods trace on;
ods noptitle; 
ods graphics on;
ods listing;
%mend odsReset;
%odsReset;

*ODS GRAPHICS;
*The default location is the current directory for the SAS program that generated the graphic image;
%let sasworklocation="%trim(%sysfunc(pathname(work)))";
ods listing gpath=&amp;amp;sasworklocation; 
&lt;/PRE&gt;
&lt;P&gt;The past day I am getting an error message concerning disk permissions I don't understand. Please see attached file. Can you help?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 15:18:55 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2021-11-09T15:18:55Z</dc:date>
    <item>
      <title>SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779360#M38248</link>
      <description>&lt;P&gt;I have the following code in an autoexec.&lt;/P&gt;
&lt;PRE&gt;*ODS STATEMENTS RESET;
options mrecall;
%macro odsReset;
ods path reset; 
ods _ALL_ close; 
ods trace on;
ods noptitle; 
ods graphics on;
ods listing;
%mend odsReset;
%odsReset;

*ODS GRAPHICS;
*The default location is the current directory for the SAS program that generated the graphic image;
%let sasworklocation="%trim(%sysfunc(pathname(work)))";
ods listing gpath=&amp;amp;sasworklocation; 
&lt;/PRE&gt;
&lt;P&gt;The past day I am getting an error message concerning disk permissions I don't understand. Please see attached file. Can you help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 15:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779360#M38248</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-09T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779386#M38251</link>
      <description>Explicitly set where you would like your graphs saved. &lt;BR /&gt;&lt;BR /&gt;ods listing / gpath = 'path to save my graphic files';</description>
      <pubDate>Tue, 09 Nov 2021 17:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779386#M38251</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-09T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779648#M38261</link>
      <description>&lt;P&gt;Thank you for the reply. I found that the following code works for different procedures. I have to include it immediately before the plot code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing gpath = '/home/u... /Stat.XXX.graphs';&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;ods graphics on / imagename ="DiagnosticsPanel" imagefmt=tiff;&lt;/PRE&gt;
&lt;P&gt;I like each graph to have a name I chose. Am I doing it correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 20:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779648#M38261</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-10T20:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779716#M38262</link>
      <description>&lt;P&gt;Either your autoexec has been circumvented, or overridden by later code. Run these statements as part of your output code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let sasworklocation="%trim(%sysfunc(pathname(work)))";
ods listing gpath=&amp;amp;sasworklocation&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you use other ODS destinations, make sure that the same path is used.&lt;/P&gt;
&lt;P&gt;Keep in mind that using the WORK location means that the images will vanish once you end your SAS session.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779716#M38262</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-11T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779717#M38263</link>
      <description>&lt;P&gt;And please do always (as in&amp;nbsp;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;) post your log by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Having to repeatedly switch between the pdf previewer and the main post while composing an answer is a PITA. And we can't copy/paste log excerpts from a picture.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779717#M38263</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-11T06:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS is asking for disk permissions. What do I do to stop this?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779733#M38264</link>
      <description>&lt;P&gt;And to give you some technical background:&lt;/P&gt;
&lt;P&gt;Whenever you let SAS create something without an explicit &lt;EM&gt;absolute&lt;/EM&gt; path, the SAS session will try to put that in its &lt;EM&gt;current working directory&lt;/EM&gt;, which is the location of the script that started SAS on the backend (or a location set within that script). This location is (in server-based SAS setups) within the SAS configuration tree, where only the SAS installation user (or the superuser, as you are on UNIX) have write permission.&lt;/P&gt;
&lt;P&gt;An &lt;EM&gt;absolute&lt;/EM&gt; path starts at the root of the filesystem (/ in UNIX, or a drive letter/backslash or UNC location in Windows). SAS On Demand allows the use of the tilde (~) as an absolute path to your home directory; you could also use $HOME for that.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 08:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-is-asking-for-disk-permissions-What-do-I-do-to-stop-this/m-p/779733#M38264</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-11T08:28:54Z</dc:date>
    </item>
  </channel>
</rss>

