<?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 Median in sas 9.3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424857#M104608</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a ODS excel report with proc report, I have noticed in one of the excel outputs that one table should be reflecting the Median values instead of sum.. I tried changing this in the proc report statement:&lt;/P&gt;
&lt;P&gt;define Numbers/group&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;median&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style={tagattr='format:#,###'} center;&amp;nbsp; /** changed sum to median**/ but it doesnt work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried changing in the base data set in sas using proc sql query, still no use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request you to kindly suggest any syntax or anything.I am using SAS 9.3 currently..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 16:30:25 GMT</pubDate>
    <dc:creator>don21</dc:creator>
    <dc:date>2018-01-04T16:30:25Z</dc:date>
    <item>
      <title>Median in sas 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424857#M104608</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a ODS excel report with proc report, I have noticed in one of the excel outputs that one table should be reflecting the Median values instead of sum.. I tried changing this in the proc report statement:&lt;/P&gt;
&lt;P&gt;define Numbers/group&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;median&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style={tagattr='format:#,###'} center;&amp;nbsp; /** changed sum to median**/ but it doesnt work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried changing in the base data set in sas using proc sql query, still no use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request you to kindly suggest any syntax or anything.I am using SAS 9.3 currently..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 16:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424857#M104608</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-01-04T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Media in sas 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424861#M104609</link>
      <description>&lt;P&gt;Its generally not a good idea to do processing in proc report, as that is a reporting function.&amp;nbsp; Use proc means before that to get the data in the way you want then a simple proc report to output the data.&amp;nbsp; Don't think report can even do the more complicated calculations.&lt;/P&gt;
&lt;PRE&gt;proc means data=yourdata;
  by id;
  var thevar;
  output out=want median=median;
run;&lt;/PRE&gt;
&lt;P&gt;Shows and example use of proc means (as you haven't shown any test data or code this is just an example).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424861#M104609</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-04T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Media in sas 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424862#M104610</link>
      <description>&lt;P&gt;You can use statistics only on &lt;EM&gt;analysis&lt;/EM&gt; variables. See the &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473627.htm#a003072085" target="_blank"&gt;documentation&lt;/A&gt; for this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="strong"&gt;&lt;SPAN class="strongEmph"&gt;statistic&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;associates a statistic with an &lt;STRONG&gt;analysis&lt;/STRONG&gt; variable. You must associate a statistic with every analysis variable in its definition. PROC REPORT uses the statistic that you specify to calculate values for the analysis variable for the observations that are represented by each cell of the report. &lt;STRONG&gt;You cannot use &lt;SPAN class="strongEmph"&gt;statistic&lt;/SPAN&gt; in the definition of any other type of variable&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(emphasize by me)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424862#M104610</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-04T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Media in sas 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424964#M104655</link>
      <description>&lt;P&gt;ODS EXCEL isn't supported in SAS 9.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using ODS TAGSETS.EXCELXP or something else?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51418"&gt;@don21&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a ODS excel report with proc report, I have noticed in one of the excel outputs that one table should be reflecting the Median values instead of sum.. I tried changing this in the proc report statement:&lt;/P&gt;
&lt;P&gt;define Numbers/group&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;median&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style={tagattr='format:#,###'} center;&amp;nbsp; /** changed sum to median**/ but it doesnt work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried changing in the base data set in sas using proc sql query, still no use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request you to kindly suggest any syntax or anything.I am using SAS 9.3 currently..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 16:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/424964#M104655</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-04T16:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Media in sas 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/436986#M108757</link>
      <description>I have ungrouped my sas dataset and used it again for median under ODS proc reports, and it is working now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 14 Feb 2018 04:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Median-in-sas-9-3/m-p/436986#M108757</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-02-14T04:38:19Z</dc:date>
    </item>
  </channel>
</rss>

