<?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 HOW TO GIVE ORDER TO COMPUTED VARIABLES IN PROC REPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/HOW-TO-GIVE-ORDER-TO-COMPUTED-VARIABLES-IN-PROC-REPORT/m-p/42819#M11166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear kuridisanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that this is possible within the same proc report. Because proc report works from top the bottom and within that from left to right. You would need a step after that to sort the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you do the sum for "total" in a data step before the proc report and then do the proc report and define the new variable as order / group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 08:56:15 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2012-02-01T08:56:15Z</dc:date>
    <item>
      <title>HOW TO GIVE ORDER TO COMPUTED VARIABLES IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/HOW-TO-GIVE-ORDER-TO-COMPUTED-VARIABLES-IN-PROC-REPORT/m-p/42818#M11165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;subject1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;subject2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sanjeev&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;40&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;chaithu&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;99&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;karthik&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ramakanth&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;shiva&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am applying proc report to above data and computing new variale "total" by adding subject1 and subject2.&lt;/P&gt;&lt;P&gt;i want to print that new variable in descending order....&lt;/P&gt;&lt;P&gt;proc report data=test;&lt;/P&gt;&lt;P&gt;columnname subject1 subject2 total;&lt;/P&gt;&lt;P&gt;define total/computed&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;compute total;&lt;/P&gt;&lt;P&gt;total=_c2_/_c3_;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 06:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/HOW-TO-GIVE-ORDER-TO-COMPUTED-VARIABLES-IN-PROC-REPORT/m-p/42818#M11165</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2012-02-01T06:49:02Z</dc:date>
    </item>
    <item>
      <title>HOW TO GIVE ORDER TO COMPUTED VARIABLES IN PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/HOW-TO-GIVE-ORDER-TO-COMPUTED-VARIABLES-IN-PROC-REPORT/m-p/42819#M11166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear kuridisanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that this is possible within the same proc report. Because proc report works from top the bottom and within that from left to right. You would need a step after that to sort the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you do the sum for "total" in a data step before the proc report and then do the proc report and define the new variable as order / group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 08:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/HOW-TO-GIVE-ORDER-TO-COMPUTED-VARIABLES-IN-PROC-REPORT/m-p/42819#M11166</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-02-01T08:56:15Z</dc:date>
    </item>
  </channel>
</rss>

