<?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: Links in ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151967#M11692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm, from experience links are a pain.&amp;nbsp; I had a discussion on this type of thing some time back: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/42000"&gt;https://communities.sas.com/thread/42000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assign each link a unique identifier in a datastep and use that rather than just text, e.g. L0001 = Apples, L0002=Grapes etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 14:38:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-10-31T14:38:27Z</dc:date>
    <item>
      <title>Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151966#M11691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to create links internally based on the values of a variable but wasn't able to create a link when the word I wanted to create a link for is a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, say I have a variable "Text" as below and have information on different pages of a PDF document for each of the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;obs Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grapes&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples Oranges&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples Oranges Grapes&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples are good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create links when there is only one value (Apples or Grapes) but wasn't successful in creating links when there is some other text associated with the text I wanted to create the link or to create different links for each valid word (different links for Apples, Oranges in obs 3 or link to Apples in obs 4). Can someone please help me on how to get this right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 14:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151966#M11691</guid>
      <dc:creator>sasjourney</dc:creator>
      <dc:date>2014-10-31T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151967#M11692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmm, from experience links are a pain.&amp;nbsp; I had a discussion on this type of thing some time back: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/42000"&gt;https://communities.sas.com/thread/42000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assign each link a unique identifier in a datastep and use that rather than just text, e.g. L0001 = Apples, L0002=Grapes etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 14:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151967#M11692</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-31T14:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151968#M11693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;data have;
input obs Text &amp;amp; $400.;
cards;
1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples
2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grapes
3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples Oranges
4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples Oranges Grapes
5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apples are good
;
run;
data temp(drop=i temp text);
 set have;
 length t temp $ 400;
 do i=1 to countw(text);
&amp;nbsp; temp=scan(text,i);
&amp;nbsp; if temp='Apples'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;then temp=catx(' ','~S={url="http://www.wwe.com"}',temp);
&amp;nbsp;&amp;nbsp; else if temp='Oranges'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;then temp=catx(' ','~S={url="http://www.sas.com"}',temp);
&amp;nbsp; t=catx(' ',t,temp);
 end;
run;
ods listing close;
ods html file='x.html' style=sasweb;
ods escapechar='~';
proc report data=temp nowd ;run;
ods html close;
ods listing;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 08:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151968#M11693</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-01T08:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151969#M11694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example only works for HTML output but not for PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 21:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151969#M11694</guid>
      <dc:creator>sasjourney</dc:creator>
      <dc:date>2014-11-01T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151970#M11695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply RW, I was using text as anchor as discussed in your posted thread below but that seems not working. I will try using mix of numbers and see if that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="42000" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 22:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151970#M11695</guid>
      <dc:creator>sasjourney</dc:creator>
      <dc:date>2014-11-01T22:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Links in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151971#M11696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Contact with SAS Technical Support .&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;Cynthia@sas might give you an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 11:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Links-in-ODS/m-p/151971#M11696</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-02T11:13:17Z</dc:date>
    </item>
  </channel>
</rss>

