<?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: title link target=_blank in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31399#M4697</link>
    <description>This works:&lt;BR /&gt;
ods escapechar='^';title1 "^S={url='http://www.sas.com' hreftarget='_blank'} SAS";&lt;BR /&gt;
&lt;BR /&gt;
Which device is good to use with this (other than activex)?&lt;BR /&gt;
I'm using ods tagsets.tableeditor and my output is html.&lt;BR /&gt;
Thank you.</description>
    <pubDate>Fri, 04 Jun 2010 06:26:06 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2010-06-04T06:26:06Z</dc:date>
    <item>
      <title>title link target=_blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31397#M4695</link>
      <description>How do I modify this code so that the link opens in a new window?&lt;BR /&gt;
I know that it involves target=_blank, but I'm not sure what the syntax is.&lt;BR /&gt;
&lt;BR /&gt;
title1 link="www.sas.com" SAS;&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Thu, 03 Jun 2010 21:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31397#M4695</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-06-03T21:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: title link target=_blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31398#M4696</link>
      <description>Hi:&lt;BR /&gt;
  You need to change the HREFTARGET style attribute, as described in this note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/437.html" target="_blank"&gt;http://support.sas.com/kb/23/437.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
The HREFTARGET attribute can be specified in a style template OR, in a TITLE statement, if you change the form of the link to be entirely specified with an ODS ESCAPECHAR style attribute override, you can do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\uselink.html' style=sasweb;&lt;BR /&gt;
                    &lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
title1 "^S={url='http://www.sas.com' hreftarget='_blank'} SAS";&lt;BR /&gt;
                           &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
                              &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
The only real difference is that instead of LINK= (which is a TITLE option), you are using URL= (which is a style attribute), but because you specify URL= in the ^S override, you can also specify HREFTARGET= within the same override.&lt;BR /&gt;
 &lt;BR /&gt;
ODS ESCAPECHAR must be set to the same character in the declaration statement as the character you use in the style override in the TITLE statement. For example, if you had:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ODS ESCAPECHAR='~';&lt;BR /&gt;
&lt;BR /&gt;
...then your TITLE statement would need to have the tilde (~) used:&lt;BR /&gt;
title1 "~S={url='http://www.sas.com' hreftarget='_blank'} SAS";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
This worked for me in SAS 9.2. For more information about ODS ESCAPECHAR capability, look in the ODS DOCUMENTATION or refer to these papers:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2007/099-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/099-2007.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nesug.org/Proceedings/nesug07/cc/cc18.pdf" target="_blank"&gt;http://www.nesug.org/Proceedings/nesug07/cc/cc18.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug08/np/np10.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug08/np/np10.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/227-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/227-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/sgf2008/odspdf.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/sgf2008/odspdf.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 04 Jun 2010 01:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31398#M4696</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-04T01:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: title link target=_blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31399#M4697</link>
      <description>This works:&lt;BR /&gt;
ods escapechar='^';title1 "^S={url='http://www.sas.com' hreftarget='_blank'} SAS";&lt;BR /&gt;
&lt;BR /&gt;
Which device is good to use with this (other than activex)?&lt;BR /&gt;
I'm using ods tagsets.tableeditor and my output is html.&lt;BR /&gt;
Thank you.</description>
      <pubDate>Fri, 04 Jun 2010 06:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31399#M4697</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-06-04T06:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: title link target=_blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31400#M4698</link>
      <description>Hi:&lt;BR /&gt;
  I'm not sure what you mean by "device". This title statement should work for any ODS output in a destination which supports styles and in a viewer that supports hyperlinks. So, for example, ODS HTML, ODS RTF and ODS PDF will all support the use of a URL or hyperlink in the title. However, ODS RTF, when opened in Microsoft Word will require that you CTRL+click the hyperlink to follow the link.&lt;BR /&gt;
 &lt;BR /&gt;
  Generally, folks who use a "device" are using SAS/GRAPH device-based procedures (such as GCHART and GPLOT). The issue here is that ODS ESCAPECHAR is not used in SAS/GRAPH output. So, if the title you show is meant to go on a graph and the SAS/GRAPH device is in control of the title, then you can't use ODS ESCAPECHAR for that title.&lt;BR /&gt;
&lt;BR /&gt;
  Several ODS destinations (ODS HTML, ODS RTF) have the NOGTITLE, NOGFOOTNOTE options, which allow ODS to control the title (instead of SAS/GRAPH). If you use these options, then you could use ODS ESCAPECHAR in your SAS title and footnote. TAGSETS.TABLEEDITOR is an HTML-based destination. However, I do not know whether NOGTITLE and NOGFOOTNOTE are allowable options for TAGSETS.TABLEEDITOR when you use SAS/GRAPH. You would have to check the documentation or work with Tech Support on this question.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 04 Jun 2010 13:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/title-link-target-blank/m-p/31400#M4698</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-04T13:35:16Z</dc:date>
    </item>
  </channel>
</rss>

