<?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: Specify SGPlot png output location in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622259#M19404</link>
    <description>&lt;P&gt;That means that you do no have permission to write to "/lupra00a0134/temp/day". SAS cannot override the userid permissions on your Linux system.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 18:07:58 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2020-02-04T18:07:58Z</dc:date>
    <item>
      <title>Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622251#M19401</link>
      <description>&lt;P&gt;I'm running Base 9.4M6 on Linux.&amp;nbsp; I have an SGPlot module which produces a png file (showing horizontal bar charts of monthly data loaded into various Oracle tables), but I haven't been able to find out how to specify what directory the png file should go to.&amp;nbsp; Below is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*******************************************************;
* Set up plot and plot file location ;
*******************************************************;
** ods body="&amp;amp;out..png" gpath="&amp;amp;outdir";
ods graphics on / imagefmt=png imagename="u01bri_data_ranges_04feb2020_is2" width=10.0in height=6.0in;
title "Main Oracle tables in u01bri.is2";
title2 "Monthly data min and max dates (as of 04feb2020)";
footnote2 h=5pt j=left "/lupra00a0734/usr/u022922/0_CMFPROD/trunk/sgplot/plot_horiz_bar_ora_dates.sas";

proc sgplot data=WORK.u01bri_data_ranges_04feb2020 noborder noautolegend;
    where db_schema = "is2";
    highlow y=db_table low=earliest high=latest 
    / type=bar lowlabel=earliest highlabel=latest grouporder=ascending;
    yaxis label="";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622251#M19401</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T17:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622257#M19402</link>
      <description>&lt;P&gt;It depends on your ODS output destination. For ODS LISTING (which would meet your needs), use the GPATH option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing gpath="/directory/for/image/";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622257#M19402</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-02-04T18:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622258#M19403</link>
      <description>&lt;P&gt;Thanks Dan.&amp;nbsp; I tried that after searching some other posts in the meantime, but get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   ** ods body="&amp;amp;out..png" gpath="&amp;amp;outdir";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   ODS LISTING GPATH = "/lupra00a0134/temp/day/";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   ods graphics on / imagefmt=png imagename="u01bri_data_ranges_04feb2020_is2" width=10.0in height=6.0in;
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   title "Main Oracle tables in u01bri.is2";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   title2 "Monthly data min and max dates (as of 04feb2020)";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   footnote2 h=5pt j=left "/lupra00a0734/usr/u022922/0_CMFPROD/trunk/sgplot/plot_horiz_bar_ora_dates.sas";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   proc sgplot data=WORK.u01bri_data_ranges_04feb2020 noborder noautolegend;
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   where db_schema = "is2";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   highlow y=db_table low=earliest high=latest / type=bar lowlabel=earliest highlabel=latest grouporder=ascending;
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   yaxis label="";
MPRINT(PLOT_HORIZ_BAR_ORA_DATES):   run;

NOTE: PROCEDURE SGPLOT used (Total process time):
      real time           1.91 seconds
      cpu time            0.05 seconds

WARNING: GPATH or PATH is not a writable directory. It will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622258#M19403</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622259#M19404</link>
      <description>&lt;P&gt;That means that you do no have permission to write to "/lupra00a0134/temp/day". SAS cannot override the userid permissions on your Linux system.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622259#M19404</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-02-04T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622260#M19405</link>
      <description>&lt;P&gt;I tested that too, I was able, under my ID (which is also how I run my SAS program from the Linux command line), to create and save a test file on that directory.&amp;nbsp; So there's something else going on here.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622260#M19405</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T18:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622261#M19406</link>
      <description>&lt;P&gt;How are you running your SAS program? via command line, Display Manager, or SAS Studio?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622261#M19406</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-02-04T18:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622263#M19407</link>
      <description>&lt;P&gt;Linux command line.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622263#M19407</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T18:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622265#M19408</link>
      <description>&lt;P&gt;I've seen that same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;WARNING: GPATH or PATH is &lt;/SPAN&gt;&lt;SPAN class="token operator" style="box-sizing: inherit; color: #a67f59; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; a writable directory&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; It will be ignored&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in several of the other SGPLOT posts in this site as well.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622265#M19408</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T18:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622272#M19409</link>
      <description>&lt;P&gt;Try this and see if the log file is written into your directory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Put the following in "print.sas":&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; proc print data=sashelp.class; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. run sas on the command line with the following options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; sas -log&amp;nbsp;&lt;SPAN&gt;/lupra00a0134/temp/day/print.log print.sas&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. See if the log file is created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622272#M19409</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-02-04T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622292#M19410</link>
      <description>&lt;P&gt;Hmmm - you solved it.&amp;nbsp; I tried running print.sas and it said,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;. . .&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;-rw-rw-r-- 1 u022922 spmi&amp;nbsp;&amp;nbsp; 40 Feb&amp;nbsp; 4 13:48 print.sas&lt;BR /&gt;u022922@lupra00a0734 /lupra00a0734/usr/u022922/0_CMFPROD/trunk/sgplot&lt;BR /&gt;$ sas -log /lupra00a0134/temp/day/print.log print.sas&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;ERROR: Physical file does not exist, /lupra00a0134/temp/day/print.log.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;When I looked at it a little more closely, I realized it was a directory from another server - one we had used up until a month or so ago when we migrated to a new server, not lupra00a0&lt;STRONG&gt;1&lt;/STRONG&gt;34 but lupra00a0&lt;STRONG&gt;7&lt;/STRONG&gt;34 (and we name our directories beginning with the server name).&amp;nbsp; My SGPLOT code was left over from that earlier time and was trying to write to the former server.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So thanks Dan.&amp;nbsp; Hope you don't get discouraged narrowing down these big problems that turn out to be really mundane in the end&amp;nbsp; : )&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622292#M19410</guid>
      <dc:creator>DougZ</dc:creator>
      <dc:date>2020-02-04T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Specify SGPlot png output location</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622294#M19411</link>
      <description>&lt;P&gt;No problem :-). Glad you got it worked out.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 20:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Specify-SGPlot-png-output-location/m-p/622294#M19411</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2020-02-04T20:13:18Z</dc:date>
    </item>
  </channel>
</rss>

