<?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 Across variable not passed in hyperlink in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Across-variable-not-passed-in-hyperlink/m-p/71158#M8157</link>
    <description>Hello all, &lt;BR /&gt;
I am trying to use proc report to create a grid of counts. Each count is a link to another report for the corresponding grid elements.&lt;BR /&gt;
&lt;BR /&gt;
Problem is the across variable is not passed in the hyperlink.&lt;BR /&gt;
Below is what I am using.&lt;BR /&gt;
proc report data=repo.No_Activity_018;&lt;BR /&gt;
	columns Inactive_Days_Bin person_id ,Plan N;&lt;BR /&gt;
	define  Inactive_Days_Bin/ group 'Inactive Days Bin';&lt;BR /&gt;
	define  Plan/across 'Plan';&lt;BR /&gt;
	define person_id/analysis N '';&lt;BR /&gt;
&lt;BR /&gt;
  	compute person_id;&lt;BR /&gt;
		 urlstring="do?_program=&amp;amp;stpname" || '&amp;amp;plan='||plan||'&amp;amp;bin='||Inactive_Days_Bin;&lt;BR /&gt;
		call define(_col_, 'URL', urlstring);&lt;BR /&gt;
	endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Plan is the across variable.. But does not seem to be passed to the hyperlink.</description>
    <pubDate>Thu, 25 Mar 2010 15:38:24 GMT</pubDate>
    <dc:creator>Jaime</dc:creator>
    <dc:date>2010-03-25T15:38:24Z</dc:date>
    <item>
      <title>Across variable not passed in hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Across-variable-not-passed-in-hyperlink/m-p/71158#M8157</link>
      <description>Hello all, &lt;BR /&gt;
I am trying to use proc report to create a grid of counts. Each count is a link to another report for the corresponding grid elements.&lt;BR /&gt;
&lt;BR /&gt;
Problem is the across variable is not passed in the hyperlink.&lt;BR /&gt;
Below is what I am using.&lt;BR /&gt;
proc report data=repo.No_Activity_018;&lt;BR /&gt;
	columns Inactive_Days_Bin person_id ,Plan N;&lt;BR /&gt;
	define  Inactive_Days_Bin/ group 'Inactive Days Bin';&lt;BR /&gt;
	define  Plan/across 'Plan';&lt;BR /&gt;
	define person_id/analysis N '';&lt;BR /&gt;
&lt;BR /&gt;
  	compute person_id;&lt;BR /&gt;
		 urlstring="do?_program=&amp;amp;stpname" || '&amp;amp;plan='||plan||'&amp;amp;bin='||Inactive_Days_Bin;&lt;BR /&gt;
		call define(_col_, 'URL', urlstring);&lt;BR /&gt;
	endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Plan is the across variable.. But does not seem to be passed to the hyperlink.</description>
      <pubDate>Thu, 25 Mar 2010 15:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Across-variable-not-passed-in-hyperlink/m-p/71158#M8157</guid>
      <dc:creator>Jaime</dc:creator>
      <dc:date>2010-03-25T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Across variable not passed in hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Across-variable-not-passed-in-hyperlink/m-p/71159#M8158</link>
      <description>Hi:&lt;BR /&gt;
  When PROC REPORT builds a report, it does not have visibility of the VALUES of the ACROSS variable (such as your values for PLAN). PROC REPORT is happiest building URLs when it can use ROW (GROUP or ORDER) values. You can, however, build hyperlinks, but you would have to do it conditionally...using absolute column names in a COMPUTE block:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute person_id;&lt;BR /&gt;
  urlstring3="do?_program=&amp;amp;stpname" || '&amp;amp;plan=Asia'||'&amp;amp;bin='||Inactive_Days_Bin;&lt;BR /&gt;
   call define('_c3_','URL',urlstring3);&lt;BR /&gt;
  urlstring4="do?_program=&amp;amp;stpname" || '&amp;amp;plan=Canada'||'&amp;amp;bin='||Inactive_Days_Bin;&lt;BR /&gt;
   call define('_c4_','URL',urlstring4);&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
This would work because you would know whether _c3_ absolute column was the Asia column or whether _c4_ was the Canada column.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 25 Mar 2010 18:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Across-variable-not-passed-in-hyperlink/m-p/71159#M8158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-25T18:09:24Z</dc:date>
    </item>
  </channel>
</rss>

