<?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: Table with &amp;quot;n&amp;quot; and &amp;quot;%&amp;quot; in separate rows? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36061#M5186</link>
    <description>Thank you so much, Olivier! That is exactly what I needed to know!</description>
    <pubDate>Tue, 05 Aug 2008 12:29:36 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-05T12:29:36Z</dc:date>
    <item>
      <title>Table with "n" and "%" in separate rows?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36059#M5184</link>
      <description>I am trying to create a table that has the "n" and "%" in separate rows, so that the percentages can be read from the table straight across, instead of having the "n" and "%" columns next to each other. Here is my current code - any ideas? Thanks in advance! (Q1 is a 1-5 scale.)&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=mvr.ready_08_6Jun(where=(wave ge 230)) format=9.1 noseps formchar(1,8,2,3,4,5,6,7,9,10,11)='||----|+|---'; &lt;BR /&gt;
	title 'Table 1a';&lt;BR /&gt;
	format wave wave. q1 sat. total total.;&lt;BR /&gt;
	class wave q1 total; &lt;BR /&gt;
	table (q1="OVERALL SATISFACTION" total=' '), &lt;BR /&gt;
           wave*(pctn&lt;Q1 total=""&gt;*f=p8r6.0 N*f=4.0)/rts = 35&lt;BR /&gt;
           box="Table 1a. OVERALL SATISFACTION" misstext=' ';&lt;BR /&gt;
	keylabel pctn = "(%)"; 	&lt;BR /&gt;
run;&lt;/Q1&gt;</description>
      <pubDate>Mon, 04 Aug 2008 20:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36059#M5184</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-04T20:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table with "n" and "%" in separate rows?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36060#M5185</link>
      <description>Hello.&lt;BR /&gt;
&lt;BR /&gt;
In your example, what you need to do is move the *(PCTN ... F=4.0) part BEFORE the comma, meaning that you want separate LINES instead of COLUMNS (what is after comma defines columns).&lt;BR /&gt;
I've tested this little code, slightly different from yours, but showing the idea.&lt;BR /&gt;
[pre]&lt;BR /&gt;
PROC TABULATE DATA=sashelp.prdsale ;&lt;BR /&gt;
	CLASS region product year ;&lt;BR /&gt;
	VAR actual ;&lt;BR /&gt;
	TABLE (region product)*(SUM="N"*F=12. PCTSUM="%"*F=12.2),&lt;BR /&gt;
	      actual=""*year="" ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards,&lt;BR /&gt;
Olivier</description>
      <pubDate>Tue, 05 Aug 2008 07:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36060#M5185</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-08-05T07:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table with "n" and "%" in separate rows?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36061#M5186</link>
      <description>Thank you so much, Olivier! That is exactly what I needed to know!</description>
      <pubDate>Tue, 05 Aug 2008 12:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Table-with-quot-n-quot-and-quot-quot-in-separate-rows/m-p/36061#M5186</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-05T12:29:36Z</dc:date>
    </item>
  </channel>
</rss>

