<?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: Proc Report:formatting rows, specifying order, calculating a new variable... in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90477#M9314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; It seems to me that you are trying to indent with PRETEXT=. I'm not sure why you're doing that. In my example, the indenting happened with LEFTMARGIN= style attribute. Next, it seems to me that you are creating SORT variable, but then you're not USING the SORT variable in your PROC REPORT step. You can only test in a COMPUTE block what is in the COLUMN statement. WHERE do you list SORT in your COLUMN statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, it looks like you are assigning sequential numbers to each category. Based on what you originally showed, you want SORT to be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Sort&lt;/STRONG&gt;&lt;/SPAN&gt; Measure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;1&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp; Safe_Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;2 &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; Safe_Outcomes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;3 &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq_OSI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;4 &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AWOL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;5 &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; Safe_Practice_Score&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are going to control ORDER using the SORT variable, but that means if you want to TEST on SORT, it has to be in the COLUMN statement. AND, it seems to me that you want to indent if SORT=3 or SORT=4.....not if SORT=1. It looks to me like 1, 2 and 5 are NOT indented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you do NOT need '_c1_' in your CALL DEFINE statement. I don't see an ACROSS usage in your code. A simple _COL_ will work here. See the example below. I just made some fake data without all your variables or rows. But I did put SORT in the COLUMN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data janerept;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; length measure $20;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; infile datalines dlm=',';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; input sort measure $ value;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;return;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;1, Safe_Total, 10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;2, Safe_Outcomes, 20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;3, Freq_OSI, 21&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;4, AWOL, 22&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;5, Safe_Practice_Score, 30&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\janerept.pdf'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=journal notoc;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=janerept nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column sort measure value;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define sort / order noprint;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define measure / display 'Measure';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define value / sum 'Value';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; compute measure;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sort in (2, 3) then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={leftmargin=12pt}');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if sort = 1 then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={font_weight=bold}');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 22:04:07 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-10-22T22:04:07Z</dc:date>
    <item>
      <title>Proc Report:formatting rows, specifying order, calculating a new variable...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90473#M9310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi—&lt;/P&gt;&lt;P&gt;I am very new to proc report and I have an ok understanding of the basics but I have to do more with my report program and I’m having trouble digesting a lot of the online documentation. Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program below is what I have so far but there are several things I need to add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;In there “Measure” Column there are certain rows that I need to indent and change the font weight and size for.&lt;/LI&gt;&lt;LI&gt;The values in measure have to go in a certain order I’m having trouble with that. I thought specifying using “In” would keep the order but It is not.&lt;/LI&gt;&lt;LI&gt;I need to get rid of the grid-lines and spread the report out more.&lt;/LI&gt;&lt;LI&gt;I need to calculate a variable called TIER which awards letter grades based on the rage of scores for&amp;nbsp; 'Safe_Total', 'Perm_Total' 'WellBeing_Total' 'FPS_Scores'.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cut and pasted I sample of what I’m trying to accomplish. Again, I’m very new so&amp;nbsp; any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;listing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;options&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;leftmargin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;".1 in"&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;topmargin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;".1 in"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;rightmargin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;".1 in"&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;bottommargin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;".1 in"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;nodate&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;nonumber&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;orientation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=landscape;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;pdf&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"Z:\SAS\SASCODE\Scorecardtest.pdf"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;startpage&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;yes&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'FY12 Scorecard'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;footnote&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;report&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;nowd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(column)={just=c font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt font_face= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Verdana'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(header)={font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pt font_face= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Verdana'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; FONT_WEIGHT = BOLD };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Measure SCORE1 mean1 Max1 min1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; measure / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;style(column)={just=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;pt font_face= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Verdana'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cellwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;4.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;in}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;style(header)={font_size=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pt font_face= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Verdana'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; FONT_WEIGHT =BOLD};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Measure in( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Safe_Total'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Safe_Outcomes'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Freq_OSI'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'AWOL'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Safe_Practice_Score'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Safe_Process_Score'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Timeliness_OSI'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Timeliness_Certs'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Perm_Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Perm_Outcomes_Score'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Perm_Discharges'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Adoption_Final'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Perm_Practice_Score'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'FASP'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WellBeing_Total'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WellBeing_Out_Score'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Step_Ups'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Lateral_Moves'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'SD_Incentive'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'WellBeing_Practice_Score'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'FPS_Scores'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'FPS_Practice_Score'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Recruitment'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'Foster_Training'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;); &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;footnote&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_all_&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 465px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl32" colspan="6" height="26" width="465"&gt;&lt;STRONG&gt;FY12 SCORECARD&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl35" height="17"&gt;Measure &lt;/TD&gt;&lt;TD class="xl28"&gt;SCORE&lt;/TD&gt;&lt;TD class="xl28"&gt;TIER&lt;/TD&gt;&lt;TD class="xl28"&gt;MEAN&lt;/TD&gt;&lt;TD class="xl28"&gt;MAX&lt;/TD&gt;&lt;TD class="xl28"&gt;MIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19"&gt;&lt;STRONG&gt;Safe_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;82%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl29"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;84%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;95%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;68%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Safe_Outcomes&lt;/TD&gt;&lt;TD class="xl30"&gt;60%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;41%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq_OSI&lt;/TD&gt;&lt;TD class="xl30"&gt;40%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;61%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AWOL&lt;/TD&gt;&lt;TD class="xl30"&gt;80%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;91%&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD&gt;83%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Safe_Practice_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;95%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;86%&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Safe_Process_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;99%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;69%&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timeliness_OSI&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;40%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timeliness_Certs&lt;/TD&gt;&lt;TD class="xl30"&gt;98%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;79%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="20"&gt;&lt;STRONG&gt;Perm_Total &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;84%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl31"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;85%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;92%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;69%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Perm_Outcomes_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;81%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;56%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perm_Discharges&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;78%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adoption_Final&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;99%&lt;/TD&gt;&lt;TD class="xl30"&gt;28%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Perm_Practice_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;85%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FASP&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;46%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19"&gt;&lt;STRONG&gt;WellBeing_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;85%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl29"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;85%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;92%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33"&gt;&lt;STRONG&gt;77%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;WellBeing_Out_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;80%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;80%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step_Ups&lt;/TD&gt;&lt;TD class="xl30"&gt;40%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;81%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lateral_Moves&lt;/TD&gt;&lt;TD class="xl30"&gt;80%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;93%&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SD_Incentive&lt;/TD&gt;&lt;TD class="xl30"&gt;95%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;6%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;WellBeing_Practice_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;88%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;75%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl27" height="20"&gt;&lt;STRONG&gt;FPS_Scores&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;89%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl31"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;80%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;90%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl34"&gt;&lt;STRONG&gt;71%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recruitment&lt;/TD&gt;&lt;TD class="xl30"&gt;84%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;99%&lt;/TD&gt;&lt;TD class="xl30"&gt;60%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FPS_Practice_Score&lt;/TD&gt;&lt;TD class="xl30"&gt;77%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;66%&lt;/TD&gt;&lt;TD class="xl30"&gt;0%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17"&gt;Foster_Training&lt;/TD&gt;&lt;TD class="xl30"&gt;83%&lt;/TD&gt;&lt;TD class="xl30"&gt;&lt;/TD&gt;&lt;TD class="xl30"&gt;100%&lt;/TD&gt;&lt;TD class="xl30"&gt;40%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90473#M9310</guid>
      <dc:creator>JaneNYC</dc:creator>
      <dc:date>2012-10-09T18:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report:formatting rows, specifying order, calculating a new variable...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90474#M9311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Some initial thoughts:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;In there “Measure” Column there are certain rows that I need to indent and change the font weight and size for. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;--Use STYLE= overrides for this ..you will probably have to use a COMPUTE block, but you might be able to use a FORMAT -- the style attribute you want to change will either be INDENT= or LEFTMARGIN= for the MEASURE column -- one of them works better with RTF and the other with PDF.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The values in measure have to go in a certain order I’m having trouble with that. I thought specifying using “In” would keep the order but It is not.&lt;/P&gt;&lt;P&gt;--I believe you will need to create a "fake" ordering variable and have it appear before your Measure column. But since REPORT allows you to use NOPRINT --then you can use it for ordering, but not display it on the report&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to get rid of the grid-lines and spread the report out more.&lt;/P&gt;&lt;P&gt;--Try using STYLE=JOURNAL as a place to start. you can specify OUTPUTWIDTH=6in or WIDTH=6in to spread it out more&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to calculate a variable called TIER which awards letter grades based on the rage of scores for&amp;nbsp; 'Safe_Total', 'Perm_Total' 'WellBeing_Total' 'FPS_Scores'.&lt;/P&gt;&lt;P&gt;--Use a COMPUTE block for this, but I'm not sure what you mean by "range of scores" Let's look at the first section:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl35" height="17" style="border: black 0px solid;"&gt;Measure &lt;/TD&gt;&lt;TD class="xl28" style="border: black 0px solid;"&gt;SCORE&lt;/TD&gt;&lt;TD class="xl28" style="border: black 0px solid;"&gt;TIER&lt;/TD&gt;&lt;TD class="xl28" style="border: black 0px solid;"&gt;MEAN&lt;/TD&gt;&lt;TD class="xl28" style="border: black 0px solid;"&gt;MAX&lt;/TD&gt;&lt;TD class="xl28" style="border: black 0px solid;"&gt;MIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border: black 0px solid;"&gt;&lt;STRONG&gt;Safe_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border: black 0px solid;"&gt;&lt;STRONG&gt;82%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl29" style="border: black 0px solid;"&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border: black 0px solid;"&gt;&lt;STRONG&gt;84%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border: black 0px solid;"&gt;&lt;STRONG&gt;95%&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border: black 0px solid;"&gt;&lt;STRONG&gt;68%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border: black 0px solid;"&gt;Safe_Outcomes&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;60%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;41%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;0%&lt;/TD&gt;&lt;TD style="border: black 0px solid;"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border: black 0px solid;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq_OSI&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;40%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;100%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;0%&lt;/TD&gt;&lt;TD style="border: black 0px solid;"&gt;61%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border: black 0px solid;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AWOL&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;80%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;91%&lt;/TD&gt;&lt;TD class="xl30" style="border: black 0px solid;"&gt;77%&lt;/TD&gt;&lt;TD style="border: black 0px solid;"&gt;83%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Are you ONLY testing on the 82% to get the C or are you basing the score on MEAN MAX and MIN for Safe_Total. This will make a difference to PROC REPORT because it has a "left to right" order for how it places items on the report row and it can't calculate TIER before it places MEAN, MIN and MAX on the report row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this paper and how the INDENT and row ordering happen for example 1. That should get you started.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/173-2008.pdf"&gt;http://www2.sas.com/proceedings/forum2008/173-2008.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90474#M9311</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-10-10T11:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report:formatting rows, specifying order, calculating a new variable...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90475#M9312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is great Cynthia! Thanks so much. I may have to bug you with a few more questions. Thanks!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 15:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90475#M9312</guid>
      <dc:creator>JaneNYC</dc:creator>
      <dc:date>2012-10-10T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report:formatting rows, specifying order, calculating a new variable...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90476#M9313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have been working on the program above and I'm still have issues. Any advice would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a sorting variable like you suggested&amp;nbsp; and then I was trying to use the sorting variable as a way to modify the indentation and font weight in certain cells in the column measure &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;“Measure?” &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;. Again, I'm trying to produce this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 165px;"&gt;&lt;TBODY&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl22" height="17" style="font-style: inherit;" width="165"&gt;&lt;STRONG&gt;Safe_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;Safe_Outcomes&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq_OSI&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AWOL&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;Safe_Practice_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;Safe_Process_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timeliness_OSI&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timeliness_Certs&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl22" height="17" style="font-style: inherit;" width="165"&gt;&lt;STRONG&gt;Perm_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;Perm_Outcomes_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perm_Discharges&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adoption_Final&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;Perm_Practice_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FASP&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl22" height="17" style="font-style: inherit;" width="165"&gt;&lt;STRONG&gt;WellBeing_Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;WellBeing_Out_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step_Ups&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lateral_Moves&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="33" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SD_Incentive&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;WellBeing_Practice_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl22" height="17" style="font-style: inherit;" width="165"&gt;&lt;STRONG&gt;FPS_Scores&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="25" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recruitment&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="17" style="font-style: inherit;" width="165"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FPS_Practice_Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-style: inherit;"&gt;&lt;TD class="xl23" height="34" style="font-style: inherit;" width="165"&gt;Foster_Training&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Here I make the sort variable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data Scorecared_vars ; &lt;/P&gt;&lt;P&gt;retain sort Agency_code agency Measure score;&amp;nbsp; &lt;/P&gt;&lt;P&gt;set Scorecared_vars; &lt;/P&gt;&lt;P&gt;if Measure='Safe_Total' then sort=1;&lt;/P&gt;&lt;P&gt;if Measure='Safe_Outcomes' then sort=2;&lt;/P&gt;&lt;P&gt;if Measure= 'Freq_OSI' then sort= 3&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'AWOL' then sort=4&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Safe_Practice_Score' then sort= 5;&lt;/P&gt;&lt;P&gt;if Measure= 'Safe_Process_Score' then sort=6;&lt;/P&gt;&lt;P&gt;if Measure= 'Timeliness_OSI'&amp;nbsp; then sort= 7&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Timeliness_Certs' then sort= 8&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Perm_Total' then sort= 9 ;&lt;/P&gt;&lt;P&gt;if Measure= 'Perm_Outcomes_Score' then sort=&amp;nbsp; 10 ;&lt;/P&gt;&lt;P&gt;if Measure= 'Perm_Discharges' then sort= 11&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Adoption_Final'&amp;nbsp; then sort= 12&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Perm_Practice_Score' then sort= 13&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'FASP'&amp;nbsp;&amp;nbsp;&amp;nbsp; then sort= 14&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'WellBeing_Total' then sort= 15&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'WellBeing_Out_Score' then sort= 16&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Step_Ups'&amp;nbsp;&amp;nbsp;&amp;nbsp; then sort=17&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'Lateral_Moves' then sort=18&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'SD_Incentive' then sort=19&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'WellBeing_Practice_Score' then sort=20&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'FPS_Scores' then sort= 21&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure= 'FPS_Practice_Score' then sort=22&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure=&amp;nbsp; 'Recruitment' then sort=23&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;if Measure=&amp;nbsp; 'Foster_Training'&amp;nbsp; then sort= 24&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=Scorecared_vars_withms;&amp;nbsp; &lt;/P&gt;&lt;P&gt;by&amp;nbsp; descending Agency_code&amp;nbsp; sort ; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the rest of the program: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ods listing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; options leftmargin=".1 in" topmargin=".1 in" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rightmargin=".1 in" bottommargin=".1 in" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodate nonumber orientation=landscape;&lt;/P&gt;&lt;P&gt;ods pdf file="Z:\SAS\SASCODE\Scorecardtest.pdf" &lt;/P&gt;&lt;P&gt;style=journal&lt;/P&gt;&lt;P&gt;startpage=yes;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;title j=l '^S={preimage="Z:\SAS\SASCODE\NYC ACS Logo2.jpg"}';&lt;/P&gt;&lt;P&gt;title2 'FY12 Familly Based Scorecard'&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;footnote;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=Scorecared_vars_withms nowd&lt;/P&gt;&lt;P&gt;style(column)={just=c font_size=10pt font_face= 'Verdana'}&lt;/P&gt;&lt;P&gt;style(header)={font_size=10 pt font_face= 'Verdana' FONT_WEIGHT = BOLD background=cxcccccc};&lt;/P&gt;&lt;P&gt;column Measure SCORE1 mean1 Max1 min1; &lt;/P&gt;&lt;P&gt;define measure / display &lt;/P&gt;&lt;P&gt;style(column)={just=left font_size=10pt font_face= 'Verdana' cellwidth=4.in}&lt;/P&gt;&lt;P&gt;style(header)={font_size=10 pt font_face= 'Verdana' FONT_WEIGHT =BOLD};&lt;/P&gt;&lt;P&gt;compute Measure;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If sort=1 then ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL DEFINE('_c1_',"STYLE","STYLE={PRETEXT='&amp;nbsp;&amp;nbsp; ' ASIS=ON FONT_STYLE=BOLD}");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;title; &lt;/P&gt;&lt;P&gt;footnote;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 15:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90476#M9313</guid>
      <dc:creator>JaneNYC</dc:creator>
      <dc:date>2012-10-22T15:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report:formatting rows, specifying order, calculating a new variable...</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90477#M9314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; It seems to me that you are trying to indent with PRETEXT=. I'm not sure why you're doing that. In my example, the indenting happened with LEFTMARGIN= style attribute. Next, it seems to me that you are creating SORT variable, but then you're not USING the SORT variable in your PROC REPORT step. You can only test in a COMPUTE block what is in the COLUMN statement. WHERE do you list SORT in your COLUMN statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, it looks like you are assigning sequential numbers to each category. Based on what you originally showed, you want SORT to be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Sort&lt;/STRONG&gt;&lt;/SPAN&gt; Measure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;1&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp; Safe_Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;2 &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; Safe_Outcomes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;3 &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq_OSI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;4 &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AWOL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #0000ff;"&gt;5 &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; Safe_Practice_Score&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are going to control ORDER using the SORT variable, but that means if you want to TEST on SORT, it has to be in the COLUMN statement. AND, it seems to me that you want to indent if SORT=3 or SORT=4.....not if SORT=1. It looks to me like 1, 2 and 5 are NOT indented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you do NOT need '_c1_' in your CALL DEFINE statement. I don't see an ACROSS usage in your code. A simple _COL_ will work here. See the example below. I just made some fake data without all your variables or rows. But I did put SORT in the COLUMN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data janerept;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; length measure $20;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; infile datalines dlm=',';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; input sort measure $ value;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;return;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;1, Safe_Total, 10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;2, Safe_Outcomes, 20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;3, Freq_OSI, 21&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;4, AWOL, 22&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;5, Safe_Practice_Score, 30&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\janerept.pdf'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=journal notoc;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=janerept nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column sort measure value;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define sort / order noprint;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define measure / display 'Measure';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define value / sum 'Value';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; compute measure;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sort in (2, 3) then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={leftmargin=12pt}');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if sort = 1 then&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={font_weight=bold}');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 22:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-formatting-rows-specifying-order-calculating-a-new/m-p/90477#M9314</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-10-22T22:04:07Z</dc:date>
    </item>
  </channel>
</rss>

