<?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: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847260#M23335</link>
    <description>Of course it's sorted &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
    <pubDate>Thu, 01 Dec 2022 15:19:50 GMT</pubDate>
    <dc:creator>sassy7</dc:creator>
    <dc:date>2022-12-01T15:19:50Z</dc:date>
    <item>
      <title>Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847228#M23333</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I would like to save the output of a PROC SGPLOT/SGPANEL with a BY statement on multiple pdf pages.&lt;/P&gt;&lt;P&gt;At present there are about 8 different categories - values of the by variable - that I would like to represent with a graph, hence using the BY statement is the easiest thing.&lt;/P&gt;&lt;P&gt;Problem is, the pdf output stops after the first graph, namely the first value of the by variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I browsed a bit on communities.sas.com and saw several papers/answers about multiple graphs in a PDF page (meaning one PDF page) but my case is the opposite.&lt;/P&gt;&lt;P&gt;As PDF output, I would like to obtain multiple PDF pages, generated by&amp;nbsp;proc sgplot/proc sgpanel with a BY statement.&lt;/P&gt;&lt;P&gt;How to save all the graphs in PDF?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 11:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847228#M23333</guid>
      <dc:creator>sassy7</dc:creator>
      <dc:date>2022-12-01T11:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847253#M23334</link>
      <description>&lt;P&gt;Have you sorted the input data set by the BY variable? When you use the BY statement in a SAS procedure, it needs to be sorted by that variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847253#M23334</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-12-01T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847260#M23335</link>
      <description>Of course it's sorted &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847260#M23335</guid>
      <dc:creator>sassy7</dc:creator>
      <dc:date>2022-12-01T15:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847261#M23336</link>
      <description>&lt;P&gt;Are you using ODS LAYOUT in your code?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 15:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847261#M23336</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-12-01T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847801#M23344</link>
      <description>Yes, it's used, but as a PDF only the first page (pdf) is visible&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2022 14:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847801#M23344</guid>
      <dc:creator>sassy7</dc:creator>
      <dc:date>2022-12-05T14:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847812#M23347</link>
      <description>&lt;P&gt;Do you have the ADVANCE=BYGROUP option on your ODS LAYOUT GRIDDED statement?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 15:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847812#M23347</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-12-05T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847832#M23348</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206213"&gt;@sassy7&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes, it's used, but as a PDF only the first page (pdf) is visible&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Another example of where you really need to provide the entire code as interactions between all the options between procedure and ods destination options need to be known to address such.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 16:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/847832#M23348</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-05T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/848068#M23349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I tried to use "ods layout gridded advance=bygroup;" but it prints only the first page, both as SAS Results and PDF.&lt;/P&gt;
&lt;P&gt;Here is my SAS code: with this code it's possible to get the whole output in SAS results, but only the first page as PDF.&lt;/P&gt;
&lt;P&gt;the variable KIND contains 8 unique values, hence the graph is grouped by KIND variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS layout start;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=work.ds_sas dattrmap=attrmap;&lt;BR /&gt;panelby kind/ novarname spacing=5 columns=1 ;&lt;BR /&gt;vbar YEAR / response=Percent group=category groupdisplay=stack attrid=myid;&lt;BR /&gt;rowaxis grid values=(0 to 100 by 10) label="Percentage";&lt;BR /&gt;colaxistable nhouse / class=category stat=sum title="house num.";&lt;BR /&gt;label category="Category"&lt;BR /&gt;kind="Kind";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 11:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/848068#M23349</guid>
      <dc:creator>sassy7</dc:creator>
      <dc:date>2022-12-06T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output of PROC SGPLOT/SGPANEL with BY statement in multiple PDF pages</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/848185#M23350</link>
      <description>&lt;P&gt;Okay, instead of using ODS LAYOUT and ADVANCE=BYGROUP, remove the layout code and use STARTPAGE=BYGROUP on the ODS PDF statement. That should get you what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 19:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-of-PROC-SGPLOT-SGPANEL-with-BY-statement-in-multiple-PDF/m-p/848185#M23350</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-12-06T19:29:31Z</dc:date>
    </item>
  </channel>
</rss>

