<?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 merged first cell in proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58209#M16270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need another format to display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc format;
picture per
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low-high='9.99' (mult=1);
run;
proc tabulate data=sashelp.class ;
class sex age;
table sex=''*(age='' all),n pctn*format=per. ;
run;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 05:39:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-02-20T05:39:13Z</dc:date>
    <item>
      <title>merged first cell in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58205#M16266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; color: #333333; font-family: Arial;"&gt;Hi, I thought I'd change the discussion a little... when I run this code I get "merged" cells in the first row.. how can I get rid of the merged feature.&amp;nbsp; Se diagram below of what I get, and my proc tabulate code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; color: #333333; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; color: #333333; font-family: Arial;"&gt;&lt;IMG alt="Picture3.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1478_Picture3.jpg" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; color: #333333; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; color: #333333; font-family: Arial;"&gt;This is the code I use from a Proc Tabulate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;TABLE Transaction_Type*CI1_T,N pctn&amp;lt;CI1_T all&amp;gt; /&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;rts&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;35;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;Thanks&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 15:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58205#M16266</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-18T15:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: merged first cell in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58206#M16267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; That "merged cell" is a side effect of how TABULATE operates. The big empty "box" at the intersection of your row headers (TRANSACTION_TYPE and CI1_T) and your column headers (N and PCTN) causes the row headers to be placed in the first "row", thus causing what you show. Here's an interesting blog post about how this is one reason why folks switch over to PROC REPORT.&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2010/10/22/proc-report-versus-tabulate-two-sas-heavyweights/"&gt;http://blogs.sas.com/content/sasdummy/2010/10/22/proc-report-versus-tabulate-two-sas-heavyweights/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With only 1 variable in the ROW dimension, you can put a variable value into the big empty box. Or, you can put a string of your own choosing up in the BOX area. In either of those cases, you can suppress the header for TRANSACTION_TYPE and CI1_T and it would make the whole row go away. (I took out the RTS= option because your output looks like PDF and PDF essentially ignores the RTS option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;TABLE Transaction_Type=' '*CI1_T=' ',N pctn&amp;lt;CI1_T all&amp;gt; /row=float&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; box='Transaction and CI1_T'; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 17:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58206#M16267</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-02-18T17:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: merged first cell in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58207#M16268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia, worked perfectly... would you know how I can make the percent not be multiplied by 100. and show as 0.352 rather than 35.2 ?&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 01:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58207#M16268</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-19T01:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: merged first cell in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58208#M16269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I posted a response to the latter question under a second thread that was started on the topic of podarum's second question.&amp;nbsp; A solution, that worked, was to created and apply a format, namely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;data fractions;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; format label 4.3;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; retain fmtname 'fraction' type 'n';&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; do start=0 to 100 by .1;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end=start+0.0999999999;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=start/100;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;run;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;proc format cntlin=fractions;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 05:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58208#M16269</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-20T05:37:12Z</dc:date>
    </item>
    <item>
      <title>merged first cell in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58209#M16270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need another format to display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc format;
picture per
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low-high='9.99' (mult=1);
run;
proc tabulate data=sashelp.class ;
class sex age;
table sex=''*(age='' all),n pctn*format=per. ;
run;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 05:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/merged-first-cell-in-proc-tabulate/m-p/58209#M16270</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-02-20T05:39:13Z</dc:date>
    </item>
  </channel>
</rss>

