<?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: Creating a table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603806#M174972</link>
    <description>&lt;P&gt;You want this in a report, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id ve na ai;
datalines;
1 1 2 3
2 1 2 2
3 3 3 9
4 2 3 11
5 3 2 2
6 3 1 11
;

proc tabulate data=have;
    class ve na;
    table ve, na=''*n=''*f=best.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Nov 2019 09:45:56 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-11-13T09:45:56Z</dc:date>
    <item>
      <title>Creating a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603804#M174971</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dataset that looks something like this&lt;/P&gt;&lt;P&gt;id ve na&amp;nbsp; ai&lt;/P&gt;&lt;P&gt;1&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp; 3&amp;nbsp; 3&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;4&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 11&lt;/P&gt;&lt;P&gt;5&amp;nbsp; 3&amp;nbsp; 2&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;6&amp;nbsp; 3&amp;nbsp; 1&amp;nbsp; 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to create a table where I have ve on the y axis and on the x axis I want the number of "na" observations for each of its numbers.&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;na&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;ve&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 &amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603804#M174971</guid>
      <dc:creator>Viktoreli</dc:creator>
      <dc:date>2019-11-13T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603806#M174972</link>
      <description>&lt;P&gt;You want this in a report, correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id ve na ai;
datalines;
1 1 2 3
2 1 2 2
3 3 3 9
4 2 3 11
5 3 2 2
6 3 1 11
;

proc tabulate data=have;
    class ve na;
    table ve, na=''*n=''*f=best.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603806#M174972</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-13T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603807#M174973</link>
      <description>Thank you alot!!:)</description>
      <pubDate>Wed, 13 Nov 2019 09:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-table/m-p/603807#M174973</guid>
      <dc:creator>Viktoreli</dc:creator>
      <dc:date>2019-11-13T09:52:02Z</dc:date>
    </item>
  </channel>
</rss>

