<?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 makes &amp;quot;all&amp;quot; row missing (with a '.') -- way to add label saying &amp;quot;TO in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328475#M271705</link>
    <description>&lt;P&gt;You can assign labels to variables or statatistics in Tabulate with ='Label text' after the item.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table (all='Total' sex)*date*weight ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 15:47:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-30T15:47:46Z</dc:date>
    <item>
      <title>PROC TABULATE makes "all" row missing (with a '.') -- way to add label saying "TOTAL"?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328471#M271704</link>
      <description>&lt;P&gt;if you do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate [...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table (&lt;STRONG&gt;all&lt;/STRONG&gt;&amp;nbsp;sex)*date*weight*(sum)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will make the "all" in sex have just a period '.'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make it say "Total"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328471#M271704</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-01-30T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE makes "all" row missing (with a '.') -- way to add label saying "TO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328475#M271705</link>
      <description>&lt;P&gt;You can assign labels to variables or statatistics in Tabulate with ='Label text' after the item.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table (all='Total' sex)*date*weight ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328475#M271705</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-30T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE makes "all" row missing (with a '.') -- way to add label saying "TO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328479#M271706</link>
      <description>&lt;P&gt;Sorry, I should clarify:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;In the actual "results" tab it will show the label "Canada" and "Total industry".&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;However, in the &lt;U&gt;output.test file&lt;/U&gt; it only shows these as blanks/missing with a period '.'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;How can I get them to actually have the labels of "All" in the dataset?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="navy"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; &lt;FONT color="blue"&gt;data&lt;/FONT&gt;&lt;FONT color="black"&gt;=output.combined &lt;/FONT&gt;&lt;FONT color="blue"&gt;OUT&lt;/FONT&gt;&lt;FONT color="black"&gt;=OUTPUT.test;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;%let&lt;FONT color="black"&gt; weight=finalwt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;%let&lt;FONT color="black"&gt; date=sdate;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;class&lt;FONT color="black"&gt; &amp;amp;&lt;/FONT&gt;date&lt;FONT color="black"&gt; industry naics4 prov;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;var&lt;FONT color="black"&gt; &amp;amp;weight;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="blue"&gt;table&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;(all=&lt;FONT color="purple"&gt;'Canada'&lt;/FONT&gt; prov)*(industry=&lt;FONT color="purple"&gt;''&lt;/FONT&gt;)*(all='Total industry' naics4=&lt;FONT color="purple"&gt;''&lt;/FONT&gt;), &amp;amp;&lt;FONT color="blue"&gt;date&lt;/FONT&gt;=&lt;FONT color="purple"&gt;''&lt;/FONT&gt;*&amp;amp;weight=&lt;FONT color="purple"&gt;''&lt;/FONT&gt;*(sum=&lt;FONT color="purple"&gt;''&lt;/FONT&gt;*f=&lt;FONT color="teal"&gt;comma10.0&lt;/FONT&gt;) ;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328479#M271706</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-01-30T15:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE makes "all" row missing (with a '.') -- way to add label saying "TO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328510#M271707</link>
      <description>&lt;P&gt;You have a couple options but if your variable is numeric th only one you have is a custom format. You could use a data step and make sure that the length of character variables are set long enough to add text as needed with the values of the _type_ variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set output.test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* this is a guess based on your code you need to inspect the actual table to get the&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _type_ in ('000','010') then prov='Canada';&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;might work but if you have a numeric then you cannot place character values into a numeric column.&lt;/P&gt;
&lt;P&gt;A custom format such as&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
   value $Prov
   ' '='Canada'
   ;
run;&lt;/PRE&gt;
&lt;P&gt;would display Canada for the missing values of prov and the original values if prov is character. If you have an existing numeric format for categories then adding a category for .='Canada' or .='Total Industry' for your naics4 variable would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this approach will not work if you use MISSING on your class variables as you have two types of missing possible and you would have to move into the realm of special missing and formats to get desired output.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TABULATE-makes-quot-all-quot-row-missing-with-a-way-to-add/m-p/328510#M271707</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-30T16:58:33Z</dc:date>
    </item>
  </channel>
</rss>

