<?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: sgplot, ods pdf, and titles in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244112#M15088</link>
    <description>&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look into the #byvarn within title to control the titles. Getting one at top of page and one embedded in Graph may be a bit harder. Consider using ODS TEXT= for the first and Title for the second and see how that works? I can't seem to get it repeating across pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=portrait nobyline;
ods pdf file = 'C:\temp\test.pdf';
ods graphics / height=4in;
ods text= 'Title I want at the Top of the Page';
title1 "My byvar titles byvar1 = #byvar1 and byvar2 = #byvar2";
ods startpage = no;
proc sgplot data=a;
vbar graphvar/response=response;
by byvar1 byvar2 ;
run; quit;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 Jan 2016 23:54:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-17T23:54:18Z</dc:date>
    <item>
      <title>sgplot, ods pdf, and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244108#M15087</link>
      <description>&lt;P&gt;I'm trying to create a number of by-graphs, with a title on the top of the page, and the by-values inside the graphs (and a new page for each byvar1) - tried lots of combinations, but no luck - below is stripped-down code with what I'm trying to accomplish.&lt;/P&gt;
&lt;P&gt;Any suggestions would be greatly appreciated,&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;input byvar1 $ byvar2 $ graphvar $ response;&lt;BR /&gt;cards;&lt;BR /&gt;A1 B1 A 2&lt;BR /&gt;A1 B2 A 2&lt;BR /&gt;A2 B1 A 2&lt;BR /&gt;A2 B2 A 2&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;options orientation=portrait byline;&lt;BR /&gt;ods pdf file = 'C:\temp\test.pdf';&lt;BR /&gt;ods graphics / height=4in;&lt;BR /&gt;title1 'Title I want at the Top of the Page';&lt;BR /&gt;ods startpage = no;&lt;BR /&gt;proc sgplot data=a;&lt;BR /&gt;vbar graphvar/response=response;&lt;BR /&gt;by byvar1 byvar2 ;&lt;BR /&gt;run; quit;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 23:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244108#M15087</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-01-17T23:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot, ods pdf, and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244112#M15088</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p10gcmrmf83iaxn1ilrx4pra969n.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look into the #byvarn within title to control the titles. Getting one at top of page and one embedded in Graph may be a bit harder. Consider using ODS TEXT= for the first and Title for the second and see how that works? I can't seem to get it repeating across pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=portrait nobyline;
ods pdf file = 'C:\temp\test.pdf';
ods graphics / height=4in;
ods text= 'Title I want at the Top of the Page';
title1 "My byvar titles byvar1 = #byvar1 and byvar2 = #byvar2";
ods startpage = no;
proc sgplot data=a;
vbar graphvar/response=response;
by byvar1 byvar2 ;
run; quit;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Jan 2016 23:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244112#M15088</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-17T23:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot, ods pdf, and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244139#M15095</link>
      <description>&lt;P&gt;If you want a single graph per page then do not use startpage=no. Also use system option nobyline and #BYVAR and #BYVAL in your titles&lt;/P&gt;
&lt;P&gt;If you want multiple graphs per page with a by-group header then you should consider using SGPANEL :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nonumber nodate orientation=portrait;
ods pdf file="&amp;amp;sasforum.\graphs\twoperpage.pdf";
ods graphics / height=9in width=6in border=off;
title;
proc sgpanel data=sashelp.heart;
panelby Weight_Status / columns=1 rows=2 spacing=20 novarname skipemptycells noborder;
vbar Smoking_Status / stat=freq;
run;
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2016 04:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244139#M15095</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-18T04:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot, ods pdf, and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244206#M15096</link>
      <description>&lt;P&gt;Thanks for the suggestion - I neglected to add that I'm using xaxistable in my acual graphs, so sgpanel doesn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/244206#M15096</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-01-18T13:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot, ods pdf, and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/245624#M15139</link>
      <description>&lt;P&gt;Finally&amp;nbsp;e-mailed SAS Tech Support, and they suggested "&lt;SPAN&gt;When you get a chance specify NOGTITLE on the ODS PDF statement and let me know if that produces the results you want."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This got the &amp;nbsp;1st page is behave ok, but didn't &amp;nbsp;get what I need on page 2 (the by-info for the 1st graph on page 2 was on the bottom of page 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it finally came to me&amp;nbsp;&amp;nbsp;– I just needed to &amp;nbsp;make the "ods graphics / Height =" larger, till the by-info title shifted to the 2nd page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 14:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgplot-ods-pdf-and-titles/m-p/245624#M15139</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2016-01-23T14:03:05Z</dc:date>
    </item>
  </channel>
</rss>

