<?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 calculating percent in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95731#M20140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day.&lt;/P&gt;&lt;P&gt;I'm new to proc report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate percent using proc report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT DESIRED is a line list of each observation (no grouping).&lt;/P&gt;&lt;P&gt;county sitename sitecity total status1 status1pct status2 status2pct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html file ' Percent';&lt;/P&gt;&lt;P&gt;proc report = percent nowd;&lt;/P&gt;&lt;P&gt;column county sitename sitecity total status1 status1pct&amp;nbsp; status2 status2pct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define pct / computed "Percent of total" f=percent8.2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute pct;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status1pct=status1/total;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status2pct=status2/total;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rbreak after/ summarize;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I getting a warning and why are my percentages coming up empty?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt; WARNING:&amp;nbsp; pct is not in the report definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 00:42:16 GMT</pubDate>
    <dc:creator>jcis7</dc:creator>
    <dc:date>2013-04-03T00:42:16Z</dc:date>
    <item>
      <title>proc report calculating percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95731#M20140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day.&lt;/P&gt;&lt;P&gt;I'm new to proc report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate percent using proc report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT DESIRED is a line list of each observation (no grouping).&lt;/P&gt;&lt;P&gt;county sitename sitecity total status1 status1pct status2 status2pct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods html file ' Percent';&lt;/P&gt;&lt;P&gt;proc report = percent nowd;&lt;/P&gt;&lt;P&gt;column county sitename sitecity total status1 status1pct&amp;nbsp; status2 status2pct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define pct / computed "Percent of total" f=percent8.2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute pct;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status1pct=status1/total;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status2pct=status2/total;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rbreak after/ summarize;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I getting a warning and why are my percentages coming up empty?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt; WARNING:&amp;nbsp; pct is not in the report definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 00:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95731#M20140</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2013-04-03T00:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc report calculating percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95732#M20141</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; I would recommend starting slow and seeing whether the "regular" PCTN and/or PCTSUM statistics will give you want you want without a COMPUTE block. In order to have a report item calculated in a COMPUTE block, you need to include it in the "report definition" -- otherwise known as the list of report items that are contained in the COLUMN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For example, SASHELP.CLASS should be available to you for practice purposes. The code below uses SASHELP.CLASS in 2 different scenarios -- Report #1 lists every observation (all 19 students) and calculates each person's height and weight as a percent of the overall height and weight for the group. It is a silly calculation, I know, but it serves to illustrate the point about PCTSUM and how it can be "requested) for your numeric variables used on the report without needing a COMPUTE block. Then, Report #2 shows you how with a different usage and by taking name and sex from the COLUMN statement, you get a slightly different report that shows percents for the total height and weight for each age group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next, you will have to do some reading about PROC REPORT. Your COMPUTE block, where you have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;compute pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status1pct=status1/total;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status2pct=status2/total;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is likely to fail, even if you put PCT into the COLUMN statement. PROC REPORT has certain requirements for how to use report items in a compute block and one of the requirements is that you use a special reference of the form:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;variablename&lt;/SPAN&gt;.&lt;SPAN style="color: #339966;"&gt;statisticname&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #339966;"&gt;&lt;SPAN style="color: #000000;"&gt; in a calculation&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since you did not indicate what was actually in your data or how your calculated PCT item would be different from STATUS1PCT and STATUS2PCT, I made some "fake" data for report #3. My goal was to use numbers that were fairly easy to figure out how the division was working (so the TOTAL added up to 1000, across all obs) and each county/site observation had a total that equalled STATUS1 + STATUS2. In my program, I calculate STATUS1PCT and STATUS2PCT, and the COMPUTE block for each of those report items does show the compound name that PROC REPORT expects to see for calculations. I assume that your data are different, but what I wanted to show was how calculations work. And, since I'm not a mind-reader, your program didn't really convey enough information to figure out whether you had "pre-summarized" your data or not; especially since you did not show usages or DEFINE statements for COUNTY, SITENAME and SITECITY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you posted a sample of your data and a working program, it will be easier for folks to provide more concrete help.&lt;/P&gt;&lt;P&gt;(these 2 statements are in error:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file ' Percent';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report = percent nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they should be:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file&lt;SPAN style="color: #ff00ff;"&gt;=&lt;/SPAN&gt;'Percent&lt;SPAN style="color: #ff00ff;"&gt;.html&lt;/SPAN&gt;';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report &lt;SPAN style="color: #ff00ff;"&gt;data=&lt;/SPAN&gt;percent nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You indicated that you were new to PROC REPORT. In addition to running and reviewing the program below, I'd recommend some reading. The documentation on PROC REPORT has a good section on How Proc Report Builds a Report (&lt;A href="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1gb1fq6jc5syxn162qoa8k6kc20.htm" title="http://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n1gb1fq6jc5syxn162qoa8k6kc20.htm"&gt;Base SAS(R) 9.3 Procedures Guide, Second Edition&lt;/A&gt;). In addition, these papers are good introductions into how PROC REPORT works:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings12/242-2012.pdf" title="http://support.sas.com/resources/papers/proceedings12/242-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/242-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www2.sas.com/proceedings/forum2008/170-2008.pdf" title="http://www2.sas.com/proceedings/forum2008/170-2008.pdf"&gt;http://www2.sas.com/proceedings/forum2008/170-2008.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/267-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/267-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/267-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/079-2008.pdf" title="http://www2.sas.com/proceedings/forum2008/079-2008.pdf"&gt;http://www2.sas.com/proceedings/forum2008/079-2008.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF20-SAS.pdf" title="http://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF20-SAS.pdf"&gt;http://www.lexjansen.com/pharmasug/2012/TF/PharmaSUG-2012-TF20-SAS.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I hope the example and the references help to get you started with PROC REPORT.&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;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\calcpercent.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '1) With Display Usage Showing Every Obs';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column age sex name height,(sum pctsum) weight,(sum pctsum);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define name / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / analysis;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / analysis;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sum / 'Individual Value';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define pctsum / 'Percent' f=percent9.2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; rbreak after / summarize;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '2) With Group Usage';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column age n height,(sum pctsum) weight,(sum pctsum);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / group;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / analysis;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / analysis;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define n&amp;nbsp; / 'Count';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sum / 'Group Total Value';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define pctsum / 'Percent' f=percent9.2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; rbreak after / summarize;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data fakedata;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; infile datalines dlm=',';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; input county sitename total status1&amp;nbsp; status2&amp;nbsp; ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;return;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;datalines;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;1,10,100,60,40&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;1,11,100,30,70&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;2,20,200,150,50&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;2,21,200,100,100&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;3,30,200,150,50&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;3,31,200,100,100&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\calc_other_Percent.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=fakedata nowd;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '3) Alternate calculation when dividing by TOTAL';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title2 'To get status1pct and status2pct';&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column county sitename total status1 status1pct&amp;nbsp; status2 status2pct;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define county / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sitename / display;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define total / sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define status1 / sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define status1pct / computed f=percent9.2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define status2 / sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define status2pct / computed f=percent9.2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute status1pct;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status1pct=status1.sum/total.sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute status2pct;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status2pct=status2.sum/total.sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; rbreak after/ summarize;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 01:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95732#M20141</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-03T01:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc report calculating percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95733#M20142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so very much &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;&amp;nbsp; Appreciate your explanations, suggestions, and resources.&amp;nbsp; Very very helpful!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95733#M20142</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2013-04-03T18:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc report calculating percent</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95734#M20143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;define &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;status1pct&lt;/SPAN&gt;/ computed "Percent of total" f=percent8.2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;compute &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;status1pct&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status1pct=status1.sum/total.sum;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;endcomp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 01:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-calculating-percent/m-p/95734#M20143</guid>
      <dc:creator>SandyH</dc:creator>
      <dc:date>2013-04-09T01:14:11Z</dc:date>
    </item>
  </channel>
</rss>

