<?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 suppress the column of row headings in PROC TABULATE in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/suppress-the-column-of-row-headings-in-PROC-TABULATE/m-p/54746#M6738</link>
    <description>Folks,&lt;BR /&gt;
How would you remove completely the column of row headings (including the box) from the output of a PROC TABULATE? I searched this forum but couldn't find an answer.&lt;BR /&gt;
For example In my program below, I want sheet 'a' to be identical to sheet 'b'. It's SAS 9.1.3 by the way.&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
    do _n_=1 to 10;&lt;BR /&gt;
        x=ceil(3*ranuni(1));&lt;BR /&gt;
        y=ceil(4*ranuni(1));&lt;BR /&gt;
        z=ceil(2*ranuni(1));&lt;BR /&gt;
        output;&lt;BR /&gt;
    end;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods tagsets.excelxp file='c:\data\example.xls' style=minimal options(sheet_name='a');&lt;BR /&gt;
proc format;&lt;BR /&gt;
	picture mypct(default=7)&lt;BR /&gt;
	0-100='009.99%%'&lt;BR /&gt;
	;&lt;BR /&gt;
proc tabulate data=a;&lt;BR /&gt;
    class x y z;&lt;BR /&gt;
    table all='', (x y z)*(n='n'*f=1. pctn='%'*f=mypct.)/row=float indent=0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data b/view=b;&lt;BR /&gt;
    set a nobs=nobs; &lt;BR /&gt;
    retain weight;&lt;BR /&gt;
    if _n_=1 then weight=1/nobs;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='b');&lt;BR /&gt;
proc report data=b nowd;&lt;BR /&gt;
    column (x--z),(n weight);&lt;BR /&gt;
    define x--z/across format=1.;&lt;BR /&gt;
    define weight/analysis '%' format=percent8.2;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;</description>
    <pubDate>Wed, 15 Jul 2009 14:21:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-15T14:21:54Z</dc:date>
    <item>
      <title>suppress the column of row headings in PROC TABULATE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/suppress-the-column-of-row-headings-in-PROC-TABULATE/m-p/54746#M6738</link>
      <description>Folks,&lt;BR /&gt;
How would you remove completely the column of row headings (including the box) from the output of a PROC TABULATE? I searched this forum but couldn't find an answer.&lt;BR /&gt;
For example In my program below, I want sheet 'a' to be identical to sheet 'b'. It's SAS 9.1.3 by the way.&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
    do _n_=1 to 10;&lt;BR /&gt;
        x=ceil(3*ranuni(1));&lt;BR /&gt;
        y=ceil(4*ranuni(1));&lt;BR /&gt;
        z=ceil(2*ranuni(1));&lt;BR /&gt;
        output;&lt;BR /&gt;
    end;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods tagsets.excelxp file='c:\data\example.xls' style=minimal options(sheet_name='a');&lt;BR /&gt;
proc format;&lt;BR /&gt;
	picture mypct(default=7)&lt;BR /&gt;
	0-100='009.99%%'&lt;BR /&gt;
	;&lt;BR /&gt;
proc tabulate data=a;&lt;BR /&gt;
    class x y z;&lt;BR /&gt;
    table all='', (x y z)*(n='n'*f=1. pctn='%'*f=mypct.)/row=float indent=0;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data b/view=b;&lt;BR /&gt;
    set a nobs=nobs; &lt;BR /&gt;
    retain weight;&lt;BR /&gt;
    if _n_=1 then weight=1/nobs;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='b');&lt;BR /&gt;
proc report data=b nowd;&lt;BR /&gt;
    column (x--z),(n weight);&lt;BR /&gt;
    define x--z/across format=1.;&lt;BR /&gt;
    define weight/analysis '%' format=percent8.2;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;</description>
      <pubDate>Wed, 15 Jul 2009 14:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/suppress-the-column-of-row-headings-in-PROC-TABULATE/m-p/54746#M6738</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-15T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: suppress the column of row headings in PROC TABULATE</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/suppress-the-column-of-row-headings-in-PROC-TABULATE/m-p/54747#M6739</link>
      <description>If it cannot be suppressed, could you set column 1 hidden?</description>
      <pubDate>Wed, 15 Jul 2009 14:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/suppress-the-column-of-row-headings-in-PROC-TABULATE/m-p/54747#M6739</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-07-15T14:54:14Z</dc:date>
    </item>
  </channel>
</rss>

