<?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 Custom byline for proc sgplot with advance=bygroup in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Custom-byline-for-proc-sgplot-with-advance-bygroup/m-p/546074#M22567</link>
    <description>&lt;P&gt;I can't seem to get the display I need for the output of sgplot with a by-group option. The output should go to ODS PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I don't use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;options nobyline&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;the text displayed above each plot is "#byvar1=#byval1" and I would like it to be only "#byval1". If I disable byline, and try to set the plot title to&amp;nbsp;&lt;STRONG&gt;title "#byval1"&lt;/STRONG&gt; then only the first plot gets the title printed above. Here is my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* prepare the data */
proc sort data=sashelp.class out=c;
   by sex;
run;

/* ODS options */
option papersize=(10in 5.63in) ;
option nodate nonumber;
ods escapechar = "^";

options  leftmargin = .1in
 rightmargin = .1in
 topmargin = .1in
 bottommargin = .05in ;

ODS _ALL_ CLOSE;
TITLE; 
FOOTNOTE ;

ODS PDF FILE="output.pdf"  
	style = Styles.Pearl NOBOOKMARKGEN nogtitle nogfootnote dpi = 300 ;

options byline;

ods graphics / width=4.5in height=1.9in;
ods layout gridded columns=2 rows=1 advance=bygroup;

proc sgplot data=c ;
   scatter y=weight x=height;
   by sex;
run;

ods layout end; 
ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with_byline.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28211i0A88D90C6CE8B69E/image-size/large?v=v2&amp;amp;px=999" role="button" title="with_byline.png" alt="with_byline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the following in the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;

proc sgplot data=c ;
   scatter y=weight x=height;
   by sex;
   title "#byval1";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="without_byline.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28212i819360E0F9B6B354/image-size/large?v=v2&amp;amp;px=999" role="button" title="without_byline.png" alt="without_byline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to achieve what I want to do?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 11:05:33 GMT</pubDate>
    <dc:creator>MDaniel</dc:creator>
    <dc:date>2019-03-26T11:05:33Z</dc:date>
    <item>
      <title>Custom byline for proc sgplot with advance=bygroup</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Custom-byline-for-proc-sgplot-with-advance-bygroup/m-p/546074#M22567</link>
      <description>&lt;P&gt;I can't seem to get the display I need for the output of sgplot with a by-group option. The output should go to ODS PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I don't use&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;options nobyline&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;the text displayed above each plot is "#byvar1=#byval1" and I would like it to be only "#byval1". If I disable byline, and try to set the plot title to&amp;nbsp;&lt;STRONG&gt;title "#byval1"&lt;/STRONG&gt; then only the first plot gets the title printed above. Here is my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* prepare the data */
proc sort data=sashelp.class out=c;
   by sex;
run;

/* ODS options */
option papersize=(10in 5.63in) ;
option nodate nonumber;
ods escapechar = "^";

options  leftmargin = .1in
 rightmargin = .1in
 topmargin = .1in
 bottommargin = .05in ;

ODS _ALL_ CLOSE;
TITLE; 
FOOTNOTE ;

ODS PDF FILE="output.pdf"  
	style = Styles.Pearl NOBOOKMARKGEN nogtitle nogfootnote dpi = 300 ;

options byline;

ods graphics / width=4.5in height=1.9in;
ods layout gridded columns=2 rows=1 advance=bygroup;

proc sgplot data=c ;
   scatter y=weight x=height;
   by sex;
run;

ods layout end; 
ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with_byline.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28211i0A88D90C6CE8B69E/image-size/large?v=v2&amp;amp;px=999" role="button" title="with_byline.png" alt="with_byline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the following in the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;

proc sgplot data=c ;
   scatter y=weight x=height;
   by sex;
   title "#byval1";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="without_byline.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28212i819360E0F9B6B354/image-size/large?v=v2&amp;amp;px=999" role="button" title="without_byline.png" alt="without_byline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to achieve what I want to do?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 11:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Custom-byline-for-proc-sgplot-with-advance-bygroup/m-p/546074#M22567</guid>
      <dc:creator>MDaniel</dc:creator>
      <dc:date>2019-03-26T11:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom byline for proc sgplot with advance=bygroup</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Custom-byline-for-proc-sgplot-with-advance-bygroup/m-p/546095#M22568</link>
      <description>&lt;P&gt;The fix is amazingly simple and I should have thought about this earlier - &lt;STRONG&gt;gtitle&lt;/STRONG&gt; needs to be enabled when defining the ODS. Code would look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS PDF FILE="output.pdf"  
	style = Styles.Pearl NOBOOKMARKGEN gtitle nogfootnote dpi = 300 ;
	
options nobyline;	
	
proc sgplot data=c ;
   scatter y=weight x=height;
   by sex;
   title "#byval1";
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Mar 2019 12:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Custom-byline-for-proc-sgplot-with-advance-bygroup/m-p/546095#M22568</guid>
      <dc:creator>MDaniel</dc:creator>
      <dc:date>2019-03-26T12:11:26Z</dc:date>
    </item>
  </channel>
</rss>

