<?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: PROC SGPANEL: SERIES statement has no Y2AXIS option in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375784#M12972</link>
    <description>&lt;P&gt;Now I have found that I can produce one such 2x2 matrix of plots using SGPLOT and have it show up in Powerpoint via ODS POWERPOINT. Works great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I actually want seven different 2x2 matrices of plots, one on each page of a POWERPOINT document, and SAS crashes when I try this via a macro %DO loop to loop over all seven variables of interest. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I re-write the same loop to create seven different Powerpoint files, with one plot each, no errors and no crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Performing both of the above attempts to output the plots via ODS HTML, no error and no crashes either way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 18:05:44 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2017-07-13T18:05:44Z</dc:date>
    <item>
      <title>PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375748#M12968</link>
      <description>&lt;P&gt;I have created some very nice plots using PROC SGPLOT, using the several SERIES&amp;nbsp;statements, some of which&amp;nbsp;use the Y2AXIS option, to generate line plots with 2 different vertical axes. Great, exactly what I wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, I wanted 4 of these plots on a page (2 rows and 2 columns), so I switch to PROC SGPANEL which will produce this 2x2 matrix of plots, but then I discover there is no Y2AXIS option on the SERIES statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my question ... can someone recommend a workaround or alternative that can give me two different vertical axis scales in PROC SGPANEL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can do this in traditional SAS/GRAPH with templates in PROC GREPLAY, but since my code is already written in ODS GRAPHICS, I'd prefer to stay in ODS Graphics if possible.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375748#M12968</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-13T16:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375757#M12969</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;
&lt;P&gt;Depending on your ODS destination, you might be able to use ODS LAYOUT GRIDDED on the original SGPLOT output. This statement was added in SAS 9.4m1. Some simple examples are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Chris's blog: &lt;A href="http://blogs.sas.com/content/sasdummy/2015/11/23/ods-statement-options-to-change/" target="_self"&gt;Using the ODS statement to add layers in your ODS sandwich&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;My blog: &lt;A href="http://blogs.sas.com/content/iml/2015/12/02/matrices-graphs-gridded-layout.html" target="_self"&gt;Arrange matrices and graphs in a gridded layout&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Run the following simple example to get an idea how it works, then let us know whether this might suit your needs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / width=4in height=2in;
ods layout gridded columns=2 advance=table;

proc sgplot data=sashelp.stocks;
   where stock="IBM";
   series x=date y=open;
   series x=date y=volume / y2axis;
run;
proc sgplot data=sashelp.stocks;
   where stock="Intel";
   series x=date y=open;
   series x=date y=volume / y2axis;
run;
proc sgplot data=sashelp.stocks;
   where stock="Microsoft";
   series x=date y=open;
   series x=date y=volume / y2axis;
run;
proc sgplot data=sashelp.stocks;
vbox open / category=stock;
run;

ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375757#M12969</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-13T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375764#M12970</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;, this looks exactly like what I want to do. Ideally, the output is via ODS POWERPOINT. I'll take a crack at it and see if I can get it to work.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375764#M12970</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-13T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375771#M12971</link>
      <description>&lt;P&gt;Well that was easy! Chris's example works fine with ODS POWERPOINT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375771#M12971</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-13T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375784#M12972</link>
      <description>&lt;P&gt;Now I have found that I can produce one such 2x2 matrix of plots using SGPLOT and have it show up in Powerpoint via ODS POWERPOINT. Works great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I actually want seven different 2x2 matrices of plots, one on each page of a POWERPOINT document, and SAS crashes when I try this via a macro %DO loop to loop over all seven variables of interest. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I re-write the same loop to create seven different Powerpoint files, with one plot each, no errors and no crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Performing both of the above attempts to output the plots via ODS HTML, no error and no crashes either way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375784#M12972</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-13T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375791#M12973</link>
      <description>&lt;P&gt;The below "unmacroized" SAS code produces expected output with 9.4M4.&amp;nbsp; Sorry, the discussion software won't allow me to attach crash.pptx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- David Kelley&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Output Delivery and Reporting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics / width=4in height=2in;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods powerpoint file = "crash.pptx";&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2 advance=table;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="IBM";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Intel";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt; where stock="Microsoft";&lt;BR /&gt; series x=date y=open;&lt;BR /&gt; series x=date y=volume / y2axis;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=sashelp.stocks;&lt;BR /&gt;vbox open / category=stock;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods powerpoint close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375791#M12973</guid>
      <dc:creator>DavidK_SAS</dc:creator>
      <dc:date>2017-07-13T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375853#M12974</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;ods powerpoint startpage=now;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that's what I might have been missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, my company is still using 9.4M2, so maybe that's the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try these out tomorrow at work.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375853#M12974</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-13T22:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPANEL: SERIES statement has no Y2AXIS option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375997#M12978</link>
      <description>&lt;P&gt;It appears that the STARTPAGE option of the ODS POWERPOINT command does not exist in my version SAS 9.4 TS1M2 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 13:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPANEL-SERIES-statement-has-no-Y2AXIS-option/m-p/375997#M12978</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-14T13:24:44Z</dc:date>
    </item>
  </channel>
</rss>

