<?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: Creating headers for each proc print using ODS RTF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205674#M13658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default behavior from your posted code should have a title in the header of each print.&lt;/P&gt;&lt;P&gt;HOWEVER you have a custom style referenced STYLE=CUSTOM.&lt;/P&gt;&lt;P&gt;Try with the default style and see if you get the behavior you need. If so, then your custom style has done something with the header entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 15:46:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-03-19T15:46:30Z</dc:date>
    <item>
      <title>Creating headers for each proc print using ODS RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205673#M13657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am using ODS RTF BOOKMARK to create bookmark's in RTF report. I have 10 different datasets and using proc print to output the data in RTF . SInce i am not&amp;nbsp; creating any header for each proc print , i am unable to get the bookmark. Getting a message after opening the RTF as "This document does not contain headings", hence&amp;nbsp; the headers are not displayed&amp;nbsp; on the bookmark.Could any one please suggest how to create headers for each proc print using ods rtf . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code .&lt;/P&gt;&lt;P&gt;ods rtf file="D:\&amp;amp;path._chk..rtf" style=custom title="Bookmarking" ;&lt;/P&gt;&lt;P&gt;title1 j=l h=10pt ' Sample Data check&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods rtf startpage=no;&lt;/P&gt;&lt;P&gt; ods rtf text='Header One ';&lt;/P&gt;&lt;P&gt; ods rtf bookmark='Header one ';&lt;/P&gt;&lt;P&gt; proc print data=_end_ label noobs&amp;nbsp; style(table)=[just=left] contents='' width=minimum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var one two three four five ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods rtf startpage=no;&lt;/P&gt;&lt;P&gt;ods rtf text='Header two';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; ods rtf bookmark='Header Two ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc print data = two noobs label noobs&amp;nbsp; style(table)=[just=left] contents='' width=minimum;&lt;/P&gt;&lt;P&gt;var four five six seven eight;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;...............similary for 10+ proc print for different data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ods rtf close .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any possible methods to create headers to get&amp;nbsp; the bookmarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for&amp;nbsp; your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 12:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205673#M13657</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2015-03-19T12:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating headers for each proc print using ODS RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205674#M13658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default behavior from your posted code should have a title in the header of each print.&lt;/P&gt;&lt;P&gt;HOWEVER you have a custom style referenced STYLE=CUSTOM.&lt;/P&gt;&lt;P&gt;Try with the default style and see if you get the behavior you need. If so, then your custom style has done something with the header entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205674#M13658</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-19T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating headers for each proc print using ODS RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205675#M13659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; When I test code similar to yours, I get this error because you have spaces in the text string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: The anchor value "Header one " is not valid for the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "RTF" destination; anchors cannot contain white space,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; control characters, or any of the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "()&amp;lt;&amp;gt;[]{}/%&amp;amp;\". Anchor value will be ignored.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, are you going to generate a contents page or not? You don't have TOC_DATA turned on as an option. I don't understand how your code is working at all. You should get an error message on the space for BOOKMARK=.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Creating-headers-for-each-proc-print-using-ODS-RTF/m-p/205675#M13659</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-03-20T13:11:00Z</dc:date>
    </item>
  </channel>
</rss>

