<?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: Saving Proc GCHart graphs as an image file in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216793#M8086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah that is why. I have to see if I can create a pie chart with SG procedures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 21:45:11 GMT</pubDate>
    <dc:creator>Tpham</dc:creator>
    <dc:date>2015-08-04T21:45:11Z</dc:date>
    <item>
      <title>Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216791#M8084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my code seem to work, but it doesn't seem to save my graph as an image file in the directory I specified. I am unsure how to troubleshoot this and was wondering if anyone can give me some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I goto C:\Graphs, there is nothing there. Does ODS Graphics not work with Proc Gchart? I used the exact ODS graphics and ODS listing code with Proc SGpanel and it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;%macro graph (var);&lt;/P&gt;
&lt;P&gt;DATA _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SET fich;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; array vars(*) &amp;amp;var;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DO i=1 TO dim(vars);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call symput("mvNAME"||strip(i),strip(vname(vars(i))));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call symput("mvLAB"||strip(i),strip(vlabel(vars(i))));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call symput("mvNB",strip(dim(vars)));&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;%DO b=1 %TO &amp;amp;mvNB;&lt;/P&gt;
&lt;P&gt;Title "&amp;amp;&amp;amp;mvLAB&amp;amp;b";&lt;/P&gt;
&lt;P&gt;ods graphics on/reset=all imagename="&amp;amp;&amp;amp;mvNAME&amp;amp;b" width=27.8cm height=14cm;&lt;/P&gt;
&lt;P&gt;ods listing style=custom2 gpath="c:\Graphs";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;proc gchart data=fich;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pie &amp;amp;&amp;amp;mvNAME&amp;amp;b /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISCRETE VALUE=OUTSIDE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERCENT=OUTSIDE SLICE=OUTSIDE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; run; quit;&lt;/P&gt;
&lt;P&gt;ods graphics off;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%mend graph;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;%graph(CS1-CS6);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 19:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216791#M8084</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-08-04T19:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216792#M8085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GChart does not use ODS, the SG procedures do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to save your graphics either &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216792#M8085</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-04T21:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216793#M8086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah that is why. I have to see if I can create a pie chart with SG procedures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216793#M8086</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-08-04T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216794#M8087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you send your HTML output to a specific folder and use the NAME option you will get a PNG file with desired name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html path="C:\graphs";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=fich;&lt;/P&gt;&lt;P&gt;&amp;nbsp; pie &amp;amp;&amp;amp;mvNAME&amp;amp;b /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISCRETE VALUE=OUTSIDE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERCENT=OUTSIDE SLICE=OUTSIDE name=&amp;amp;&amp;amp;mvNAME&amp;amp;b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to make all of your graphs with one pass through the data:&lt;/P&gt;&lt;P&gt;proc gchart data=fich;&lt;/P&gt;&lt;P&gt;%DO b=1 %TO &amp;amp;mvNB;&lt;/P&gt;&lt;P&gt;&amp;nbsp; pie &amp;amp;&amp;amp;mvNAME&amp;amp;b /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISCRETE VALUE=OUTSIDE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERCENT=OUTSIDE SLICE=OUTSIDE name=&amp;amp;&amp;amp;mvNAME&amp;amp;b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though that won't address your potential TITLE issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216794#M8087</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-04T21:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216795#M8088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The title in the graph would be nice, but not essential... Ssince I will be copying and pasting all of these pie chart (82 of them) into an online survey.. I am hoping to have the title in the image itself just as another Quality check to make sure it's the right one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this tomorrow and report back if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216795#M8088</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-08-04T21:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216796#M8089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not output to ODS RTF then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 22:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216796#M8089</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-04T22:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216797#M8090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're on SAS 9.4 you can use SGTemplate/Render:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n156iuqrtmfqk5n1f8yye5xkgkir.htm" title="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n156iuqrtmfqk5n1f8yye5xkgkir.htm"&gt;SAS(R) 9.4 Graph Template Language: Reference, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 22:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216797#M8090</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-08-04T22:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Proc GCHart graphs as an image file</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216798#M8091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sadly on 9.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 22:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Saving-Proc-GCHart-graphs-as-an-image-file/m-p/216798#M8091</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-08-04T22:20:55Z</dc:date>
    </item>
  </channel>
</rss>

