<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362749#M85725</link>
    <description>&lt;P&gt;The&amp;nbsp; Tabulate keyword ALL will provide summaries for "All" levels of a categorical variable or the entire data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It isn't clear what you are trying to summarize since you have multiple nesting levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking for (partial)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool" All='Pool Summary&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool2=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool2" All=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'Pool 2 summary')*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (IntRateType=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Int Rate Type"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"T"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)* &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;You may want to show a result (for a subse of the data ) and indicate where you want additional summaries.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 15:05:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-05-30T15:05:47Z</dc:date>
    <item>
      <title>Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362748#M85724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me by letting me know how I add a "Grand Total" column to my tabulate by adding the totals of each "Class Variable"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this makes sense&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = output_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;ccyymm.&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Pool Pool2 IntRateType Credit_LTV_band Class Arrears_group;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; blended_rate Total_Balance Total_Provision weighted_avg_int_rate weighted_avg_blended_rate term_date promo_end_date accr_int_gross_rate;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool2=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool2"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (IntRateType=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Int Rate Type"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"T"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)* &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (Credit_LTV_band=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Credit LTV Band"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; ((Total_Balance=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Sum of Total Balance"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;comma19.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (Total_Provision=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Sum of Total Arrears"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;comma19.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (accr_int_gross_rate = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Weighted Avg Current Rate"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8.2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (blended_rate=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Weighted Avg Future Rate"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;8.2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (promo_end_date = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Weighted Average Term Date"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;ddmmyy10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (term_date=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Weighted Average Maturity Date"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;ddmmyy10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)),&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) * (Arrears_group=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;" Class Total"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ) /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;box&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Mortgage Fair Value"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362748#M85724</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-05-30T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362749#M85725</link>
      <description>&lt;P&gt;The&amp;nbsp; Tabulate keyword ALL will provide summaries for "All" levels of a categorical variable or the entire data set&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It isn't clear what you are trying to summarize since you have multiple nesting levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking for (partial)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool" All='Pool Summary&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (Pool2=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Pool2" All=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;'Pool 2 summary')*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; (IntRateType=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Int Rate Type"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"T"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)* &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;You may want to show a result (for a subse of the data ) and indicate where you want additional summaries.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362749#M85725</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-30T15:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362753#M85727</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My output currently is (excluding Grand Total)&lt;BR /&gt;&lt;BR /&gt;Adverse&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adverse Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTL Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Other&amp;nbsp;&amp;nbsp;&amp;nbsp; Other Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Grand Total&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 4&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; 4&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; 3 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&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; 1 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&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; 14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below gives me the class total broken down by Adverse, BTL, Other&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) * (Arrears_group=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;" Class Total"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I need to create the Grand total column that totals - Adverse Total BTL Total Other Total&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362753#M85727</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2017-05-30T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362777#M85737</link>
      <description>&lt;P&gt;are "&lt;FONT face="Courier New"&gt;Adverse Total BTL Total Other Total" Values of the variable Class (bad choice of variable name since many procedures have Class as a statement) ? Are they ALL of the values of Class or only a subset? &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;If you need a total for ALL of the levels of class then (Class='' All='Class total) should do it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;If you need a summary for a subset you may be able to use a multilabel format but to determine what that would look like then some example data is needed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Also, do actually intend to SUM date values??&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 16:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate/m-p/362777#M85737</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-30T16:10:52Z</dc:date>
    </item>
  </channel>
</rss>

