<?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: How to do a Drill Down in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103087#M28864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; It almost sounds to me like you want an Excel pivot table when you say "be able to click on the test1 to see the 10 entries click again and group it back together".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use SAS, you can simulate drill down from one report (such as a summary report) to another report (such as a detail report) using ODS HTML. Also with ODS, in a separate method, you can use ODS MSOFFICE2K_X to create an HTML file that will open into a pivot table in Excel because of additional JavaScript that's added to the HTML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, the code below illustrates the first kind of drill-down example, where you have separate files and you drill-down from the summary report (the REPORT or TABULATE) to a detail report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For more information about the second method, using ODS to make HTML files that can open into pivot tables, refer to this page on using ODS TAGSETS.MSOFFICE2K_X:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html" title="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html&lt;/A&gt;&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;** 1) First make the drill-down files, so you know the names;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='Females.html' style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Data on Women';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='file_with_url.html' 'Go Back To Summary';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote link='Males.html' 'Detail Report for Men';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where sex = 'F';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&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;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='Males.html' style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Data on Men';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='file_with_url.html' 'Go Back To Summary';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote link='Females.html' 'Detail Report for Women';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where sex = 'M';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&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;** 2) Create a user-defined format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; value $link 'M' = 'Males.html'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F' = 'Females.html';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; value agefmt 13.222222-13.22223 = '&lt;A class="jive-link-external-small" href="http://www.sas.com/"&gt;http://www.sas.com&lt;/A&gt;'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = '&lt;A class="jive-link-external-small" href="http://www.setgame.com';/"&gt;http://www.setgame.com';&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** 3) Now use the format in a URL= style override.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp; Note how the age format goes to a web site instead of;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp; a "drill-down" file. This is another use for URL style attribute.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='file_with_url.html' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'with PROC REPORT';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'click on a link to see the detail data';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column sex n age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define sex / group&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style={url=$link.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define n / 'Count';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define age / mean 'Average Age'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style={url=agefmt.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define height / mean 'Average Height';&lt;/STRONG&gt;&lt;BR /&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;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'with PROC TAB';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'click on a link to go to URL';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;class sex;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;classlev sex /style={url=$link.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;tables sex,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mean*(age*{style={url=agefmt.}} height);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 21:17:14 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-05-03T21:17:14Z</dc:date>
    <item>
      <title>How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103086#M28863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; I need assistance in creating a drill down report.&lt;/P&gt;&lt;P&gt;I have a table Dep&amp;nbsp; it has 3 unique values Test1, test2, test3. Each value has a col of true an false . How can I get to &lt;/P&gt;&lt;P&gt;test1&amp;nbsp; 5 True&amp;nbsp; 10 total&amp;nbsp; 50%&lt;/P&gt;&lt;P&gt;test2&amp;nbsp; 4 True&amp;nbsp; 10 total&amp;nbsp; 40%&lt;/P&gt;&lt;P&gt;test3&amp;nbsp; 8 True&amp;nbsp; 10 total&amp;nbsp; 80%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And be able to click on the test1 to see the 10 entries clcik again an group it back together?&lt;/P&gt;&lt;P&gt;I would like to export it if possbile to a Excel format if not possble than a HTML.&lt;/P&gt;&lt;P&gt;Thanks again for you assitance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 18:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103086#M28863</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-05-03T18:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103087#M28864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; It almost sounds to me like you want an Excel pivot table when you say "be able to click on the test1 to see the 10 entries click again and group it back together".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use SAS, you can simulate drill down from one report (such as a summary report) to another report (such as a detail report) using ODS HTML. Also with ODS, in a separate method, you can use ODS MSOFFICE2K_X to create an HTML file that will open into a pivot table in Excel because of additional JavaScript that's added to the HTML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, the code below illustrates the first kind of drill-down example, where you have separate files and you drill-down from the summary report (the REPORT or TABULATE) to a detail report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For more information about the second method, using ODS to make HTML files that can open into pivot tables, refer to this page on using ODS TAGSETS.MSOFFICE2K_X:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html" title="http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html&lt;/A&gt;&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;** 1) First make the drill-down files, so you know the names;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='Females.html' style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Data on Women';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='file_with_url.html' 'Go Back To Summary';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote link='Males.html' 'Detail Report for Men';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where sex = 'F';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&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;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='Males.html' style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'Data on Men';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 link='file_with_url.html' 'Go Back To Summary';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote link='Females.html' 'Detail Report for Women';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where sex = 'M';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&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;** 2) Create a user-defined format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; value $link 'M' = 'Males.html'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F' = 'Females.html';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; value agefmt 13.222222-13.22223 = '&lt;A class="jive-link-external-small" href="http://www.sas.com/"&gt;http://www.sas.com&lt;/A&gt;'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = '&lt;A class="jive-link-external-small" href="http://www.setgame.com';/"&gt;http://www.setgame.com';&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** 3) Now use the format in a URL= style override.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp; Note how the age format goes to a web site instead of;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp; a "drill-down" file. This is another use for URL style attribute.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html path='c:\temp' (url=none)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file='file_with_url.html' &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'with PROC REPORT';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'click on a link to see the detail data';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;footnote ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;column sex n age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define sex / group&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style={url=$link.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define n / 'Count';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define age / mean 'Average Age'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style={url=agefmt.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define height / mean 'Average Height';&lt;/STRONG&gt;&lt;BR /&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;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title 'with PROC TAB';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'click on a link to go to URL';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;class sex;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;classlev sex /style={url=$link.};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var age height;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;tables sex,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mean*(age*{style={url=agefmt.}} height);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 21:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103087#M28864</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-05-03T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103088#M28865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Hi Cynthia,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Enclose is my proc tab&amp;nbsp; how can I apply your examples to the script? "Compliance is text (True/False)... Thanks again&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;proc format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; picture tabpct (round)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; low-high='009.00%';&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;ODS HTML3 file='H:\SCR.xls' style=minimal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;options missing=' ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;proc tabulate data=SCR1 f=10.2 S=[backGROUND=light yellow&amp;nbsp; JUST=C] noseps;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; where Vendor='TEST1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; class DateRange / order =data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; class VSB Compliance;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; classlev Compliance /S=[BACKGROUND=light grey];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; keylabel all='Total';&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp; table&amp;nbsp; VSB*(Compliance all), daterange*(n='N'*f=8.0 pctn&amp;lt;Compliance all&amp;gt;='Percent'*f=tabpct.)All pctn&amp;lt;Compliance all&amp;gt;='Overall'*f=tabpct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp; /RTS=50 MISSTEXT ='0' box='Unscheduled'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;ODS HTML3 close;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 04:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103088#M28865</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-05-04T04:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103089#M28866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm sorry. I don't quite get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; At first, you said you wanted to "drill-down" -- so my example shows how to build 2 separate files (one for females and one for males). Then I have a PROC REPORT summary report (which allows drill-down to the 2 files) and I also have a PROC TABULATE summary report (which also allows drill-down to the 2 files). In my PROC TABULATE, I associate the CLASSLEV for the SEX variable with a user-defined format:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;classlev sex /&lt;SPAN style="color: #ff0000;"&gt;style={url=$link.};&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and the URL= style attribute causes a hyperlink to be built in the summary file. Then, when the user clicks on the hyperlink in the summary file, the hyperlink causes either females.html or males.html to load into the browser. Did you run my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't understand what you mean when you say 'how can I apply your examples to the script? "Compliance is text (True/False)" ' Do you want the string "Compliance is text (True/False)" to be a title? A footnote? A row or column label? A label in the box area at the intersection of row and column headers? Perhaps you want that string as a "flyover" or popup window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is one text string, so I can't imagine that you want the user to drill-down to a separate file that contains just that text string? If you want that string to be a label for the COMPLIANCE variable, then you would assign it either in a LABEL statement inside the TABULATE step or you would assign it in the TABLE statement. If you want that text string as a label in the BOX area, then you would assign the label in the BOX= option on the TABLE statement. If you want that text string as a title, then you would use it in a TITLE statement. If you want that single text string as a "drill-down", then you would need to make a file which contained the text string and then follow the general steps that I've shown in order to set a URL for that file. If you want that text string as a popup box or "flyover" window, then you would use the FLYOVER style attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However, I am not sure that some of these techniques (such as URL= or FLYOVER=) will continue to work when you open the HTML file with Excel. I know that URL= and FLYOVER= work in a browser, but Excel is not a browser -- and just because you name your file with .XLS as the file extension, that doesn't mean you are creating a true, binary Excel file. You are merely creating a file that Excel knows how to open. Whether or not Excel respects all the HTML features you use (such as hyperlinks or flyover boxes) is something you have to test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103089#M28866</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-05-04T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103090#M28867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;Thank you for your response... I followed your code that creates A PROC REPORTwhich after tweaking to my data it work. What I needed your help on is how to&amp;nbsp; get a % included into the Proc Report&amp;nbsp; for example using your script height and Age&amp;nbsp;&amp;nbsp; if those varabiles were just numbers I want to get Age&amp;nbsp; divided into height to get me the % in the 1st level not when you drill down... What I'm doing is getting total # of opportunitiies divide by # of comliance... Thanks again Cynthia for the help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 06:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/103090#M28867</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-05-07T06:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/277332#M58743</link>
      <description>&lt;P&gt;Dear Madam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to prepare male html and female html &amp;nbsp;and how to give path.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 18:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/277332#M58743</guid>
      <dc:creator>ramak</dc:creator>
      <dc:date>2016-06-14T18:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a Drill Down</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/277337#M58745</link>
      <description>Please look at the code marked "1)" in the code that I posted in 2012. The male.html and the female.html files are created as the first step of the entire program. In my code I specify the path location on my personal computer's C: drive as c:\temp in the PATH= option. I don't know where you are saving the HTML files, but you should write the files to a physical folder location where you have write access.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 14 Jun 2016 18:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-do-a-Drill-Down/m-p/277337#M58745</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-14T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

