<?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: Removing row headers in tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179932#M45903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the nob-breaking space byte(160)&amp;nbsp; 'a0'x&amp;nbsp; It may be output destination dependent but it seems that something with space in the name should print as "blank".&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1 v2 v3;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;1 1 1&lt;BR /&gt;2 2 4&lt;BR /&gt;3 4 10&lt;BR /&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;tabulate&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1 v2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v3;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'a0'x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'a0'x&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; min*v3*v1,v2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;IMG alt="10-10-2014 6-16-48 AM.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7573_10-10-2014 6-16-48 AM.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 11:18:01 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2014-10-10T11:18:01Z</dc:date>
    <item>
      <title>Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179928#M45899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Related to - but not the same as my other question on headers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input v1 v2 v3;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1 1&lt;/P&gt;&lt;P&gt;2 2 4&lt;/P&gt;&lt;P&gt;3 4 10&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc tabulate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class v1 v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var v3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; label v1='';&amp;nbsp; /* two single quotes */&lt;/P&gt;&lt;P&gt;&amp;nbsp; label v3='';&lt;/P&gt;&lt;P&gt;&amp;nbsp; table min*v3*v1,v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I get is in the attached screenshot. In short, I get single quotes appearing for the labels for v1 and v2. How do I remove them altogether? I'm using 9.4. (If use ' ' (a space between the quotes) the variable names appear instead. I get the same result if I use double quotes). &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10582iB55856652D9A42F5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 06:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179928#M45899</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2014-10-10T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179929#M45900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a blank between the quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 07:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179929#M45900</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-10-10T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179930#M45901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that. If I do that, I get the variable name appearing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179930#M45901</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2014-10-10T09:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179931#M45902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, funnily enough this seems to work:&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input v1 v2 v3;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1 1&lt;/P&gt;&lt;P&gt;2 2 4&lt;/P&gt;&lt;P&gt;3 4 10&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods escapechar "^";&lt;/P&gt;&lt;P&gt;proc tabulate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class v1 v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var v3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; label v1="^{subscript }";&amp;nbsp; /* two single quotes */&lt;/P&gt;&lt;P&gt;&amp;nbsp; label v3="^{superscript }";&lt;/P&gt;&lt;P&gt;&amp;nbsp; table min*v3*v1,v2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not ideal I know (I personally don't use tabulate).&amp;nbsp; You could also just output to a dataset:&lt;/P&gt;&lt;P&gt;proc tabulate out=xyz;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Then use proc report to generate the output required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 10:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179931#M45902</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-10T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179932#M45903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the nob-breaking space byte(160)&amp;nbsp; 'a0'x&amp;nbsp; It may be output destination dependent but it seems that something with space in the name should print as "blank".&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1 v2 v3;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;1 1 1&lt;BR /&gt;2 2 4&lt;BR /&gt;3 4 10&lt;BR /&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;tabulate&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1 v2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v3;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v1=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'a0'x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; v3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'a0'x&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; min*v3*v1,v2;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;IMG alt="10-10-2014 6-16-48 AM.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7573_10-10-2014 6-16-48 AM.png" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 11:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179932#M45903</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-10T11:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179933#M45904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;data test;
input v1 v2 v3;
cards; 
1 1 1
2 2 4
3 4 10
; 
proc tabulate; 
&amp;nbsp; class v1 v2;
&amp;nbsp; var v3;
&amp;nbsp; table min*v3=' '*v1=' ',v2;
&amp;nbsp; run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179933#M45904</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-10T12:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179934#M45905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Ksharp wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE&gt;data test;
input v1 v2 v3;
cards; 
1 1 1
2 2 4
3 4 10
; 
proc tabulate; 
&amp;nbsp; class v1 v2;
&amp;nbsp; var v3;
&amp;nbsp; table min*v3=' '*v1=' ',v2;
&amp;nbsp; run;

&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Xia Keshan&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be the preferred method as it removes the "label" row produce by non-breaking space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="10-10-2014 7-14-02 AM.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7577_10-10-2014 7-14-02 AM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179934#M45905</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-10T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179935#M45906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or instead of relying on label:&lt;/P&gt;&lt;P&gt;proc tabulate; &lt;/P&gt;&lt;P&gt;&amp;nbsp; class v1 v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var v3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; table v3='' * v1='',v2*sum='';&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Single quotes with no space to override. Since V3 is a VAR it want a summary statistic row header which will still appear as blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 18:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179935#M45906</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-10T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing row headers in tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179936#M45907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. The responses which suggest using the within table statement =' ' formatting work (with or without the space in between). I thought I had tried this, but obviously not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 23:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-row-headers-in-tabulate/m-p/179936#M45907</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2014-10-10T23:06:46Z</dc:date>
    </item>
  </channel>
</rss>

