<?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 with Out= in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261906#M57653</link>
    <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; Rule_Order ad_dt &lt;STRONG&gt;/Missing&lt;/STRONG&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 19:17:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-04-06T19:17:57Z</dc:date>
    <item>
      <title>Proc Tabulate with Out=</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261885#M57649</link>
      <description>&lt;P&gt;Hi. I'm using Proc Tabulate with the Out= option. In my data I keep 3 variables:&lt;/P&gt;&lt;P&gt;1. rule_order&lt;/P&gt;&lt;P&gt;2. ad_dt&lt;/P&gt;&lt;P&gt;3. n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc tabulate data=FinalData missing out=testdata (keep=rule_order ad_dt n) ;
class Rule_Order ad_dt;
table rule_order*(ad_dt all)*n;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the AD_DT's that are missing have a value of . (missing) but my totals by Rule_Order also have a . (missing). In the data I would like to be able to recode the totals that have a . to be 'Total', but I don't see a way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a sample of what my output dataset Testdata looks like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12430i64ADFD96C5832E02/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261885#M57649</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-04-06T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate with Out=</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261896#M57651</link>
      <description>&lt;P&gt;By default, PROC TABULATE omits observations where any CLASS variable has a missing value.&amp;nbsp; You can have them included by adding the MISSING option.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261896#M57651</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-06T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate with Out=</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261906#M57653</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; Rule_Order ad_dt &lt;STRONG&gt;/Missing&lt;/STRONG&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/261906#M57653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-06T19:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate with Out=</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/262089#M57658</link>
      <description>&lt;P&gt;Look closely at the output data. You will find a variable _type_. This, similar to proc Means and Summary, indicates the combinations of variables used to create the values for a row of the data set. Determine which level(s) of _type_ represent your summary, usually not too difficult unless you have many class variables and "All" clauses.&lt;/P&gt;
&lt;P&gt;However you are likely to have serious issues about attempting to assign a value of "Total" to a NUMERIC variable (ie you can't).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on complexity you might get away with a custom format to assign a value of 'Total' to missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 14:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-with-Out/m-p/262089#M57658</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T14:42:34Z</dc:date>
    </item>
  </channel>
</rss>

