<?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: titles with ODS Word in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698499#M24654</link>
    <description>&lt;P&gt;Did you try&amp;nbsp; the option as "bodytitle" instead of "body_title"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have any graphic output I might suggest removing the NOGTITLE as well.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 19:54:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-12T19:54:13Z</dc:date>
    <item>
      <title>titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698497#M24653</link>
      <description>&lt;P&gt;Trying out ODS Word. I realize it is pre-production.&amp;nbsp; Perhaps I am just writing something wrong.&amp;nbsp; I have 3 different proc prints/ODSTEXT statements each with a unique title.&amp;nbsp; However, I only see the first title showing in the created Word file although in the listing i do see the correct titles.&amp;nbsp; I did turn startpage off to all be on 1 page and when i toggle that back to yes, I do see all 3 titles.&amp;nbsp; Please help me understand why setting startpage=no does not allow me to have separate titles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods word file='h:\testing.docx' sasdate options(body_title='yes' toc_data='on') nogtitle startpage=no;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=fun;&amp;nbsp;title 'Does it print';&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;proc print data=fun; title '2nd title'; run;&lt;/P&gt;&lt;P&gt;proc print data=fun; title '3rd title'; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods word close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 19:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698497#M24653</guid>
      <dc:creator>Katie_Lane</dc:creator>
      <dc:date>2020-11-12T19:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698499#M24654</link>
      <description>&lt;P&gt;Did you try&amp;nbsp; the option as "bodytitle" instead of "body_title"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have any graphic output I might suggest removing the NOGTITLE as well.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 19:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698499#M24654</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-12T19:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698517#M24655</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Except for misspelling 3rd as 3nd, I can get close to what you want with ODS TEXT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1605212505038.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51615iF46B119F0DB93CF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1605212505038.png" alt="Cynthia_sas_0-1605212505038.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;Or using PROC REPORT and a COMPUTE block:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1605212818800.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51616iC6FF8EAC4DDE27BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1605212818800.png" alt="Cynthia_sas_1-1605212818800.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698517#M24655</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-12T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698525#M24657</link>
      <description>i don't get it. This is mine after I cut/paste from the Word file. As you can see, I only have 1 title, the 1st.&lt;BR /&gt;&lt;BR /&gt;Does it print&lt;BR /&gt;&lt;BR /&gt;Obs&lt;BR /&gt;a&lt;BR /&gt;1 1&lt;BR /&gt;2 2&lt;BR /&gt;3 3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obs&lt;BR /&gt;a&lt;BR /&gt;1 1&lt;BR /&gt;2 2&lt;BR /&gt;3 3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obs&lt;BR /&gt;a&lt;BR /&gt;1 1&lt;BR /&gt;2 2&lt;BR /&gt;3 3&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698525#M24657</guid>
      <dc:creator>Katie_Lane</dc:creator>
      <dc:date>2020-11-12T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698526#M24658</link>
      <description>I have toggled the nogtitle and gtitle - no change. Bodytitle gives an error. Bodytitle works in ODS RTF but for ODS WORD it is now nested inside options and spelled differently.</description>
      <pubDate>Thu, 12 Nov 2020 20:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698526#M24658</guid>
      <dc:creator>Katie_Lane</dc:creator>
      <dc:date>2020-11-12T20:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698685#M24659</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I can't run your code since I don't have your data. However, when I run the code that I posted, I get the results shown in my screen shots. Here's my code using SASHELP data so anyone can run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** Example 1;
ods word file='c:\temp\testings.docx' sasdate nogtitle startpage=no
    options(bodytitle='yes' toc_data='on');

proc print data=sashelp.class(obs=3);
  title 'Does it print at top of page';
run;

ods text="2nd title (pseudo title with ODS TEXT)";
proc print data=sashelp.shoes(obs=2); run;

ods text="3rd title (pseudo title with ODS TEXT)";
proc print data=sashelp.classfit(obs=3); run;

ods word close;

** Example 2;
ods word file='c:\temp\report_example.docx' sasdate nogtitle startpage=no
    options(bodytitle='yes' toc_data='on');

proc report data=sashelp.class(obs=3);
  title 'Does it print at top of page';
run;

proc report data=sashelp.shoes(obs=2);
compute before _page_ / style=SystemTitle;
  line "2nd title (pseudo title with PROC REPORT)";
endcomp;
run;

options nolabel;
proc report data=sashelp.classfit(obs=3);
compute before _page_ / style=SystemTitle;
  line "3rd title (pseudo title with PROC REPORT)";
endcomp;
run;

ods word close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; If my code doesn't work for you as shown in my screen shots using SASHELP data, then my suggestion is that you open a track with Tech Support. Just because BODYTITLE with ODS RTF works as you want does not mean that the option will work the same way in ODS WORD:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1605280786189.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51639iB94AA04D06BB6D67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1605280786189.png" alt="Cynthia_sas_0-1605280786189.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Perhaps this is something (making BODYTITLE work the same in ODS WORD) is something that is on the drawing board. Perhaps this is something that they can't do in ODS WORD. If you want the ODS RTF behavior with BODYTITLE, then use ODS RTF. If you want to use ODS WORD, then there are 2 workarounds with ODS WORD - -either ODS TEXT or using PROC REPORT with a COMPUTE block. For more in-depth help on BODYTITLE and ODS WORD, if neither of these options will work for you and if using ODS RTF doesn't work, then you'll need to work with Tech Support on this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/698685#M24659</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-13T15:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: titles with ODS Word</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/699189#M24671</link>
      <description>&lt;P&gt;Thanks Cynthia. I will do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/titles-with-ODS-Word/m-p/699189#M24671</guid>
      <dc:creator>Katie_Lane</dc:creator>
      <dc:date>2020-11-16T15:39:26Z</dc:date>
    </item>
  </channel>
</rss>

