<?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: Sorting within Group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362805#M85751</link>
    <description>&lt;P&gt;Please show us a sample of the result, pointing out the part which is not wanted.&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 17:46:49 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2017-05-30T17:46:49Z</dc:date>
    <item>
      <title>Sorting within Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362797#M85747</link>
      <description>&lt;P&gt;Hi I am trying to create a report from a sorted dataset ( Grp_Order - Ascending &amp;amp; Total_Paid - Descending).&amp;nbsp; The only parts that are sorted correctly are the odd # breaks.&amp;nbsp; I tried variations of order = internal, order = data on the sorted variables.&amp;nbsp; Here is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=WORK.UTILIZATION_DATA_ORDER &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nowd&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header) = &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[just = left&lt;/P&gt;&lt;P&gt;font_face = calibri&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;font_size = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;foreground = white&lt;/P&gt;&lt;P&gt;background = teal&lt;/P&gt;&lt;P&gt;protectspecialchars=off] ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;column&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Groupm Service_Category CHARGE_AMOUNT DISALLOW_AMOUNT ALLOWED_AMOUNT DISCOUNT_AMOUNT BENEFIT_AMOUNT DEDUCTIBLE_AMOUNT COPAY_AMOUNT COB_AMOUNT COINSURANCE_AMOUNT TOTAL_PAID Paid_Count Discount_Percent;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;WHERE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Current_Period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'X'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Groupm / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ORDER&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Service_Category / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ORDER&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=data &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Service Category'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)=[asis=on] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=l vjust =b };&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;break&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;after&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Groupm / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ol&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;summarize&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;page&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rbreak&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;before&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;summarize&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;compute&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Service_Category;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _break_=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'_RBREAK_'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Service_Category=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Grand Total'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_row_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'style'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'style=[font_weight=bold color = white background = grey]'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; upcase(_break_)=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"GROUPM"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Service_Category=Groupm;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_row_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'style'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'style=[font_weight=bold color = white background = grey]'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Service_Category = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; || Service_Category;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endcomp&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CHARGE_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Charges'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DISALLOW_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Disallowed'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ALLOWED_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Allowed'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DISCOUNT_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Discount'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; BENEFIT_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Benefit'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DEDUCTIBLE_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Deductible'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COPAY_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Co-Pay'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COB_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'COB'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COINSURANCE_AMOUNT / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Coinsurance'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TOTAL_PAID / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Plan Payment'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=data &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;DOLLAR16.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Paid_Count / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SUM&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Paid Count'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;Comma14.0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Discount_Percent / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;computed&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Disc. %'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;PERCENT7.1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={just=c vjust=b};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;compute&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Discount_Percent; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Discount_Percent= DISCOUNT_AMOUNT.sum / ALLOWED_AMOUNT.sum;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endcomp&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help...thanks in advance..&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362797#M85747</guid>
      <dc:creator>cbarks</dc:creator>
      <dc:date>2017-05-30T17:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362805#M85751</link>
      <description>&lt;P&gt;Please show us a sample of the result, pointing out the part which is not wanted.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362805#M85751</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-30T17:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362813#M85755</link>
      <description>&lt;P&gt;On the attached, page 1 is sorted by plan payment (Total_Paid) in descending order.&amp;nbsp; But page 2 is not.&amp;nbsp; Page 3 is sorted correctly, but page 4 is not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sorting-within-Group/m-p/362813#M85755</guid>
      <dc:creator>cbarks</dc:creator>
      <dc:date>2017-05-30T17:58:39Z</dc:date>
    </item>
  </channel>
</rss>

