<?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: Pagination with SGPanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288973#M10220</link>
    <description>&lt;P&gt;Thank you for the Response Dan. I do think it is useful for SGPANEL and I will send a suggestion to Technical Support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great question, I can see an argument for both sides. For the reports that I mainly do for work though, they probably would want the page numbers to all be unique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 17:21:29 GMT</pubDate>
    <dc:creator>djrisks</dc:creator>
    <dc:date>2016-08-02T17:21:29Z</dc:date>
    <item>
      <title>Pagination with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288910#M10206</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SGPANEL in SAS 9.4, I have produced RTF output of boxplots which goes over multiple pages, and I would like to put the page numbers on the output. I have tried using the {pageof} function to add the page numbers onto the output, however this does not seem to work with SGPANEL. It works fine with Proc Report though. I think this may be because with SGPANEL, the titles go into the body of the document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used, which is similar to my real life example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = sashelp.pricedata out = pricedata;
  by date;
run;

ods graphics / reset = all border = off width = 256mm height = 168mm;
goptions reset = all;

ods escapechar = "~";
%let ls = 100;
%let title1 = Boxplot of Sale by Quarter;
%let titt1 = %nrbquote(&amp;amp;title1 %sysfunc(repeat(%str( ),%eval(&amp;amp;ls - %length(&amp;amp;title1) -10))) ~{pageof});

title1 justify = left "&amp;amp;titt1";

ods rtf file = "C:\boxplot.rtf" style = styles.rtfplot image_dpi = 300 startpage=yes;

data pricedata2;
  set pricedata;
  quarter = qtr(date);
  year = year(date);
  quarter_year = cats("Q", quarter, "-", year);
run;

proc sgpanel data = pricedata2;
  panelby year / columns = 4 uniscale = row noheader;
  block x = quarter_year block = year / filltype=alternate novalues;
  vbox sale / category = quarter_year group = region grouporder = ascending;
  rowaxis type = log;
run;

ods rtf close;

goptions reset = all;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated. If I was using a by statement then I would have used the byval variables to add the page numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 12:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288910#M10206</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-08-02T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288948#M10219</link>
      <description>&lt;P&gt;The PAGEOF function was specifically created for page numbering in the RTF pages. However, if you think that page numbering in SGPANEL would be a useful feature, you could send a suggestion to Technical Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question that I have about this feature is the interaction between the BY statement and the PANELBY statement. Since pagination can occur within a BY group, should the page number reset for every BY-group iteration, or should the page numbers be unique across all BY-groups?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 14:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288948#M10219</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-08-02T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288973#M10220</link>
      <description>&lt;P&gt;Thank you for the Response Dan. I do think it is useful for SGPANEL and I will send a suggestion to Technical Support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great question, I can see an argument for both sides. For the reports that I mainly do for work though, they probably would want the page numbers to all be unique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 17:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pagination-with-SGPanel/m-p/288973#M10220</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-08-02T17:21:29Z</dc:date>
    </item>
  </channel>
</rss>

