<?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: compute statement in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68512#M7878</link>
    <description>Cynthia;&lt;BR /&gt;
That worked. Thank you. &lt;BR /&gt;
LB</description>
    <pubDate>Mon, 12 Jan 2009 16:19:01 GMT</pubDate>
    <dc:creator>_LB</dc:creator>
    <dc:date>2009-01-12T16:19:01Z</dc:date>
    <item>
      <title>compute statement in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68510#M7876</link>
      <description>Hello all;&lt;BR /&gt;
Hope everyone had a good holiday.&lt;BR /&gt;
Question when using a compute statement-&lt;BR /&gt;
So I have a define statement that dictates specific colors based on a specific compliance rate-&lt;BR /&gt;
such that:&lt;BR /&gt;
DEFINE FYTD1 /"FYTD" format=percent10. style={background=colors.};&lt;BR /&gt;
&lt;BR /&gt;
But then I have one row that is not a percentage but rather a number that I would like to calculate as an actual integer-&lt;BR /&gt;
&lt;BR /&gt;
So right now-420 becomes 42000%.&lt;BR /&gt;
I managed to solve the background color issue but how do I fix the other problem-&lt;BR /&gt;
So far I have tried:&lt;BR /&gt;
&lt;BR /&gt;
compute FYTD1;&lt;BR /&gt;
if _name_= 'Number Overall Observations' then do; &lt;BR /&gt;
&lt;BR /&gt;
call define (_col_, 'style','style={background=white}');&lt;BR /&gt;
call define (_col_, 'format','format=8.2');&lt;BR /&gt;
&lt;BR /&gt;
end;&lt;BR /&gt;
endcomp;  */&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions would be much appreciated-Thank you. &lt;BR /&gt;
LB</description>
      <pubDate>Fri, 09 Jan 2009 23:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68510#M7876</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2009-01-09T23:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: compute statement in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68511#M7877</link>
      <description>Hi:&lt;BR /&gt;
  The percent format does an automatic multiply by 100. Not what you want. But I think you just have the syntax of the CALL DEFINE for format wrong. Try this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
call define (_col_, 'format','8.2');&lt;BR /&gt;
[/pre]&lt;BR /&gt;
(without the format=)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 11 Jan 2009 16:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68511#M7877</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-01-11T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: compute statement in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68512#M7878</link>
      <description>Cynthia;&lt;BR /&gt;
That worked. Thank you. &lt;BR /&gt;
LB</description>
      <pubDate>Mon, 12 Jan 2009 16:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/compute-statement-in-proc-report/m-p/68512#M7878</guid>
      <dc:creator>_LB</dc:creator>
      <dc:date>2009-01-12T16:19:01Z</dc:date>
    </item>
  </channel>
</rss>

