<?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 RTF Text= becomes the first row of the table, making it hard to repeat header row in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982034#M26957</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Do you have multiple tables on one page? If not then just use TITLE2 and TITLE3 for the sub titles.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This will not work. The TITLE appears in the header of the document, but the ODS RTF TEXT (the actual table title) appears in the body of the document immediately above the table. If I put the table titles in TITLE2 / TITLE3, they would appear in the header area, which would not work for me. If I use BODYTITLE, then the actual header information that I want in the header would appear in the body, and that would not work for me.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2026 20:02:03 GMT</pubDate>
    <dc:creator>cklager44</dc:creator>
    <dc:date>2026-01-15T20:02:03Z</dc:date>
    <item>
      <title>ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981978#M26953</link>
      <description>&lt;P&gt;I want to output to Word standard headers and footers on every page that give the project title, the page number, etc., and then also a title directly above each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I want the table to look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1: Sample Table Title&lt;/P&gt;&lt;P&gt;Table 1 Undertitle: Population&lt;/P&gt;&lt;P&gt;followed by a table, with a header row like:&lt;/P&gt;&lt;P&gt;Variable Name, % (n/N)&lt;/P&gt;&lt;P&gt;and content rows like:&lt;/P&gt;&lt;P&gt;Variable 1, 1.0% (1/100)&lt;/P&gt;&lt;P&gt;Variable 2, 0.0% (0/100)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Variable 45, 10.0% (10/100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...I achieve it with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods rtf file="&amp;amp;outputfile..rtf";&lt;/P&gt;&lt;P&gt;title j=l h=9pt "Company Name"&amp;nbsp; j=c "Confidential" j=r "Company Logo";&lt;/P&gt;&lt;P&gt;footnote j=l h=9pt "Created by cklager44" j=r "Page (*ESC*){pageof}";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*title for table of contents;&lt;/P&gt;&lt;P&gt;ods proctable="title_name";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*title for table;&lt;/P&gt;&lt;P&gt;ods rtf text="(*ESC*)S={font_weight=bold just=c}Table 1: Sample Table Title";&lt;/P&gt;&lt;P&gt;ods rtf text="(*ESC*)S={font_weight=bold just=c}Table 1 Undertitle: Population";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report;&lt;/P&gt;&lt;P&gt;compute after _page_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; line "Note: add table footnotes to the end of the table here.";&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my problem! The ORS RTF TEXT becomes part of the table, as far as Word is concerned. I want to have the header row ("Variable Name, % (n/N)") repeat at the top of each page when the table spans multiple pages. I do NOT want to have "Table 1: Title" and "Table 1 Undertitle" repeat. But since Word considers those 2 titles as the first 2 rows of the table, any repeating must include those two rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am open to rethinking the entire method I use to create titles in my documents, if it means I can automate having repeating headers in the table the way I want. Thanks.&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>Wed, 14 Jan 2026 17:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981978#M26953</guid>
      <dc:creator>cklager44</dc:creator>
      <dc:date>2026-01-14T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981981#M26954</link>
      <description>&lt;P&gt;Do you have multiple tables on one page? If not then just use TITLE2 and TITLE3 for the sub titles.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 18:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981981#M26954</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-14T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981982#M26955</link>
      <description>&lt;P&gt;I am not sure I fully understand, but you may want to consider using the Tagsets.RTF_Sample destination where you can use the SPANROWS option in PROC REPORT to repeat Group or Order variables than span multiple pages.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods tagsets.rtf_sample file="c:\temp\test.rtf";

title j=l h=9pt "Company Name"  j=c "Confidential" j=r "Company Logo";
footnote j=l h=9pt "Created by cklager44" j=r "Page (*ESC*){pageof}";

ods proclabel "title_name";

ods tagsets.rtf_sample text="(*ESC*)S={font_weight=bold just=c}Table 1: Sample Table Title";
ods tagsets.rtf_sample text="(*ESC*)S={font_weight=bold just=c}Table 1 Undertitle: Population";

proc report data=sashelp.cars(obs=100) spanrows;
column make model type origin;
define make / order;
compute after _page_;
    line "Note: add table footnotes to the end of the table here.";
endcomp;
run;

ods tagsets.rtf_sample close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have additional questions, please send a sample of the output and clarify the changes you are expecting.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 19:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/981982#M26955</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2026-01-14T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982008#M26956</link>
      <description>&lt;P&gt;Me too. I am not sure I fully follow your question.&amp;nbsp; Can you post a snapshot or picture to illustrate your question ?&lt;/P&gt;
&lt;P&gt;According to what I understand, I think there are THREE ways you could try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
title;
options nocenter nodate nonumber;
ods tagsets.rtf file='c:\temp\test.rtf' style=journal startpage=no
  options(tables_off='usertext'  vspace="no"  continue_tag = "no"); *tables_off = "systitleandfootercontainer";
ods tagsets.rtf text='(*ESC*){style [fontsize=50] xxxxxxxx}' ;  
proc report data=sashelp.heart(obs=50) nowd;
column sex status height weight;
run;
ods tagsets.rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1768479257955.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112638i030E9536AB1838A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1768479257955.png" alt="Ksharp_0-1768479257955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1768479286756.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112639i1D2FB3127A85C4D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1768479286756.png" alt="Ksharp_1-1768479286756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&lt;/P&gt;
&lt;PRE&gt;title;
options nocenter nodate nonumber;
ods tagsets.&lt;STRONG&gt;rtf_sample&lt;/STRONG&gt; file='c:\temp\test.rtf' style=journal startpage=no
  options(tables_off='usertext'  vspace="no"  continue_tag = "no"); *tables_off = "systitleandfootercontainer";
ods tagsets.&lt;STRONG&gt;rtf_sample&lt;/STRONG&gt; text='(*ESC*){style [fontsize=50] xxxxxxxx}' ;  
proc report data=sashelp.heart(obs=50) nowd;
column sex status height weight;
run;
ods tagsets.&lt;STRONG&gt;rtf_sample&lt;/STRONG&gt; close;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3)&lt;/P&gt;
&lt;PRE&gt;ods rtf file = "c:\temp\test-run.rtf"  style = journal ;
title;
footnote;

