<?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 PROC REPORT /order statement &amp; compute in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60846#M7246</link>
    <description>Hello all; &lt;BR /&gt;
I have two groups that are color coded based on certain parameters. The call define statement works just fine if I do not use the order parameter. However based on the code below it properly colors the first observation in each group.&lt;BR /&gt;
  However I need the order statement to separate the two groups. &lt;BR /&gt;
&lt;BR /&gt;
The code follows below. _NAME_ is actually the category but was renamed in the proc transpose statement... &lt;BR /&gt;
&lt;BR /&gt;
Any suggestions helpful... Thanks... &lt;BR /&gt;
&lt;BR /&gt;
proc report nowd; &lt;BR /&gt;
COLUMNS _NAME_  UNIT    _1  _200807   _200808    _200809   _200810	_2; &lt;BR /&gt;
DEFINE _NAME_ /order " "   style={background=lavender}; &lt;BR /&gt;
DEFINE _1/"FY08";&lt;BR /&gt;
DEFINE _2/"FYTD";&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
compute _2;&lt;BR /&gt;
if _NAME_='VAP RATE (per 1000 device days)' THEN DO;&lt;BR /&gt;
IF  substr(_2,1,3)&amp;gt;1.3 then do;&lt;BR /&gt;
call define (_col_, 'style','style={background=light red}'); &lt;BR /&gt;
end;&lt;BR /&gt;
end;&lt;BR /&gt;
if _NAME_='VAP RATE (per 1000 device days)' THEN DO;&lt;BR /&gt;
IF substr(_2,1,3)&amp;lt;1.3 then do;&lt;BR /&gt;
call define (_col_, 'style','style={background=light green}');&lt;BR /&gt;
end;&lt;BR /&gt;
end;&lt;BR /&gt;
endcomp;</description>
    <pubDate>Wed, 12 Nov 2008 17:09:26 GMT</pubDate>
    <dc:creator>_LB</dc:creator>
    <dc:date>2008-11-12T17:09:26Z</dc:date>
    <item>
      <title>PROC REPORT /order statement &amp; compute</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60846#M7246</link>
      <description>Hello all; &lt;BR /&gt;
I have two groups that are color coded based on certain parameters. The call define statement works just fine if I do not use the order parameter. However based on the code below it properly colors the first observation in each group.&lt;BR /&gt;
  However I need the order statement to separate the two groups. &lt;BR /&gt;
&lt;BR /&gt;
The code follows below. _NAME_ is actually the category but was renamed in the proc transpose statement... &lt;BR /&gt;
&lt;BR /&gt;
Any suggestions helpful... Thanks... &lt;BR /&gt;
&lt;BR /&gt;
proc report nowd; &lt;BR /&gt;
COLUMNS _NAME_  UNIT    _1  _200807   _200808    _200809   _200810	_2; &lt;BR /&gt;
DEFINE _NAME_ /order " "   style={background=lavender}; &lt;BR /&gt;
DEFINE _1/"FY08";&lt;BR /&gt;
DEFINE _2/"FYTD";&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
compute _2;&lt;BR /&gt;
if _NAME_='VAP RATE (per 1000 device days)' THEN DO;&lt;BR /&gt;
IF  substr(_2,1,3)&amp;gt;1.3 then do;&lt;BR /&gt;
call define (_col_, 'style','style={background=light red}'); &lt;BR /&gt;
end;&lt;BR /&gt;
end;&lt;BR /&gt;
if _NAME_='VAP RATE (per 1000 device days)' THEN DO;&lt;BR /&gt;
IF substr(_2,1,3)&amp;lt;1.3 then do;&lt;BR /&gt;
call define (_col_, 'style','style={background=light green}');&lt;BR /&gt;
end;&lt;BR /&gt;
end;&lt;BR /&gt;
endcomp;</description>
      <pubDate>Wed, 12 Nov 2008 17:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60846#M7246</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-11-12T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT /order statement &amp; compute</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60847#M7247</link>
      <description>If I add a category I can get it to work properly, &lt;BR /&gt;
but then if I format the the order by variable to names it will order them alphabetically-how do I stop this-&lt;BR /&gt;
&lt;BR /&gt;
And how I suppress or leavea column intentially blank...&lt;BR /&gt;
Thanks.. &lt;BR /&gt;
&lt;BR /&gt;
Lawrence</description>
      <pubDate>Wed, 12 Nov 2008 17:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60847#M7247</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-11-12T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT /order statement &amp; compute</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60848#M7248</link>
      <description>Nevermind I got it...</description>
      <pubDate>Wed, 12 Nov 2008 17:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-order-statement-compute/m-p/60848#M7248</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2008-11-12T17:59:12Z</dc:date>
    </item>
  </channel>
</rss>

