<?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: SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575843#M162943</link>
    <description>The problem was that I had mistakenly put a file name in the path.&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Jul 2019 15:14:37 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2019-07-23T15:14:37Z</dc:date>
    <item>
      <title>SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575827#M162934</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  
 ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';
 ods graphics /imagename="treat" imagefmt=png;
 


PROC SGPLOT DATA=STATD;
SERIES X=HR Y=MEAN_CONC/ GROUP=AGE
MARKERS
MARKERATTRS=(SIZE=10PX)
THICKRESP=MEAN_CONC;
yaxis label='Mean Concentration';
xaxis label ='Time (hrs)';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run this code the graph is produced but I can't output it to my drive.&amp;nbsp; I get the following error:&lt;/P&gt;&lt;P&gt;Can some one tell me how to get around this problem and or how to change my code for getting a *.png file output?&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: GPATH or PATH is not a writable directory. It will be ignored.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Cannot write image to . Please ensure that proper disk permissions are set.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 46 observations read from the data set WORK.STATD.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;88&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;102&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575827#M162934</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-07-23T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575833#M162938</link>
      <description>I believe you need ODS HTML gpath = not listing. It's the HTML destination that's being used in SAS UE.</description>
      <pubDate>Tue, 23 Jul 2019 15:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575833#M162938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-23T15:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575837#M162940</link>
      <description>&lt;P&gt;I'm not sure but&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';&lt;/PRE&gt;
&lt;P&gt;is not a PATH but a File name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to change to:&lt;/P&gt;
&lt;PRE&gt;ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN';&lt;/PRE&gt;
&lt;P&gt;you already defined file name and its format in line:&lt;/P&gt;
&lt;PRE&gt;ods graphics /imagename="treat" imagefmt=png;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575837#M162940</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-07-23T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575842#M162942</link>
      <description>&lt;P&gt;Thanks for pointing out my mistake.&amp;nbsp; Once I got rid of the file name in the path, it ran perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575842#M162942</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-07-23T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575843#M162943</link>
      <description>The problem was that I had mistakenly put a file name in the path.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT/m-p/575843#M162943</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-07-23T15:14:37Z</dc:date>
    </item>
  </channel>
</rss>

