<?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 saved on computer as jpegs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756572#M238905</link>
    <description>&lt;P&gt;SAS ODA can't write files to your local computer.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2021 06:36:23 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-07-26T06:36:23Z</dc:date>
    <item>
      <title>sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756547#M238887</link>
      <description>&lt;P&gt;I am using SGPLOT and would like those plots saved to a specific folder on my Macbook as JPEGS with a new file name.&amp;nbsp; The code I used for SAS University Edition worked:&lt;/P&gt;&lt;P&gt;(towards the beginning)&lt;/P&gt;&lt;P&gt;ODS graphics on / reset imagename="new file name" imagefmt =jpeg;&lt;BR /&gt;ODS listing gpath = "/folders/myfolders/2020/NCSTB/OUTPUT/dest folder/";&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(at the end)&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not working with SAS On Demand for Academics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code generates the plots but I get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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 /pbr/biconfig/940/Lev1/SASApp/stb lf plots22.jpeg. Please ensure that proper disk permissions are set.&lt;/DIV&gt;</description>
      <pubDate>Sun, 25 Jul 2021 23:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756547#M238887</guid>
      <dc:creator>vicdicenzo</dc:creator>
      <dc:date>2021-07-25T23:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756557#M238893</link>
      <description>&lt;P&gt;It seems to work for me. Start from this example and see what you add that makes your code fail.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / reset imagename="new file name" imagefmt =jpeg;
ods listing gpath = '%temp%';
proc sgplot data=sashelp.class; 
  scatter x=WEIGHT y=HEIGHT;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;NOTE: Listing image output written to %temp%\new file name1.jpeg.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Directory of C:\Users\M771879.CORPNZ\AppData\Local\Temp&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;26/07/2021 02:45 p.m. 18,072 new file name1.jpeg&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 02:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756557#M238893</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-26T02:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756572#M238905</link>
      <description>&lt;P&gt;SAS ODA can't write files to your local computer.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756572#M238905</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-26T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756576#M238908</link>
      <description>&lt;P&gt;He's writing to a Unix path, so I assume he's writing to an ODA path.&lt;/P&gt;
&lt;P&gt;This path&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;/pbr/biconfig/940/Lev1/SASApp&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt; is a no-no though as it's the SAS system path.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756576#M238908</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-26T06:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756623#M238921</link>
      <description>&lt;P&gt;Thanks for the code but that did not work. &amp;nbsp;What other ways can I save the graphs as jpegs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS University Edition, I was able to save to a folder on my MacBook that was backed up to iCloud.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 13:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756623#M238921</guid>
      <dc:creator>vicdicenzo</dc:creator>
      <dc:date>2021-07-26T13:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756662#M238938</link>
      <description>You cannot do this in the cloud version. You can save it to the cloud location on On Demand and then manually download the files. You could write programs to automatically upload them to a cloud storage process via On Demand using PROC HTTP as well.</description>
      <pubDate>Mon, 26 Jul 2021 15:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756662#M238938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-26T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot saved on computer as jpegs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756664#M238940</link>
      <description>&lt;P&gt;Thanks - I got it.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 15:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sgplot-saved-on-computer-as-jpegs/m-p/756664#M238940</guid>
      <dc:creator>vicdicenzo</dc:creator>
      <dc:date>2021-07-26T15:16:51Z</dc:date>
    </item>
  </channel>
</rss>

