<?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: Multiple Links proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-Links-proc-Report/m-p/12694#M3157</link>
    <description>Hi:&lt;BR /&gt;
  Yes, it is possible to get 2 hyperlinks in one cell. If you run the code below (not as a stored process), you will see that clicking the NAME value takes you to &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt; and clicking the age value takes you to &lt;A href="http://www.setgame.com" target="_blank"&gt;www.setgame.com&lt;/A&gt;.&lt;BR /&gt;
 &lt;BR /&gt;
  But your CALL DEFINE statement is setting a single URL for the ENTIRE value of the W02 column. You cannot use CALL DEFINE to set 2 different URLs in 1 column. But, you can set 2 URLs -- just not with CALL DEFINE. I used simple URLs and if you have issues with the URLs working in the context of a stored process, I'd recommend working with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\test2url.html' style=sasweb;&lt;BR /&gt;
&lt;BR /&gt;
title 'Test 2 URLs';&lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
  style(column)={protectspecialchars=off};&lt;BR /&gt;
  where age = 13;&lt;BR /&gt;
  column name age dispinfo height weight;&lt;BR /&gt;
  define name / display noprint;&lt;BR /&gt;
  define age / display noprint;&lt;BR /&gt;
  define dispinfo / computed;&lt;BR /&gt;
  define height /sum;&lt;BR /&gt;
  define weight / sum;&lt;BR /&gt;
  compute dispinfo / character length=400;&lt;BR /&gt;
     url1 = '&amp;lt;a href="http://www.sas.com"&amp;gt;';&lt;BR /&gt;
     url2 = '&amp;lt;a href="http://www.setgame.com"&amp;gt;';&lt;BR /&gt;
     dispinfo = catt('&amp;lt;div&amp;gt;',url1,name,'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&amp;lt;div&amp;gt;',url2,put(age,2.0),'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 14 Jun 2011 14:51:16 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-06-14T14:51:16Z</dc:date>
    <item>
      <title>Multiple Links proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-Links-proc-Report/m-p/12693#M3156</link>
      <description>proc report data=LotWafer_Matrix nowd style(report) = [rules=groups cellspacing=0pt cellpadding=2pt];&lt;BR /&gt;
 columns LOT_ID ChildNr BlockSeq OperationSeq OperSeq OpersAway Block Operation &lt;BR /&gt;
         W01 W02 W03 W04 W05 W06 W07 W08 W09 W10 W11 W12 W13 W14 W15 W16 W17 W18 W19 W20 W21 W22 W23 W24 W25 &lt;BR /&gt;
         oWaferMap oWafersToBeProcessed MainStepService;&lt;BR /&gt;
&lt;BR /&gt;
 compute W02;&lt;BR /&gt;
    url_SP = "http://wiksas.imec.be:8080/SASStoredProcess/do?_program=%2FFAB%2Fedoc_lot_attach";&lt;BR /&gt;
    url_stp = compress(url_SP) || "&amp;amp;sel_lotID=" || compress("&amp;amp;sel_lot") || "&amp;amp;Wafer=" || compress(W02) || '" title="View Data" target="_blank';&lt;BR /&gt;
    CALL DEFINE(_COL_, 'URL', url_stp ); &lt;BR /&gt;
	if substr(W02,1,1) eq 'D' then call define (_col_,"STYLE","style={BACKGROUND=#99FF33 FONT_WEIGHT=BOLD}");&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
now i have defined a link to attach, i want an other link, to view..&lt;BR /&gt;
and i want it in the same cell&lt;BR /&gt;
&lt;BR /&gt;
possible or not?</description>
      <pubDate>Tue, 14 Jun 2011 12:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-Links-proc-Report/m-p/12693#M3156</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-06-14T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Links proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-Links-proc-Report/m-p/12694#M3157</link>
      <description>Hi:&lt;BR /&gt;
  Yes, it is possible to get 2 hyperlinks in one cell. If you run the code below (not as a stored process), you will see that clicking the NAME value takes you to &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt; and clicking the age value takes you to &lt;A href="http://www.setgame.com" target="_blank"&gt;www.setgame.com&lt;/A&gt;.&lt;BR /&gt;
 &lt;BR /&gt;
  But your CALL DEFINE statement is setting a single URL for the ENTIRE value of the W02 column. You cannot use CALL DEFINE to set 2 different URLs in 1 column. But, you can set 2 URLs -- just not with CALL DEFINE. I used simple URLs and if you have issues with the URLs working in the context of a stored process, I'd recommend working with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\test2url.html' style=sasweb;&lt;BR /&gt;
&lt;BR /&gt;
title 'Test 2 URLs';&lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
  style(column)={protectspecialchars=off};&lt;BR /&gt;
  where age = 13;&lt;BR /&gt;
  column name age dispinfo height weight;&lt;BR /&gt;
  define name / display noprint;&lt;BR /&gt;
  define age / display noprint;&lt;BR /&gt;
  define dispinfo / computed;&lt;BR /&gt;
  define height /sum;&lt;BR /&gt;
  define weight / sum;&lt;BR /&gt;
  compute dispinfo / character length=400;&lt;BR /&gt;
     url1 = '&amp;lt;a href="http://www.sas.com"&amp;gt;';&lt;BR /&gt;
     url2 = '&amp;lt;a href="http://www.setgame.com"&amp;gt;';&lt;BR /&gt;
     dispinfo = catt('&amp;lt;div&amp;gt;',url1,name,'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&amp;lt;div&amp;gt;',url2,put(age,2.0),'&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 14 Jun 2011 14:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-Links-proc-Report/m-p/12694#M3157</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-14T14:51:16Z</dc:date>
    </item>
  </channel>
</rss>

