<?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: Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368479#M87888</link>
    <description>&lt;P&gt;You can send the output to a data set using the OUT= option on the Proc Statement.&lt;/P&gt;
&lt;P&gt;Proc tabulate data=sashelp.class out=mylib.tabulateoutput;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; class sex age;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var height weight;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; table&amp;nbsp; sex*age all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (height weight)*(mean max min);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOWEVER the data does not look like what you may expect. The output data set has a number of variables that just tell where the resulting statitistic values appear because of the option in tabulate that allow nesting row and column values, creating multiple tables from a single procedure call and the "All" row/column options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try dumping a small proc tabulate output to a set and then examime it closely to see if it will do what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have never figured out the _type_ variable in proc summary or proc means output this may not be the approach for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do use Proc tabulate to create data sets that I manipulate a bit to display latter with more control than a single Tabulate call allows but it is not a trivial operation.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2017 20:28:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-19T20:28:06Z</dc:date>
    <item>
      <title>Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368474#M87884</link>
      <description>&lt;P&gt;Can you save the&amp;nbsp;results output to a libname or something?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368474#M87884</guid>
      <dc:creator>fieldsa83</dc:creator>
      <dc:date>2017-06-19T20:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368477#M87886</link>
      <description>&lt;P&gt;Can you explain what you mean? Anything run via EG is actually run using Base SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368477#M87886</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-19T20:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368479#M87888</link>
      <description>&lt;P&gt;You can send the output to a data set using the OUT= option on the Proc Statement.&lt;/P&gt;
&lt;P&gt;Proc tabulate data=sashelp.class out=mylib.tabulateoutput;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; class sex age;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var height weight;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; table&amp;nbsp; sex*age all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (height weight)*(mean max min);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOWEVER the data does not look like what you may expect. The output data set has a number of variables that just tell where the resulting statitistic values appear because of the option in tabulate that allow nesting row and column values, creating multiple tables from a single procedure call and the "All" row/column options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try dumping a small proc tabulate output to a set and then examime it closely to see if it will do what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have never figured out the _type_ variable in proc summary or proc means output this may not be the approach for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do use Proc tabulate to create data sets that I manipulate a bit to display latter with more control than a single Tabulate call allows but it is not a trivial operation.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-way-to-run-proc-tabulate-on-base-SAS-but-view-the/m-p/368479#M87888</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-19T20:28:06Z</dc:date>
    </item>
  </channel>
</rss>

