<?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: Help with html drilldown links in proc report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134008#M36345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Cynthia. However, when I run it this way, I get an error for this line:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; background-color: #ffffff;"&gt; style(column)=Header{url=$URLFMT.};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR 79-322: Expecting a (.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm not sure where to put the (. I've tried several iterations with no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 13:33:22 GMT</pubDate>
    <dc:creator>sarahsasuser</dc:creator>
    <dc:date>2013-05-14T13:33:22Z</dc:date>
    <item>
      <title>Help with html drilldown links in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134006#M36343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a graph that drills down into tables, that then drill down into further tables. I can get the chart links to work, but cannot figure out how to link the 1st table info to the 2nd. I want to click on Building in table 1 and have that drill down into the appropriate building number in table 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart code:&lt;/P&gt;&lt;P&gt;/*&amp;nbsp; if (TSG="A1") then TSGG='HREF="TSGG1.htm"'; etc.*/&lt;/P&gt;&lt;P&gt;proc gchart data=chart;&lt;/P&gt;&lt;P&gt;hbar protocol/ sumvar=value group=TSG subgroup=step nozero sum sumlabel='Total Days' descending&lt;/P&gt;&lt;P&gt;maxis=axis1 raxis=axis2 gaxis=axis3 legend=legend1 html=TSGG html_legend=TSGG;&lt;/P&gt;&lt;P&gt;run; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1 code:&lt;/P&gt;&lt;P&gt;%macro do_TSG(TSG);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods html file="&amp;amp;TSG..htm" path=odsout style=listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Development Timeline Milestones for Building ";&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc report data=report nowd split='/';&lt;/P&gt;&lt;P&gt;&amp;nbsp; where TSG="&amp;amp;TSG";&lt;/P&gt;&lt;P&gt;&amp;nbsp; columns&amp;nbsp; building TSG Group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define&lt;SPAN style="color: #ff0000;"&gt; building&lt;/SPAN&gt;/display "Building"&lt;/P&gt;&lt;P&gt;&amp;nbsp; define TSG/ display "TSG Group";&lt;/P&gt;&lt;P&gt;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%mend do_TSG;&lt;/P&gt;&lt;P&gt;%do_TSG (X1); &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Table 2 code:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ODS HTML BODY='&amp;amp;Building..html' PATH=odsout;&lt;/P&gt;&lt;P&gt;%macro do_build(building);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /* Open ODS HTML destination. Use the region name as the filename */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ods html file="&amp;amp;building..htm" path=odsout style=listing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Set the axis label and title */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 "Comments for Bulding &amp;amp;Building ";&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc report data=comment nowd split='/';&lt;/P&gt;&lt;P&gt;&amp;nbsp; where Building="&amp;amp;Building";&lt;/P&gt;&lt;P&gt;&amp;nbsp; columns&amp;nbsp; building Date Comments;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define building/ display "Building";&lt;/P&gt;&lt;P&gt;&amp;nbsp; define date/ display "Date";&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Comments/ display "Comments";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /* Close the ODS HTML destination */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ods html close;&lt;/P&gt;&lt;P&gt;%mend do_building;&lt;/P&gt;&lt;P&gt;%do_building (A11); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 17:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134006#M36343</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2013-05-13T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with html drilldown links in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134007#M36344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example of a simple drilldown with PROC REPORT. Not "macroized", but it should help you figure out how to create drilldown links using PROC REPORT. This is just ONE way to make a drilldown link. You could use CALL DEFINE and the URL or URLBP arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** this technique is better if I do not care;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** what the drill down name is or if I am;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** letting it be generated automatically by ODS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; value $URLFMT 'Asia' = 'Reg1.html'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Canada' = 'Reg2.html'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; 'Pacific' = 'Reg3.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none) file='Reg1.html'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb newfile=proc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes(obs=15);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region = 'Asia';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Asia';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='main.html' 'Go Back to Report';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes(obs=15);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region = 'Canada';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Canada';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='main.html' 'Go Back to Report';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes(obs=15);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region = 'Pacific';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Pacific';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='main.html' 'Go Back to Report';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none) file='main.html'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Report with URL in format';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'File names are different from Region names';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region in ('Asia', 'Canada', 'Pacific');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column region sales,(min mean max);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define region / group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)=Header{url=$URLFMT.};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define sales/ 'Sales';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134007#M36344</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-05-14T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with html drilldown links in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134008#M36345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Cynthia. However, when I run it this way, I get an error for this line:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; background-color: #ffffff;"&gt; style(column)=Header{url=$URLFMT.};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR 79-322: Expecting a (.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm not sure where to put the (. I've tried several iterations with no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134008#M36345</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2013-05-14T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with html drilldown links in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134009#M36346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please disregard my last comment. I was able to get this to work by appropriately using the formats. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 14:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-html-drilldown-links-in-proc-report/m-p/134009#M36346</guid>
      <dc:creator>sarahsasuser</dc:creator>
      <dc:date>2013-05-14T14:42:51Z</dc:date>
    </item>
  </channel>
</rss>

