<?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: Hyperlinking sheets within SAS ODS Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396073#M19351</link>
    <description>&lt;P&gt;We don't need your data, we need a representative sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you can 'recode' your exmaple to work with SASHELP.CARS maybe and put each make on a different tab?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend looking at how Excel creates a link via formulas, use proc report to build a table - the table of contents - that links to the other sheets and then display that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar to the idea here maybe:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-creating-hyperlinks-improperly/td-p/242811" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-creating-hyperlinks-improperly/td-p/242811&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 19:50:46 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-14T19:50:46Z</dc:date>
    <item>
      <title>Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396035#M19349</link>
      <description>&lt;P&gt;So I have code that will simply report out one page with hyperlinks and then the rest of the sheets will be generated by proc report via macro for all 21 medical centers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the first page is a proc report with all facilities and stats and then it connects to each facilities page-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e. ROS&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it is not working per se- I had it working in old code via ExcelXp tagset but not in the new ODS Excel destination-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I have thus far- &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However not sure if this is an issue with MS Office vs SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~Lawrence&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods excel file="/apps/sas/datasets/data137/NCQOS/dev/xxx_sandbox/data/CAUTI/CAUTI.xlsx" style=Seaside options(sheet_name="STATISTICS" SHEET_INTERVAL= 'PAGE' FROZEN_ROWHEADERS='no' &lt;BR /&gt;GRIDLINES='ON' embedded_titles='yes' embedded_footnotes='yes');&lt;/P&gt;
&lt;P&gt;proc report data=final_out headline headskip nowd spanrows&lt;BR /&gt;style (column)={background=white just=center color=black font =("arial",8.0pt)}&lt;BR /&gt;style (header)={background=white just=center color=black font =("arial",9.0pt)}&lt;BR /&gt;;&lt;BR /&gt;columns FACID pts_with_cath standard_ua foley_ua proper_ua_test_pct;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DEFINE FACID/"FACILITY/(Click /Facility/to go to/cases)"&lt;BR /&gt; style(column)={color=blue} /*format=$code.;*/;&lt;BR /&gt;DEFINE pts_with_cath/"Patients/With Catheters";&lt;BR /&gt;DEFINE standard_ua/"Patients/standard UA*"; &lt;BR /&gt;DEFINE foley_ua/"Patients/Foley UA*"; &lt;BR /&gt;DEFINE proper_ua_test_pct/"PCT With/Proper Test/Done" style={tagattr='format:0%'};&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute FACID ;&lt;BR /&gt; IF FACID ne 'TOT' then do;&lt;BR /&gt;urlstring = "#'FACID=" ||strip(facid)|| "'!A1";&lt;BR /&gt;call define(_col_, 'URL', urlstring);&lt;BR /&gt;end;&lt;BR /&gt;if FACID='TOT' then call define(_ROW_,'style',&lt;BR /&gt;'style={background=lightgray color=black}');&lt;BR /&gt;if FACID='TOT' then call define(_ROW_,'style',&lt;BR /&gt;'style={background=lightgray color=black}');&lt;BR /&gt;endcomp;&lt;BR /&gt;run; quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel style=Seaside options( SHEET_INTERVAL= 'PAGE' FROZEN_ROWHEADERS='no' FROZEN_HEADERS= '4'&lt;BR /&gt;GRIDLINES='ON' sheet_name="ROS" embedded_titles='yes' embedded_footnotes='yes');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc report data=UA_group (where=(standard_ua=1 and facid='ROS'))&lt;BR /&gt;style (column)={background=white just=center color=black font =("arial",8.0pt)}&lt;BR /&gt;style (header)={background=white just=center color=black font =("arial",9.0pt)};&lt;/P&gt;
&lt;P&gt;columns SPECIALTY start_dtx end_dtx facid pat_mrn_id hosp_admsn_time hosp_disch_time start_dt end_dt PROC_CODE test_type PROV_NAME ;&lt;BR /&gt;define SPECIALTY/GROUP;&lt;BR /&gt;define start_dtx/noprint analysis;&lt;BR /&gt;define end_dtx/noprint analysis;&lt;BR /&gt;define start_dt/"START/CATHETER/TIME*"; &lt;BR /&gt;define end_dt/"END/CATHETER/TIME*"; &lt;BR /&gt;define Test_type /"Test";&lt;BR /&gt;define Proc_code/"Lab Code";&lt;BR /&gt;define PROV_NAME /"Provider";&lt;BR /&gt;define facid/noprint;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute start_dt ;&lt;BR /&gt;if start_dtx.sum = . then call define(_COL_,'style','style={background=salmon color=black}');&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute end_dt ;&lt;BR /&gt;if end_dtx.sum = . then call define(_COL_,'style','style={background=salmon color=black}');&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ODS _ALL_ Close;&lt;/P&gt;
&lt;P&gt;ods listing;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396035#M19349</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2017-09-14T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396048#M19350</link>
      <description>&lt;P&gt;SSince we don't know what values FACID takes, it's really impossible to say what is going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to provide us with a representative portion of the data, so we can actually run your code and figure out what the problem is.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 18:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396048#M19350</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-09-14T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396073#M19351</link>
      <description>&lt;P&gt;We don't need your data, we need a representative sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you can 'recode' your exmaple to work with SASHELP.CARS maybe and put each make on a different tab?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend looking at how Excel creates a link via formulas, use proc report to build a table - the table of contents - that links to the other sheets and then display that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar to the idea here maybe:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-creating-hyperlinks-improperly/td-p/242811" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-creating-hyperlinks-improperly/td-p/242811&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396073#M19351</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-14T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396079#M19352</link>
      <description>&lt;P&gt;True enough, unfortunately due to sensitive medical information-even offering a representaive data would require a lot of work.&lt;/P&gt;
&lt;P&gt;However I did manage to resolve the issue &amp;nbsp;on my own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lawrence&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396079#M19352</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2017-09-14T20:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396080#M19353</link>
      <description>&lt;P&gt;Reeza;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. Going back and reviewing the code I realized it was a programming oversight on my end-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;pink sections didn't match between the links as the compute facid &amp;nbsp;would equal FACID=ROS!A1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the sheet was simply 'ROS'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A byproduct of switching methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute FACID ;&lt;BR /&gt; IF FACID ne 'TOT' then do;&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;urlstring = "#'FACID=" ||strip(facid)|| "'!A1";&lt;/FONT&gt;&lt;BR /&gt;call define(_col_, 'URL', urlstring);&lt;BR /&gt;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel style=Seaside options( SHEET_INTERVAL= 'PAGE' FROZEN_ROWHEADERS='no' FROZEN_HEADERS= '4'&lt;BR /&gt;GRIDLINES='ON' sheet_name=&lt;FONT color="#FF00FF"&gt;"ROS" &lt;/FONT&gt;embedded_titles='yes' embedded_footnotes='yes');&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396080#M19353</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2017-09-14T20:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlinking sheets within SAS ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396082#M19354</link>
      <description>&lt;P&gt;You might post the code that was working for tagsets.Excelxp for comparison.&lt;/P&gt;
&lt;P&gt;Also please post code into a codebox opened with the forum icons {i} or the "SAS Run" to preserve code formatting. The message windows here reformat text and make code hard to read with all the indents are removed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 20:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Hyperlinking-sheets-within-SAS-ODS-Excel/m-p/396082#M19354</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-14T20:07:23Z</dc:date>
    </item>
  </channel>
</rss>

