<?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 headtext in PROC TEMPLATE? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/headtext-in-PROC-TEMPLATE/m-p/4947#M1987</link>
    <description>I would like to add some text to the head-part of ODS HTML output files.&lt;BR /&gt;
I have found that one posibility is specifying&lt;BR /&gt;
&lt;BR /&gt;
ODS HTML FILE="example.html" STYLE=MINIMAL headtext="&lt;LINK rel="shortcut icon" href="http://www.myweb.com/favicon.ico" /&gt;";&lt;BR /&gt;
&lt;BR /&gt;
but you have to add it each time you use the ODS HTML.&lt;BR /&gt;
&lt;BR /&gt;
Is there any way how to do it, eg. by PROC TEMPLATE?&lt;BR /&gt;
&lt;BR /&gt;
I have tried it using the prehtml= option, but the text is added to  of document&lt;BR /&gt;
&lt;BR /&gt;
Thanks!!</description>
    <pubDate>Thu, 04 Oct 2007 12:57:13 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-10-04T12:57:13Z</dc:date>
    <item>
      <title>headtext in PROC TEMPLATE?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/headtext-in-PROC-TEMPLATE/m-p/4947#M1987</link>
      <description>I would like to add some text to the head-part of ODS HTML output files.&lt;BR /&gt;
I have found that one posibility is specifying&lt;BR /&gt;
&lt;BR /&gt;
ODS HTML FILE="example.html" STYLE=MINIMAL headtext="&lt;LINK rel="shortcut icon" href="http://www.myweb.com/favicon.ico" /&gt;";&lt;BR /&gt;
&lt;BR /&gt;
but you have to add it each time you use the ODS HTML.&lt;BR /&gt;
&lt;BR /&gt;
Is there any way how to do it, eg. by PROC TEMPLATE?&lt;BR /&gt;
&lt;BR /&gt;
I have tried it using the prehtml= option, but the text is added to  of document&lt;BR /&gt;
&lt;BR /&gt;
Thanks!!</description>
      <pubDate>Thu, 04 Oct 2007 12:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/headtext-in-PROC-TEMPLATE/m-p/4947#M1987</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-04T12:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: headtext in PROC TEMPLATE?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/headtext-in-PROC-TEMPLATE/m-p/4948#M1988</link>
      <description>If you're using SAS 9, you can modify the DOC_HEAD event in the HTML tagset template:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define tagset tagsets.myHTML;&lt;BR /&gt;
 parent=tagsets.html4;&lt;BR /&gt;
 define event doc_head;&lt;BR /&gt;
   start:&lt;BR /&gt;
         put "" CR;&lt;BR /&gt;
         put VALUE CR ;&lt;BR /&gt;
         put "&lt;LINK rel="shortcut icon" href="http://www.myweb.com/favicon.ico" /&gt;" CR;&lt;BR /&gt;
    finish:&lt;BR /&gt;
          put "" CR;&lt;BR /&gt;
  end;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Then you can say:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.myhtml file="myexample.html";&lt;BR /&gt;
/* ... */&lt;BR /&gt;
ods tagsets.myhtml close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
If you want this change to be in effect for ODS HTML, you can modify the HTML4 tagset directly, or you can map ODS HTML to ODS TAGSETS.myHTML with a SAS registry setting.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Thu, 04 Oct 2007 13:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/headtext-in-PROC-TEMPLATE/m-p/4948#M1988</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2007-10-04T13:55:10Z</dc:date>
    </item>
  </channel>
</rss>

