<?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: proc tabulate question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176792#M33848</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 already gave a partial answer in the other forum where you posted this question. Short version: BAL needs to be USED in VAR statement and TABLE statement to show up in output.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 13:34:18 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2014-02-18T13:34:18Z</dc:date>
    <item>
      <title>proc tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176791#M33847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table action as&lt;/P&gt;&lt;P&gt;select distinct Region,count(ln_no) as ln, sum(balance) as bal&lt;/P&gt;&lt;P&gt;from main;&lt;/P&gt;&lt;P&gt;where region = 'West';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample output is&lt;/P&gt;&lt;P&gt;Region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ln&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; bal&lt;/P&gt;&lt;P&gt;West&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2500&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; 2300000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a proc tabulate with the intention of capturing both the count of the ln_no and the sum of the balance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc tabulate data=action order= data format=10. S=[cellwidth=150];&lt;/P&gt;&lt;P&gt;&amp;nbsp; Class Region;&lt;BR /&gt;&amp;nbsp; Var ln;&lt;BR /&gt;&amp;nbsp; Table Region=' ' all={label='Grand Total' S=[background = lightblue cellwidth=160]} *[STYLE=[Font_Weight=BOLD]], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region='Status '*ln=' '*sum=' ' &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all={label='Grand Total' S=[background = lightblue]} *[STYLE=[Font_Weight=BOLD]] *ln=' '*sum=' ' / box='Investor Group';&lt;BR /&gt;&amp;nbsp; TITLE 'Loan Status';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;My results give me a summary of the count of the loan however I am not getting the total or sum of the balance.&amp;nbsp; Essentially I am getting the 2500 but not the 2300000.&amp;nbsp; In addition how would I format the bal so it reads as a dollar format such as $2,300,000.00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 14:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176791#M33847</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-02-17T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176792#M33848</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 already gave a partial answer in the other forum where you posted this question. Short version: BAL needs to be USED in VAR statement and TABLE statement to show up in output.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176792#M33848</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-02-18T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176793#M33849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that was a typo to repeat this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-question/m-p/176793#M33849</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-02-18T13:59:54Z</dc:date>
    </item>
  </channel>
</rss>

