<?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: ODS PDF hyperlinks showing as html tags example: &amp;lt;a href='abc.pdf'&amp;gt; The ABC PDF file &amp;lt;/ in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279687#M16179</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/folders/myfolders/x.pdf';
proc report data=sashelp.class nowd;
column name sex age;
define age/display;
compute age;
 if age=11 then call define(_col_,'url','/folders/myfolders/test.pdf');
endcomp;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Jun 2016 07:49:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-06-23T07:49:21Z</dc:date>
    <item>
      <title>ODS PDF hyperlinks showing as html tags example: &lt;a href='abc.pdf'&gt; The ABC PDF file &lt;/a&gt;</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279629#M16177</link>
      <description>&lt;P&gt;I am trying to create a PDF file using ODS PDF containing proc report. This proc report is within a macro having 2 parameters for different employee. One of the columns uses format= option where the format obtained from a dataset having a column with the href text as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using this in the proc sql to obtain the dynamic hyperlink format&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;"&amp;lt;a href='R"&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;||trim(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;left&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;(put(id,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Arial" size="2"&gt;3.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Arial" size="2"&gt;)))||&lt;/FONT&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;".pdf'&amp;gt;"&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;||trim(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;left&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;(put(id,&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Arial" size="2"&gt;&lt;FONT color="#008080" face="Arial" size="2"&gt;&lt;FONT color="#008080" face="Arial" size="2"&gt;3.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;)))||&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;'-'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;||trim(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;left&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;(projname))||&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;' ['&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;||trim(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;left&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;(status))||&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;']'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt;||&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;&lt;FONT color="#800080" face="Arial" size="2"&gt;"&amp;lt;/a&amp;gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;&lt;FONT face="Arial" size="2"&gt; label&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS HTML shows fine with the hyperlink. However, using the same code with ODS PDF the hyperlink does not show up, instead I see the actual text/tags like this:&lt;/P&gt;
&lt;P&gt;&amp;lt;a href='abc.pdf'&amp;gt; The ABC PDF file &amp;lt;/a&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the PDF to show the hyperlink within each row for the entire column. The hyperlink is basically the pdf files stored in previous steps. I remember doing similar kind long time ago, but can't able to wrap my head around to figure this out googling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone please help? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 03:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279629#M16177</guid>
      <dc:creator>Venkat4</dc:creator>
      <dc:date>2016-06-23T03:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlinks showing as html tags example: &lt;a href='abc.pdf'&gt; The ABC PDF file &lt;/</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279687#M16179</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/folders/myfolders/x.pdf';
proc report data=sashelp.class nowd;
column name sex age;
define age/display;
compute age;
 if age=11 then call define(_col_,'url','/folders/myfolders/test.pdf');
endcomp;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2016 07:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279687#M16179</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-23T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlinks showing as html tags example: &lt;a href='abc.pdf'&gt; The ABC PDF file &lt;/</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279893#M16182</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ODS PDF uses the URL style attribute as shown in Ksharp's example. PDF uses a "plain" URL, and doesn't use an &amp;lt;A&amp;gt; tag like HTML. Here's another couple of examples that illustrate how to create a "fixed" URL link (as for the NAME column header) that goes to &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; and then how to make a dynamic URL, such as for each value for name where the URL is:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/#q=??????" target="_blank"&gt;https://www.google.com/#q=??????&lt;/A&gt; , where ????? is replaced with the name for each row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** method 1;
proc format;
  value $urlnm 'Alfred'='https://www.google.com/#q=Alfred'
               'Alice'='https://www.google.com/#q=Alice'
	       'Barbara'='https://www.google.com/#q=Barbara'
               other = 'http://www.sas.com';
run;

ods pdf file='c:\temp\url1.pdf' notoc;

proc report data=sashelp.class;
  column name age height weight;
  define name / order 'Click for the Name'
     style(header)={url='http://www.google.com'}
     style(column)={url=$urlnm.};
run;
ods pdf close;


** method 2;
ods pdf file='c:\temp\url2.pdf' notoc;

proc report data=sashelp.class;
  column name age height weight;
  define name / order 'Click for the Name'
     style(header)={url='http://www.google.com'};

  compute name;
    length uvar $100;
	uvar=catt('https://www.google.com/#q=',name);
    call define(_col_,'url',uvar);
  endcomp;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 02:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlinks-showing-as-html-tags-example-lt-a-href-abc/m-p/279893#M16182</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-24T02:58:21Z</dc:date>
    </item>
  </channel>
</rss>

