<?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: proc tabulate output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/424465#M68192</link>
    <description>&lt;P&gt;As you created a data set want with that code then I have to assume that you need to modify that resulting data set to another format.&lt;/P&gt;
&lt;P&gt;The are going to be issues that include transposing data to get variables to have names/label of the column headers that are currently in the variable named Type. You would also have to create single variable to hold the name of the statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find it easer to use&amp;nbsp;three proc tabulate statements and create the horsepower, train and origin summaries separately and modify each before appending. Note that if you want a line with "train" or "origin" with no actual values you would have to add them manually. Or at least different TABLE statements to select by table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some sorts of data sets aren't "easy" to make because they really don't make much sense. Have a single data set where one variable contains counts, a mean, a standard deviation, a max, a min and&amp;nbsp;percentages is a problem waiting to happen when the set is used incorrectly. Errors involved with other manipulations, which would be the reason for a data set, are going to be extremely complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 21:56:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-01-02T21:56:00Z</dc:date>
    <item>
      <title>proc tabulate output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/423550#M68126</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the table in the attached file using this program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.cars out=want missing ;
	class DriveTrain Origin Type ;
	var Horsepower;
	table Horsepower='Horsepower'*(n='n' mean='Mean' std='Standard Deviation' min='Min' max='Max') 
      	DriveTrain='train' * (n='n' colpctn='%')
	  	Origin='origin' * (n='n' colpctn='%'),(Type=" ") (all='Overall');
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what I want is producing a sas table named 'want' and showing exactly what in the image in the attached file(same rows and same columns) .&lt;/P&gt;&lt;P&gt;PS: I can use proc freq many times by subsetting every time and then merging all output tables but I'm searching for a method which is easier and in some lines.&lt;/P&gt;&lt;P&gt;Any suggestion plz ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 09:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/423550#M68126</guid>
      <dc:creator>oussema</dc:creator>
      <dc:date>2017-12-26T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/424332#M68163</link>
      <description>&lt;P&gt;I can't see your RTF file so I don't know exactly what you are producing, but when you say you want to produce a SAS table what exactly do you mean?&amp;nbsp; Do you mean you want to create a dataset out of the output of your proc tabulate procedure?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 15:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/424332#M68163</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-01-02T15:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/424465#M68192</link>
      <description>&lt;P&gt;As you created a data set want with that code then I have to assume that you need to modify that resulting data set to another format.&lt;/P&gt;
&lt;P&gt;The are going to be issues that include transposing data to get variables to have names/label of the column headers that are currently in the variable named Type. You would also have to create single variable to hold the name of the statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find it easer to use&amp;nbsp;three proc tabulate statements and create the horsepower, train and origin summaries separately and modify each before appending. Note that if you want a line with "train" or "origin" with no actual values you would have to add them manually. Or at least different TABLE statements to select by table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some sorts of data sets aren't "easy" to make because they really don't make much sense. Have a single data set where one variable contains counts, a mean, a standard deviation, a max, a min and&amp;nbsp;percentages is a problem waiting to happen when the set is used incorrectly. Errors involved with other manipulations, which would be the reason for a data set, are going to be extremely complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 21:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-output/m-p/424465#M68192</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-02T21:56:00Z</dc:date>
    </item>
  </channel>
</rss>

