<?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: calculate proportion in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201117#M50202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I did not understand how you obtain the proportion for crsp_fundno=2761&lt;/P&gt;&lt;P&gt;proportion LCCE=729/(364+181+729+2100+1826)= 0.1401&lt;/P&gt;&lt;P&gt;sorry i have done a mistake these are the right proportion&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="480"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD width="80"&gt;begdt&lt;/TD&gt;&lt;TD width="80"&gt;enddt&lt;/TD&gt;&lt;TD width="80"&gt;lipper_class&lt;/TD&gt;&lt;TD width="80"&gt;duration&lt;/TD&gt;&lt;TD width="80"&gt;proportion&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;TD align="right"&gt;0,08752418&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20000831&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;62&lt;/TD&gt;&lt;TD align="right"&gt;0,02998066&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;TD align="right"&gt;0,78980769&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="24"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20020629&lt;/TD&gt;&lt;TD&gt;LCCE&lt;/TD&gt;&lt;TD align="right"&gt;729&lt;/TD&gt;&lt;TD align="right"&gt;0,14019231&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 20:49:10 GMT</pubDate>
    <dc:creator>sasphd</dc:creator>
    <dc:date>2015-04-21T20:49:10Z</dc:date>
    <item>
      <title>calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201107#M50192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 400px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD width="80"&gt;begdt&lt;/TD&gt;&lt;TD width="80"&gt;enddt&lt;/TD&gt;&lt;TD width="80"&gt;x&lt;/TD&gt;&lt;TD width="80"&gt;duration&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;19941230&lt;/TD&gt;&lt;TD align="right"&gt;19980629&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;1277&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;19980630&lt;/TD&gt;&lt;TD align="right"&gt;19991230&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;548&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20000831&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;62&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;19981231&lt;/TD&gt;&lt;TD align="right"&gt;19991230&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;364&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20020629&lt;/TD&gt;&lt;TD&gt;LCCE&lt;/TD&gt;&lt;TD align="right"&gt;729&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;20020630&lt;/TD&gt;&lt;TD align="right"&gt;20080330&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;2100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;20080331&lt;/TD&gt;&lt;TD align="right"&gt;20130331&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;1826&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to calculate the proportion of variable in colunm X using duration. &lt;/P&gt;&lt;P&gt;The table want &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="240"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD width="80"&gt;x&lt;/TD&gt;&lt;TD width="80"&gt;proportion&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD align="right"&gt;0,74485597&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;0,25514403&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;0,78980769&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD&gt;LCCE&lt;/TD&gt;&lt;TD align="right"&gt;0,8010989&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example 0.74485597=181/(1277+548+181+62)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201107#M50192</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T19:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201108#M50193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc freq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201108#M50193</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-21T19:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201109#M50194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more details please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201109#M50194</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T19:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201110#M50195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc freq data='dataset';table x;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201110#M50195</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-21T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201111#M50196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks how can I get the output from this??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201111#M50196</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T19:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201112#M50197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;run this code, you should get what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;input crsp_fundno begdt enddt x $ duration;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;139,19941230,19980629,,1277&lt;/P&gt;&lt;P&gt;139,19980630,19991230,,548&lt;/P&gt;&lt;P&gt;139,19991231,20000629,MLGE,181&lt;/P&gt;&lt;P&gt;139,20000630,20000831,LCGE,62&lt;/P&gt;&lt;P&gt;2761,19981231,19991230,,364&lt;/P&gt;&lt;P&gt;2761,19991231,20000629,LCGE,181&lt;/P&gt;&lt;P&gt;2761,20000630,20020629,LCCE,729&lt;/P&gt;&lt;P&gt;2761,20020630,20080330,LCGE,2100&lt;/P&gt;&lt;P&gt;2761,20080331,20130331,LCGE,1826&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;proc freq data=have;table x / out=want;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201112#M50197</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-21T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201113#M50198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc freq data=cc;by crsp_fundno;&lt;/P&gt;&lt;P&gt;table crsp_fundno lipper_class&amp;nbsp; / norow nocol nopercent&lt;/P&gt;&lt;P&gt;out= outfreq ;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this program does not give what I want !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;it gives me this&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;139&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;139&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;139&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1063&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1063&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1063&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2218&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2218&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2761&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2761&lt;/TD&gt;&lt;TD&gt;LCCE&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2761&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;but I want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;" width="240"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;x&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;proportion&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;MLGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,74485597&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,25514403&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,78980769&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCCE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,8010989&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201113#M50198</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T20:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201114#M50199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not want the freq but I want the proportion in funtion of the variable duration&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;begdt&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;enddt&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;x&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;duration&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19941230&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19980629&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;1277&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19980630&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19991230&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;548&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19991231&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20000629&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;MLGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;181&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20000630&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20000831&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;62&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19981231&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19991230&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;364&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;19991231&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20000629&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;181&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20000630&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20020629&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCCE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;729&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20020630&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20080330&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2100&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20080331&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20130331&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;1826&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I want to calculate the proportion of variable in colunm X using duration.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The table want&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;" width="240"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;x&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="80"&gt;proportion&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;MLGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,74485597&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;139&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,25514403&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCGE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,78980769&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2761&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;LCCE&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;0,8010989&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;For exampl&lt;STRONG&gt;e 0.74485597=181/(1277+548+181+62)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201114#M50199</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201115#M50200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does that work for those last two records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate you want some variation of the following. It works for your first example but not sure how you did the last two percentages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SASPic2.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/10120_SASPic2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201115#M50200</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-21T20:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201116#M50201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like your math is off, not sure if this is what you want but try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;input crsp_fundno begdt enddt x $ duration;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;139,19941230,19980629,,1277&lt;/P&gt;&lt;P&gt;139,19980630,19991230,,548&lt;/P&gt;&lt;P&gt;139,19991231,20000629,MLGE,181&lt;/P&gt;&lt;P&gt;139,20000630,20000831,LCGE,62&lt;/P&gt;&lt;P&gt;2761,19981231,19991230,,364&lt;/P&gt;&lt;P&gt;2761,19991231,20000629,LCGE,181&lt;/P&gt;&lt;P&gt;2761,20000630,20020629,LCCE,729&lt;/P&gt;&lt;P&gt;2761,20020630,20080330,LCGE,2100&lt;/P&gt;&lt;P&gt;2761,20080331,20130331,LCGE,1826&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;proc sql;&lt;/P&gt;&lt;P&gt;create table start as&lt;/P&gt;&lt;P&gt;select *,sum(duration) as SumDuration&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by crsp_fundno;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set start;&lt;/P&gt;&lt;P&gt;prop = duration / SumDuration;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201116#M50201</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-21T20:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201117#M50202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes I did not understand how you obtain the proportion for crsp_fundno=2761&lt;/P&gt;&lt;P&gt;proportion LCCE=729/(364+181+729+2100+1826)= 0.1401&lt;/P&gt;&lt;P&gt;sorry i have done a mistake these are the right proportion&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="480"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;crsp_fundno&lt;/TD&gt;&lt;TD width="80"&gt;begdt&lt;/TD&gt;&lt;TD width="80"&gt;enddt&lt;/TD&gt;&lt;TD width="80"&gt;lipper_class&lt;/TD&gt;&lt;TD width="80"&gt;duration&lt;/TD&gt;&lt;TD width="80"&gt;proportion&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;MLGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;TD align="right"&gt;0,08752418&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;139&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20000831&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;62&lt;/TD&gt;&lt;TD align="right"&gt;0,02998066&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;19991231&lt;/TD&gt;&lt;TD align="right"&gt;20000629&lt;/TD&gt;&lt;TD&gt;LCGE&lt;/TD&gt;&lt;TD align="right"&gt;181&lt;/TD&gt;&lt;TD align="right"&gt;0,78980769&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="24"&gt;2761&lt;/TD&gt;&lt;TD align="right"&gt;20000630&lt;/TD&gt;&lt;TD align="right"&gt;20020629&lt;/TD&gt;&lt;TD&gt;LCCE&lt;/TD&gt;&lt;TD align="right"&gt;729&lt;/TD&gt;&lt;TD align="right"&gt;0,14019231&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201117#M50202</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201118#M50203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok mark &lt;/P&gt;&lt;P&gt;your program work, but I want the sum of proportion of LCGE for the crsp_fund 2761&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201118#M50203</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T20:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201119#M50204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this gives you what you want,&amp;nbsp; I added x to the group by line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table start as&lt;/P&gt;&lt;P&gt;select *,sum(duration) as SumDuration&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by crsp_fundno,x;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set start;&lt;/P&gt;&lt;P&gt;prop = duration / SumDuration;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201119#M50204</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-04-21T21:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201120#M50205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't Mark's answer correct? Why did you mark your own correct when it doesn't calculate a proportion which was your original question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 22:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201120#M50205</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-21T22:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201121#M50206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the answer of Mark is good but not complete, but it was very useful. It dosen't give me what I want it exactly. I complete it by my answer.&lt;/P&gt;&lt;P&gt;But if you want that i mark it as correct without adding my part it dosen't give the right anwer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculate-proportion/m-p/201121#M50206</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-21T23:51:26Z</dc:date>
    </item>
  </channel>
</rss>