proc report data=sashelp.heart(obs=50) nowd  &lt;STRONG&gt;style={pretext='YYYYYYYYY' fontsize=4}&lt;/STRONG&gt;;
column sex status height weight;
run;

ods rtf close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1768479602272.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112640i6DFC316FD31CC7AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1768479602272.png" alt="Ksharp_2-1768479602272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 12:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982008#M26956</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-01-15T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982034#M26957</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Do you have multiple tables on one page? If not then just use TITLE2 and TITLE3 for the sub titles.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This will not work. The TITLE appears in the header of the document, but the ODS RTF TEXT (the actual table title) appears in the body of the document immediately above the table. If I put the table titles in TITLE2 / TITLE3, they would appear in the header area, which would not work for me. If I use BODYTITLE, then the actual header information that I want in the header would appear in the body, and that would not work for me.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 20:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982034#M26957</guid>
      <dc:creator>cklager44</dc:creator>
      <dc:date>2026-01-15T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982038#M26958</link>
      <description>&lt;P&gt;I attached an example image.&lt;/P&gt;&lt;P&gt;In the example, "Company Name - Confidential - Data Snapshot Date" is created by a TITLE statement.&lt;/P&gt;&lt;P&gt;"Table 1: Title" and "Table 1: Undertitle" (created by ODS RTF TEXT statements) are considered by Word to be part of the table underneath it (created by proc report).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example, there are only 4 rows, but if there are 25+ rows, the table would span multiple pages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The built in / default option in Word to repeat header rows requires you start at row one and pick how many rows you want to be part of header. The problem is, I want only what Word sees as &lt;EM&gt;row 3&lt;/EM&gt; to repeat/span multiple pages. Row 3 is (to me) the table header. The title/undertitle I do not want to repeat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try the methods suggested and get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 20:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982038#M26958</guid>
      <dc:creator>cklager44</dc:creator>
      <dc:date>2026-01-15T20:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982041#M26959</link>
      <description>&lt;P&gt;Option 3 was very easy to implement and works perfectly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 21:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982041#M26959</guid>
      <dc:creator>cklager44</dc:creator>
      <dc:date>2026-01-15T21:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Text= becomes the first row of the table, making it hard to repeat header row</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982044#M26960</link>
      <description>&lt;P&gt;You might try ODS WORD instead.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-15 at 4.34.40 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112650i356D4A31C3469AA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-15 at 4.34.40 PM.png" alt="Screenshot 2026-01-15 at 4.34.40 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file = "~/rtf_sample.rtf"  style = journal ;
ods word file = '~/word_sample.docx' style=journal ;
title1 'Run in SAS ODA';
title2 'Open destinations';
proc print data=sashelp.vdest; run;
title2 'SASHELP.CLASS';
proc print data=sashelp.class; 
run;
title2 'SASHELP.CARS';
proc print data=sashelp.cars(obs=60);
  var make -- invoice;
run;
ods word close;å
ods rtf close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jan 2026 21:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Text-becomes-the-first-row-of-the-table-making-it-hard/m-p/982044#M26960</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-15T21:36:02Z</dc:date>
    </item>
  </channel>
</rss>

