<?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: ODS group header question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483486#M21382</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It depends. You didn't show all your code and you didn't show WHAT the group header is or how it get there. Right now, based on the code you've provided, you don't have any TITLE statements or "group headers" -- and since you did not provide any test data nobody can run your code without making some test data and they can't make the test data because we don't know&amp;nbsp; how your group header is getting into the output. I suspect it is because of your BY statement, but I'm not sure. Are you seeing a standard BYLINE? For your ZDTEST variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here is a program using SASHELP.CLASS that shows how you can left justify a title and move BY group information into the title.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
where age le 13;
run;

ods rtf file='c:\temp\showby_vs_title.rtf' style=journal bodytitle;
proc report data=class spanrows
  style(report)={width=100%};
by age;
column age name sex height weight;
title '1) default byline is centered underneath title';
define age / group;
run;

options nobyline;
proc report data=class spanrows
  style(report)={width=100%};
by age;
title j=l '2) By Info is inside title for Age: #byval1';
column age name sex height weight;
define age / group;
run;

ods rtf close;
options byline;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(BTW, options like FLOW and WIDTH are ignored by ODS destinations. They are LISTING only options which is why I did not put them in my code.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2018 17:15:41 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-08-02T17:15:41Z</dc:date>
    <item>
      <title>ODS group header question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483474#M21381</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;　&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;question:&amp;nbsp;i use by variable to create the table and it automatically produce a &lt;FONT color="#800080"&gt;"group header"&lt;/FONT&gt; in title,&amp;nbsp;it in&amp;nbsp;outside the table and at the &lt;FONT color="#800080"&gt;"top"&lt;/FONT&gt; and center , well, is there any way to &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;put this group header on top left, not center? thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;proc report data=forl nowindows split=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"|"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; missing spanrows&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style(header)={background=none}&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;style(report)={leftmargin=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; in outputwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;%};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ZDTEST;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;column&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; USUBJID ZDTEST VISIT ZDTPT ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ZDTEST / &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Test"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; width=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; group ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; USUBJID /&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Subject"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; width=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; flow group ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Visit / &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Visit"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; width=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; group ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ZDTPT/&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Time Points"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; width=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OPTIONS&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CENTER&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NODATE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NONUMBER&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ORIENTATION&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=landscape &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CENTER&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;LEFTMARGIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"1 IN"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;RIGHTMARGIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"1 IN"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TOPMARGIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"1 IN"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;BOTTOMMARGIN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"1 IN"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ODS&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;RTF&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;OUTL.\Listing.RTF"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Styles.journal &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*bodytitle*/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rtf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483474#M21381</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2018-08-02T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODS group header question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483486#M21382</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It depends. You didn't show all your code and you didn't show WHAT the group header is or how it get there. Right now, based on the code you've provided, you don't have any TITLE statements or "group headers" -- and since you did not provide any test data nobody can run your code without making some test data and they can't make the test data because we don't know&amp;nbsp; how your group header is getting into the output. I suspect it is because of your BY statement, but I'm not sure. Are you seeing a standard BYLINE? For your ZDTEST variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here is a program using SASHELP.CLASS that shows how you can left justify a title and move BY group information into the title.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
where age le 13;
run;

ods rtf file='c:\temp\showby_vs_title.rtf' style=journal bodytitle;
proc report data=class spanrows
  style(report)={width=100%};
by age;
column age name sex height weight;
title '1) default byline is centered underneath title';
define age / group;
run;

options nobyline;
proc report data=class spanrows
  style(report)={width=100%};
by age;
title j=l '2) By Info is inside title for Age: #byval1';
column age name sex height weight;
define age / group;
run;

ods rtf close;
options byline;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(BTW, options like FLOW and WIDTH are ignored by ODS destinations. They are LISTING only options which is why I did not put them in my code.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 17:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483486#M21382</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-02T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODS group header question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483494#M21383</link>
      <description>&lt;P&gt;hi, Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for help me. I run the code, what i want is move age=11 to left, not center. I don't know where should I just that in your code. thanks a lot.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22183i16DB1EE69AD4F987/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 17:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483494#M21383</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2018-08-02T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS group header question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483537#M21384</link>
      <description>&lt;P&gt;Hi: You should have a document with 6 pages. Pages 1, 2 and 3 are for Report with title 1); pages 4, 5, 6 show a left justified title with TITLE 2) as shown here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="word_left_justify_title.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22185i6713D00804E099A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="word_left_justify_title.png" alt="word_left_justify_title.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Look for the PROC REPORT code that has 2 in the title -- that shows j=l in the TITLE statement. You should see the change on pages 4, 5 and 6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-group-header-question/m-p/483537#M21384</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-02T19:08:14Z</dc:date>
    </item>
  </channel>
</rss>

