<?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 Saving Graph as PNG in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Graph-as-PNG/m-p/42940#M1370</link>
    <description>Guys i was trying to save my graph output to a specified path.&lt;BR /&gt;
I wanted the output to be a .png file.&lt;BR /&gt;
&lt;BR /&gt;
I tried using the below code but the PNG file gets created in the work library and not in the defined my_folder path.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions... would be helpful&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
filename graphout "/my_folder/";&lt;BR /&gt;
goptions reset=all device=png gsfname=graphout;&lt;BR /&gt;
PROC GPLOT DATA = sashelp.class;&lt;BR /&gt;
PLOT Age * Name  / name="mychart2"&lt;BR /&gt;
 	VAXIS=AXIS1&lt;BR /&gt;
&lt;BR /&gt;
	HAXIS=AXIS2&lt;BR /&gt;
&lt;BR /&gt;
FRAME;&lt;BR /&gt;
RUN; QUIT;</description>
    <pubDate>Thu, 02 Dec 2010 11:41:11 GMT</pubDate>
    <dc:creator>NN</dc:creator>
    <dc:date>2010-12-02T11:41:11Z</dc:date>
    <item>
      <title>Saving Graph as PNG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Graph-as-PNG/m-p/42940#M1370</link>
      <description>Guys i was trying to save my graph output to a specified path.&lt;BR /&gt;
I wanted the output to be a .png file.&lt;BR /&gt;
&lt;BR /&gt;
I tried using the below code but the PNG file gets created in the work library and not in the defined my_folder path.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions... would be helpful&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
filename graphout "/my_folder/";&lt;BR /&gt;
goptions reset=all device=png gsfname=graphout;&lt;BR /&gt;
PROC GPLOT DATA = sashelp.class;&lt;BR /&gt;
PLOT Age * Name  / name="mychart2"&lt;BR /&gt;
 	VAXIS=AXIS1&lt;BR /&gt;
&lt;BR /&gt;
	HAXIS=AXIS2&lt;BR /&gt;
&lt;BR /&gt;
FRAME;&lt;BR /&gt;
RUN; QUIT;</description>
      <pubDate>Thu, 02 Dec 2010 11:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Graph-as-PNG/m-p/42940#M1370</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2010-12-02T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Graph as PNG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Graph-as-PNG/m-p/42941#M1371</link>
      <description>A filename is a filename  and not a directory only&lt;BR /&gt;
&lt;BR /&gt;
on windows it works with by example with&lt;BR /&gt;
&lt;BR /&gt;
filename graphout "d:\temp\name.png";&lt;BR /&gt;
&lt;BR /&gt;
the  -- name.png -- is the name of the file  and is located where you/i indicate it&lt;BR /&gt;
even if you have in your work.gseg an object grseg with Mychart2 name &lt;BR /&gt;
after a first try!&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Thu, 02 Dec 2010 12:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Graph-as-PNG/m-p/42941#M1371</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-12-02T12:38:10Z</dc:date>
    </item>
  </channel>
</rss>

