<?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: PUT PERCENT FORMULA IN PERTICULAR CELL in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20258#M3760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before you even get to the report part, I think you may want to include your code variable in your merge.&amp;nbsp; i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = TEST;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY RELATIONSHIP code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = TEST2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY RELATIONSHIP code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data TEST3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Merge TEST(in=a) TEST2(in=b);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if a or b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; By Relationship code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2011 18:45:28 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-12-26T18:45:28Z</dc:date>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20246#M3748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need solution in the following table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 457px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl24" height="17" width="137"&gt;CountA&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;Count&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl26" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;COUNTB&lt;/TD&gt;&lt;TD class="xl26" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;count &lt;/TD&gt;&lt;TD class="xl26" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;%_CUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;10&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;100&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;200&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;5&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;200&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;30&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;400&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;50&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;12.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;400&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;65&lt;/TD&gt;&lt;TD class="xl25" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;60&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;700&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;125&lt;/TD&gt;&lt;TD class="xl27" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;72.5 total &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESIRED&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: 457px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" width="137"&gt;CountA&lt;/TD&gt;&lt;TD class="xl25" width="64"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl24" width="64"&gt;COUNTB&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;count &lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;%_CUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17"&gt;100&lt;/TD&gt;&lt;TD class="xl25"&gt;10&lt;/TD&gt;&lt;TD class="xl25"&gt;10&lt;/TD&gt;&lt;TD class="xl24"&gt;100&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17"&gt;200&lt;/TD&gt;&lt;TD class="xl25"&gt;10&lt;/TD&gt;&lt;TD class="xl25"&gt;5&lt;/TD&gt;&lt;TD class="xl24"&gt;200&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;30&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17"&gt;100&lt;/TD&gt;&lt;TD class="xl25"&gt;45&lt;/TD&gt;&lt;TD class="xl25"&gt;45&lt;/TD&gt;&lt;TD class="xl24"&gt;400&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;50&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;12.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="17"&gt;400&lt;/TD&gt;&lt;TD class="xl25"&gt;65&lt;/TD&gt;&lt;TD class="xl25"&gt;16.25&lt;/TD&gt;&lt;TD class="xl24"&gt;700&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;125&lt;/TD&gt;&lt;TD class="xl24" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;17.85 total&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODSTAGSE.excel.xp OPTION(&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA x;&lt;/P&gt;&lt;P&gt;MERGE A B;&lt;/P&gt;&lt;P&gt;By VAR;&lt;/P&gt;&lt;P&gt;If a or b then do;&lt;/P&gt;&lt;P&gt;percent=Count/COUNTB;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;PROC FORMAT;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;proc format;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;value $relation '000'='Employee'&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;'001'='Spouse / Domestic Partner';&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=x nowd split='*'&lt;/P&gt;&lt;P&gt;Colume (COUNTA Count %) (RELATION(COUNTB Count %));&lt;/P&gt;&lt;P&gt;DEFINE COUNTA / analysis sum;&lt;/P&gt;&lt;P&gt;DEFINE Count / analysis sum;&lt;/P&gt;&lt;P&gt;DEFINE COUNTB / Analysis;&lt;/P&gt;&lt;P&gt;Define count / analysis;&lt;/P&gt;&lt;P&gt;DEFINE % / analysis ;&lt;/P&gt;&lt;P&gt;DEFINE %_CUM / Analysis;&lt;/P&gt;&lt;P&gt;rbreak after / summarize skip;&lt;/P&gt;&lt;P&gt;Compute after;&lt;/P&gt;&lt;P&gt;call Deifne (_ROW_, STYLE );&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I also try following code;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data x;&lt;/P&gt;&lt;P&gt;Merge A B;&lt;/P&gt;&lt;P&gt;By Var;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA nowd split="*"&lt;/P&gt;&lt;P&gt;Colume (COUNTA Count %) (RELATION(COUNTB Count %));&lt;/P&gt;&lt;P&gt;DEFINE COUNTA / analysis sum;&lt;/P&gt;&lt;P&gt;DEFINE Count / analysis sum;&lt;/P&gt;&lt;P&gt;DEFINE COUNTB / Analysis;&lt;/P&gt;&lt;P&gt;Define count / analysis;&lt;/P&gt;&lt;P&gt;DEFINE % / computed format = percent4.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE %_CUM / computed format= percet4.;&lt;/P&gt;&lt;P&gt;compute %;&lt;/P&gt;&lt;P&gt;%=count.sum / COUNTA ;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute %_CUM;&lt;/P&gt;&lt;P&gt;%_cum=count.sum / COUNTB;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;rebreak after/ summarize skip suppress;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compute after;&lt;/P&gt;&lt;P&gt;%=count.sum / COUNTA ;&lt;/P&gt;&lt;P&gt;%_cum=count.sum / COUNTB;&lt;/P&gt;&lt;P&gt;Call define= (_ROW_,STYLE);&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 457px;"&gt;&lt;TBODY&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit;" width="137"&gt;CountA&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;" width="64"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;" width="64"&gt;COUNTB&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;" width="64"&gt;count &lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;" width="64"&gt;%_CUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;10&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;100&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;45&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit;"&gt;200&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;5&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;200&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;30&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;45&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;45&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;400&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;50&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit;"&gt;400&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;65&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit;"&gt;16.25&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;700&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;125&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit;"&gt;. total&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This create missing value in %_CUM woth out any error or notes in LOG phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 02:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20246#M3748</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-25T02:34:17Z</dc:date>
    </item>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20247#M3749</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 am very curious that your code works -- the reference to % and %_CUM should be generating error messages, because they violate the naming conventions for SAS variables (must start with a letter or underscore and continue with any combination of letters, numbers and underscores). In addition, the reference to %_CUM could be mistaken for a call to a macro program, which would also generate warnings in the log. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For example, I ran a simple test using the % and %_CUM in my code and got a LOT of error messages, as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12758&amp;nbsp; proc report data=sashelp.class nowd;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12759&amp;nbsp;&amp;nbsp;&amp;nbsp; column age sex n height weight % %_cum;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;WARNING: Apparent invocation of macro _CUM not resolved.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, ',', -, :, =, _ALL_,&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12760&amp;nbsp;&amp;nbsp;&amp;nbsp; define age / group;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12761&amp;nbsp;&amp;nbsp;&amp;nbsp; define sex / group;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12762&amp;nbsp;&amp;nbsp;&amp;nbsp; define n / 'Count';&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12763&amp;nbsp;&amp;nbsp;&amp;nbsp; define height / sum;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12764&amp;nbsp;&amp;nbsp;&amp;nbsp; define weight / sum;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12765&amp;nbsp;&amp;nbsp;&amp;nbsp; define % / computed 'computed %';&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12766&amp;nbsp;&amp;nbsp;&amp;nbsp; define %_cum / computed 'computed cum %';&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;WARNING: Apparent invocation of macro _CUM not resolved.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, CSS, CV, MAX, MEAN, MEDIAN,&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN, MODE, N, NMISS, P1, P10, P25, P5, P50, P75, P90, P95, P99, PCTN, PCTSUM,&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROBT, PRT, Q1, Q3, QRANGE, RANGE, STD, STDERR, SUM, SUMWGT, T, USS, VAR, _ALL_,&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12767&amp;nbsp;&amp;nbsp;&amp;nbsp; compute %;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, AFTER, BEFORE.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12768&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %=height.sum/weight.sum;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12769&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;12770&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 8.0px Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 17:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20247#M3749</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-12-25T17:21:34Z</dc:date>
    </item>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20248#M3750</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;Ok I corrected code and put following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;PROC REPORT DATA nowd split="*"&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;Colume (COUNTA Count PCT) (RELATION(COUNTB Count PCT_CUM));&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;DEFINE COUNTA / analysis sum;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;DEFINE Count / analysis sum;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;DEFINE COUNTB / Analysis;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;Define count / analysis;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;DEFINE PCT / "%" computed format = percent4.;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;DEFINEPCT_CUM "%" &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #eef4f9;"&gt;computed format = percent4.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;compute PCT;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;PCT=count.sum / COUNTA ;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;compute %_CUM;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;PCT_cum=count.sum / COUNTB;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;endcomp;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;rebreak after/ summarize skip suppress;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;Compute after;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;PCT=count.sum / COUNTA ;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;PCT_cum=count.sum / COUNTB;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;Call define= (_ROW_,STYLE);&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;endcomp;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;But still It create same table &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="background-color: #eef4f9; border-style: solid; border-color: #cccccc; margin-top: 1px; margin-bottom: 1px; float: none; width: 457px; border-width: 1px; padding: 3px;"&gt;&lt;TBODY&gt;&lt;TR style="border-style: initial; border-color: inherit; border-collapse: collapse; border: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="137"&gt;CountA&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="64"&gt;Count&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="64"&gt;%&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="64"&gt;COUNTB&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="64"&gt;count&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;" width="64"&gt;%_CUM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: inherit; border-collapse: collapse; border: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;10&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;100&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;45&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: inherit; border-collapse: collapse; border: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;200&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;5&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;200&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;30&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: inherit; border-collapse: collapse; border: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;45&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;45&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;400&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;50&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: inherit; border-collapse: collapse; border: inherit; border-width: inherit;"&gt;&lt;TD class="xl25" height="17" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;400&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;65&lt;/TD&gt;&lt;TD class="xl25" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;16.25&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;700&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;125&lt;/TD&gt;&lt;TD class="xl24" style="border-color: inherit; border: inherit; padding: 3px; margin: 1px;"&gt;. total&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 18:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20248#M3750</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-25T18:16:47Z</dc:date>
    </item>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20249#M3751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that the table shown was simply left over from the previous run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do your two tables really look like and what are you trying to accomplish with the datastep?&amp;nbsp; If both A and B have a variable with the same name (e.g., count), then you will have to rename it when merging the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your step you say if a or b: what are those supposed to stand for?&amp;nbsp; If it is whether data came from file a or file b you would have had to have used the in= option in order to set those variables.&amp;nbsp; But, if you did, the if then statement would still always be applied.&amp;nbsp; I'm not at all sure what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DATA x;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;MERGE A B;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;By VAR;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;If a or b then do;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;percent=Count/COUNTB;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;end;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your proc report statement, similarly, you define count twice!&amp;nbsp; And what do &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #eef4f9;"&gt;Colume, and &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #eef4f9;"&gt;DEFINEPCT_CUM represent.&amp;nbsp; Are they typos?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #eef4f9; font-family: Arial, Helvetica, sans-serif;"&gt;I think you have to provide the forum with more, and more carefully presented, info.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #eef4f9; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 20:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20249#M3751</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-25T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20250#M3752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the correct code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DATA x;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;MERGE A(in=a) B (in=b);&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;By VAR;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;If a or b then do;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;PCT=Count/COUNTA;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;PCT_CUM=Count/COUNTB;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;end;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;PROC FORMAT;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;proc format;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;value $relation '0'='Employee'&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;'1'='Spouse';&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;PROC REPORT DATA=x nowd split='*'&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;Column (COUNTA Count PCT) (RELATION,(COUNTB Count PC_CUM));&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE COUNTA / analysis sum;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE Count / analysis sum;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE COUNTB / Analysis;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE Realtion/Across f=$relation.;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE PCT / analysis ;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;DEFINE PCT_CUM / Analysis;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;rbreak after / summarize skip;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;Compute after;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;call Deifne (_ROW_, STYLE );&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;endcomp;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 20:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20250#M3752</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-25T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20251#M3753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I and others will still have the same problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do your 2 files really look like and how do you want to treat the two different instances of the variable count?&amp;nbsp; In short, after running the datastep, what do you expect the resulting file to look like before it is input into proc report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of computer are you using?&amp;nbsp; On windows,Count and count will be treated as being the same variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 20:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20251#M3753</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-25T20:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20252#M3754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the following correctly describe what your data look like and the resulting file that you are trying to use proc report to print?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var CountA Count;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&lt;/P&gt;&lt;P&gt;2 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;5&lt;/P&gt;&lt;P&gt;3 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;45&lt;/P&gt;&lt;P&gt;4 400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;60&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input var COUNTB count;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;45&lt;/P&gt;&lt;P&gt;2 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;15&lt;/P&gt;&lt;P&gt;3 400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12.5&lt;/P&gt;&lt;P&gt;4 700&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;125&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;72.5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MERGE A (in=a) B (in=b rename=(count=count2));&lt;/P&gt;&lt;P&gt;&amp;nbsp; format pct pct_cum percent8.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; By VAR;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If a then PCT=Count/COUNTA;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if b then PCT_CUM=Count2/COUNTB;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 21:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20252#M3754</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-25T21:19:54Z</dc:date>
    </item>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20253#M3755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset is look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ABC;&lt;/P&gt;&lt;P&gt;input DESCRIPTION TOTAL_COUNT REALTIONSHIP;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;ABC 100 Male&lt;/P&gt;&lt;P&gt;CDE 200 FEMALE&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data CDE;&lt;/P&gt;&lt;P&gt;input DESCRIPTION REMAIN_COUNT REALTIONSHIP;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;ABC 40 Male&lt;/P&gt;&lt;P&gt;CDE 50 FEMALE&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to creat following table :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1363_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 21:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20253#M3755</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-25T21:39:38Z</dc:date>
    </item>
    <item>
      <title>PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20254#M3756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd really like to help but can't figure out what you are trying to do.&amp;nbsp; Now, instead of files a and b, you have files abc and cde and, again, no variable 'var' which you use as your by variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I have no idea where the various numbers come from for your desired table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 23:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20254#M3756</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-25T23:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20255#M3757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok. Here is two datasets. An I want to create table .&lt;/P&gt;&lt;P&gt;data TEST;&lt;/P&gt;&lt;P&gt;input Relationship CODE $ DESCRIPTION $ CMELIGCOUNT;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 100 FORMER 10&lt;/P&gt;&lt;P&gt;2 300 LABOR-1 3&lt;/P&gt;&lt;P&gt;1 300 LABOR-1 4&lt;/P&gt;&lt;P&gt;1 400 LABOR-2 5&lt;/P&gt;&lt;P&gt;2 400 LABOR-2 2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data TEST2;&lt;/P&gt;&lt;P&gt;input Relationship CODE $ DESCRIPTION $ CMHAPART;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 100 FORMER&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;2 300 LABOR-1 1&lt;/P&gt;&lt;P&gt;1 300 LABOR-1 3&lt;/P&gt;&lt;P&gt;1 400 LABOR-2 2&lt;/P&gt;&lt;P&gt;2 400 LABOR-2 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&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;PROC SORT DATA = TEST;&lt;/P&gt;&lt;P&gt;BY RELATIONSHIP;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = TEST2;&lt;/P&gt;&lt;P&gt;BY RELATIONSHIP;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data TEST3;&lt;/P&gt;&lt;P&gt;Merge TEST(in=a) TEST2(in=b);&lt;/P&gt;&lt;P&gt;if a or b;&lt;/P&gt;&lt;P&gt;By Relationship;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA= TEST3;&lt;/P&gt;&lt;P&gt;Column CODE DESCRIPTION ("CUMULATIVE"((CMELIGCOUNT=total CMHAPART PCT)(RELATIONSHIP,(CMELIGCOUNT=CWELIGCOUNT CMHAPART=CWHAPART PCT_CUM))));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE CODE/Display left;&lt;/P&gt;&lt;P&gt;DEFINE DESCRIPTION/DISPLAY left;&lt;/P&gt;&lt;P&gt;DEFINE total/&amp;nbsp; analysis sum right f=comma6.;&lt;/P&gt;&lt;P&gt;DEFINE CMHAPART/"COUNT" analysis sum right f=comma6.;&lt;/P&gt;&lt;P&gt;DEFINE PCT/ "%" COMPUTED right format=4.;&lt;/P&gt;&lt;P&gt;DEFINE RELATIONSHIP/across;&lt;/P&gt;&lt;P&gt;DEFINE CWELIGCOUNT/ analysis sum right&amp;nbsp; f=comma4.;&lt;/P&gt;&lt;P&gt;DEFINE PCT_CUM/ "%" COMPUTED right format=percent4.;&lt;/P&gt;&lt;P&gt;DEFINE CWHAPART/ analysis sum right&amp;nbsp; f=comma4.;&lt;/P&gt;&lt;P&gt;rbreak after / summarize skip suppress;&lt;/P&gt;&lt;P&gt;compute PCT;&lt;/P&gt;&lt;P&gt;PCT=(CMHAPART.sum/TOTAL)*100;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;compute PCT_CUM;&lt;/P&gt;&lt;P&gt;PCT_CUM=(CMHAPART.sum/TOTAL)*100;;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;Compute after;&lt;/P&gt;&lt;P&gt;CODE="GRAND TOTAL";&lt;/P&gt;&lt;P&gt;DESCRIPTION="";&lt;/P&gt;&lt;P&gt;PCT=(CMHAPART.sum/total)*100;&lt;/P&gt;&lt;P&gt;PCT_CUM=(CMHAPART.sum/TOTAL)*100;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am running this code Percent column ( PCT_CUM) create missing value. In log phase it doesn't create any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 04:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20255#M3757</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-26T04:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20256#M3758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table will look following way:&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: 1068px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl30" width="91"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl31" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="63"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" width="111"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="85"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="94"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="113"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="96"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;CUM&lt;/TD&gt;&lt;TD class="xl25" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="64"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl30" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl31" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl32"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl34" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl32" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl33" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;EMPLOYEE&lt;/TD&gt;&lt;TD class="xl33" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl34" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;SP&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="17"&gt;CODE&lt;/TD&gt;&lt;TD class="xl26" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;DESCRIPTION&lt;/TD&gt;&lt;TD class="xl26" style="border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMELIGCOUNT&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&amp;nbsp; CMHAPART&lt;/TD&gt;&lt;TD class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCT(%)&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMELIG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;CMHAPART&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;PCT_CUM(%)&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;CMELIGCOUNT&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;CMHAPART&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;PCT_CUM(%)&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;100&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;FORMER&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;50&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;200&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;LABOR-1&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;75&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;75&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;300&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;LABOR-2&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;40&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;400&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;LABOR&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;33&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;33&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl29" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;500&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;LABOR3&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;0&lt;/TD&gt;&lt;TD class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl35" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;0&lt;/TD&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl36" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;GRAND TOTAL&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;24&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl37" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;44&lt;/TD&gt;&lt;TD align="right" class="xl38" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl39" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl37" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;52.6&lt;/TD&gt;&lt;TD align="right" class="xl38" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl38" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;1&lt;/TD&gt;&lt;TD class="xl39" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 04:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20256#M3758</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-26T04:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20257#M3759</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 cannot test your code right now but please check if what i say works....&lt;/P&gt;&lt;P&gt; In your proc report statement just add an out= and run the code once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9;"&gt;PROC REPORT DATA= TEST3 out=check_file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View the data set &lt;STRONG&gt;check_file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since you have used an across variable i think you would be able to see certan columns like _C6_ , _C7_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your proc report your compute block should look something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute pct_cum;&lt;/P&gt;&lt;P&gt;_c8_ = _c7_ / _c6_;&lt;/P&gt;&lt;P&gt;_c11_ = _c10_ / _c9_;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also i think you Donot need to repeat your calculation in the COMPUTE AFTER block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 18:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20257#M3759</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2011-12-26T18:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20258#M3760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before you even get to the report part, I think you may want to include your code variable in your merge.&amp;nbsp; i.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = TEST;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY RELATIONSHIP code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SORT DATA = TEST2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY RELATIONSHIP code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data TEST3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Merge TEST(in=a) TEST2(in=b);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if a or b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; By Relationship code;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 18:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20258#M3760</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-26T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: PUT PERCENT FORMULA IN PERTICULAR CELL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20259#M3761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I tried your option and it works. but if&amp;nbsp; I didnt put in repeate COMPUTE BLOCK then it doesnt count in GRAND TOTAL ROW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2011 18:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PUT-PERCENT-FORMULA-IN-PERTICULAR-CELL/m-p/20259#M3761</guid>
      <dc:creator>patel1987</dc:creator>
      <dc:date>2011-12-26T18:45:33Z</dc:date>
    </item>
  </channel>
</rss>

