<?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 do I sort in proc report? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438630#M20430</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the below code to create&amp;nbsp;an excel file. However I want to sort the output by the highlighted color "gold" &amp;amp; then put only those highlighted rows on top of the report output as in the attached "desired report".&lt;/P&gt;&lt;P&gt;The code below gives me the relevant rows highlighted but does not sort by the color &amp;amp; put it on top of the spreadsheet.&lt;/P&gt;&lt;P&gt;Please help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* CREATE OTP FEEDBACK SPLIT SPREADSHEET PER EA IN DIRECTORY */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_all_&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&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;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;excel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\105hlsasdbpr01\DATA01\MI_TEAM_STORAGE\TEAM\Collections &amp;amp; Recoveries\NAS\Daily\OTP Feedback\Latest Report\Mtrack OTPFeedback.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sheet_name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"OTP_FeedbackAll"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;frozen_headers&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'yes'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;absolute_row_height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'15'&lt;/FONT&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;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.OTP_Feedback1 &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;headline&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nocenter&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) = [background=green foreground=white];&lt;/FONT&gt;&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; EstateAgent AccountNumber ClientName OTPSubmittedDate OTPStatus OTPValue OTPSLAdays CancellationDate BuyerName BuyerFinance BFOutcome BFSLAdays&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FinalBondProvider TransferAttorneys Comments PropertyDetails Commission CommPercentage EABranch DateOTPAccepted OTPSubmitMonth LeadSource;&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; EstateAgent / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'EstateAgent'&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;15&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; AccountNumber / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=3cm]; &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; ClientName / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;40&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; OTPSubmittedDate / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPStatus /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'OTPStatus'&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)=[cellwidth=2cm] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; OTPValue / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2.5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;cm] &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;comma12.2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPSLADays / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; CancellationDate;&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; CancellationDate = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;call define(_row_,&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={background=gold}"&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;endcomp&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; CancellationDate / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; BuyerName /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;20&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BuyerFinance / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BuyerFinance'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BFOutcome /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BFOutcome'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BFSlAdays / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; FinalBondProvider /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'FinalBondProv'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; TransferAttorneys /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'TransferAttorneys'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; Comments / &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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; PropertyDetails / &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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; Commission / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&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;comma12.2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; CommPercentage / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=3cm];&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; EABranch /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; DateOTPAccepted /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPSubmitMonth / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"format:yyyymm"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; LeadSource / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=4cm] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&lt;/FONT&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;run&lt;/STRONG&gt;&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;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;excel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&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;</description>
    <pubDate>Tue, 20 Feb 2018 13:14:44 GMT</pubDate>
    <dc:creator>DeepaG</dc:creator>
    <dc:date>2018-02-20T13:14:44Z</dc:date>
    <item>
      <title>How do I sort in proc report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438630#M20430</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using the below code to create&amp;nbsp;an excel file. However I want to sort the output by the highlighted color "gold" &amp;amp; then put only those highlighted rows on top of the report output as in the attached "desired report".&lt;/P&gt;&lt;P&gt;The code below gives me the relevant rows highlighted but does not sort by the color &amp;amp; put it on top of the spreadsheet.&lt;/P&gt;&lt;P&gt;Please help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* CREATE OTP FEEDBACK SPLIT SPREADSHEET PER EA IN DIRECTORY */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_all_&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&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;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;excel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\105hlsasdbpr01\DATA01\MI_TEAM_STORAGE\TEAM\Collections &amp;amp; Recoveries\NAS\Daily\OTP Feedback\Latest Report\Mtrack OTPFeedback.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sheet_name&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"OTP_FeedbackAll"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;frozen_headers&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'yes'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;absolute_row_height&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'15'&lt;/FONT&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;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.OTP_Feedback1 &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;headline&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nocenter&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) = [background=green foreground=white];&lt;/FONT&gt;&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; EstateAgent AccountNumber ClientName OTPSubmittedDate OTPStatus OTPValue OTPSLAdays CancellationDate BuyerName BuyerFinance BFOutcome BFSLAdays&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FinalBondProvider TransferAttorneys Comments PropertyDetails Commission CommPercentage EABranch DateOTPAccepted OTPSubmitMonth LeadSource;&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; EstateAgent / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'EstateAgent'&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;15&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; AccountNumber / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=3cm]; &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; ClientName / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;40&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; OTPSubmittedDate / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPStatus /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'OTPStatus'&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)=[cellwidth=2cm] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; OTPValue / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2.5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;cm] &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;comma12.2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPSLADays / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; CancellationDate;&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; CancellationDate = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;call define(_row_,&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={background=gold}"&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;endcomp&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; CancellationDate / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; BuyerName /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=data[ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;20&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;% tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'wrap:no'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BuyerFinance / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BuyerFinance'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BFOutcome /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BFOutcome'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; BFSlAdays / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; FinalBondProvider /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'FinalBondProv'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; TransferAttorneys /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'TransferAttorneys'&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; Comments / &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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; PropertyDetails / &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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; Commission / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;4&lt;/FONT&gt;&lt;/STRONG&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;comma12.2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; CommPercentage / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=3cm];&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; EABranch /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;width&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&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; DateOTPAccepted /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"wrap:no"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;right&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; OTPSubmitMonth / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"format:yyyymm"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;center&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; LeadSource / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&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)=[cellwidth=4cm] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&lt;/FONT&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;run&lt;/STRONG&gt;&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;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;excel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&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;</description>
      <pubDate>Tue, 20 Feb 2018 13:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438630#M20430</guid>
      <dc:creator>DeepaG</dc:creator>
      <dc:date>2018-02-20T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort in proc report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438639#M20431</link>
      <description>&lt;P&gt;Pleas use the code window - its the {i} above post area - in future for posting code as it retains code formatting - helps to read the code.&amp;nbsp; Ordering in proc report is done by using the order keyword:&lt;/P&gt;
&lt;PRE&gt;define CancellationDate / order order=internal display style(column)={tagattr="wrap:no"} right;&lt;/PRE&gt;
&lt;P&gt;You can change the parameter after the order=.&amp;nbsp; Here is a paper on it:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/090-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/090-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 13:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438639#M20431</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-20T13:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort in proc report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438888#M20441</link>
      <description>&lt;P&gt;Tried using the order keyword, but didn't get the desired result. Thanks for your assistance anyway..&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 08:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-sort-in-proc-report/m-p/438888#M20441</guid>
      <dc:creator>DeepaG</dc:creator>
      <dc:date>2018-02-21T08:36:51Z</dc:date>
    </item>
  </channel>
</rss>

