<?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: SAS macro for sgpie multiple images in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811940#M320314</link>
    <description>&lt;P&gt;Those times showing 0.0 seconds are suspicious.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you turn on options MPRINT and then show the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its it possible there are no records with ImageID=1,2,3 ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's kind of scary to see a dataset named data.&amp;nbsp; But I guess it's allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set data;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that work?&amp;nbsp; I'm wondering if maybe your code had an earlier error and it entered syntaxcheck mode and set OBS=0.&amp;nbsp; That stops any code from executing.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 20:44:58 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-05-06T20:44:58Z</dc:date>
    <item>
      <title>SAS macro for sgpie multiple images</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811930#M320308</link>
      <description>&lt;P&gt;I am trying to run a macro to create multiple pie charts for several image numberse (1-34). Below is my code and log. I don't get any errors in my log, but I don't get any output either (no plots are generated in results viewer or ods rtf). Please help!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics /reset=all width=2in height=2in;
%macro pie;
%do num=1 %to 34;
proc sgpie data=data noautolegend
 	dattrmap=attrmap;
 	pie feature / 
 	datalabelloc=inside datalabeldisplay=(response percent ) datalabelattrs=(size=11 family='CENTB' weight=bold)
startangle=90 dataskin=crisp attrid=myid;
where ImageID=&amp;amp;num;
run;
%end;
%mend pie;
%pie;

Log:
NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2022 19:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811930#M320308</guid>
      <dc:creator>Abishekaa</dc:creator>
      <dc:date>2022-05-06T19:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for sgpie multiple images</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811931#M320309</link>
      <description>&lt;P&gt;Do you get any WARNINGs in the log?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Can you please show us the &lt;FONT color="#FF0000"&gt;ENTIRE*&lt;/FONT&gt; log for this macro (including the part where you issue the ODS RTF command)? (And please do this every time in the future, show us the ENTIRE log for this macro, do not show us a small portion of the log). Please copy the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66123iA4EF494F9CA0F6EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" alt="2021-11-26 08_27_29-Reply to Message - SAS Support Communities — Mozilla Firefox.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* — as this log is iterative, and runs essentially the same code for 34 iterations, just show us the log for the first five iterations&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 19:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811931#M320309</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-06T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for sgpie multiple images</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811934#M320312</link>
      <description>&lt;PRE&gt;10150  ods rtf file="C:\Users\abi\Desktop\Output\macrotest &amp;amp;today..rtf"
10151  startpage=no bodytitle;
NOTE: Writing RTF Body file: C:\Users\abi\Desktop\Output\macrotest 050622.rtf
10152  ods graphics on;
10153
10154
10155  ods graphics /reset=all width=2in height=2in;
10156  %macro pie;
10157  %do num=1 %to 34;
10158  proc sgpie data=data noautolegend
10159      dattrmap=attrmap;
10160      pie feature /
10161      datalabelloc=inside datalabeldisplay=(response percent ) datalabelattrs=(size=11 family='CENTB' weight=bold)
10162  startangle=90 dataskin=crisp attrid=myid;
10163  where ImageID=&amp;amp;num;
10164  run;
10165  %end;
10166  %mend pie;
10167  %pie;

NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds



NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds



NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds



NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds



NOTE: PROCEDURE SGPIE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

10168
10169  ods rtf close;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2022 19:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811934#M320312</guid>
      <dc:creator>Abishekaa</dc:creator>
      <dc:date>2022-05-06T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro for sgpie multiple images</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811940#M320314</link>
      <description>&lt;P&gt;Those times showing 0.0 seconds are suspicious.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you turn on options MPRINT and then show the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its it possible there are no records with ImageID=1,2,3 ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's kind of scary to see a dataset named data.&amp;nbsp; But I guess it's allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just run:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set data;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that work?&amp;nbsp; I'm wondering if maybe your code had an earlier error and it entered syntaxcheck mode and set OBS=0.&amp;nbsp; That stops any code from executing.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-for-sgpie-multiple-images/m-p/811940#M320314</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-05-06T20:44:58Z</dc:date>
    </item>
  </channel>
</rss>

