<?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 retrieving output from procedures in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30581#M7267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before SAS9.3, ODS OUTPUT wasn't generating the layout that seemed natural in the output window (and I'm not sure if it will now - in 9.3). So Myra Olstik started her project to automate the process of creating a column for each variable with a row for each requested statistic.The results of that project are described in a paper with the macro code, that can be found at the link offered above, by Howles &lt;A class="jive-link-external-small" href="http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default"&gt;http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As you suggest, the solution uses the output statement (one for each statistic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 14:52:31 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-10-19T14:52:31Z</dc:date>
    <item>
      <title>retrieving output from procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30577#M7263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write SAS code so output from procedures is automatically put into a table. For example, if I run proc means data=data1 mean N NMISS on 15 variables, I would like the output to go into a table with four columns (variable name, mean, N, NMISS) and 15 rows (one for each variable). Is that possible? I can do this in Stata, because all output is stored in scalars and matrices, which can be accessed and put into a matrix (i.e., table) that I create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brent Fulton&lt;/P&gt;&lt;P&gt;UC Berkeley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 14:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30577#M7263</guid>
      <dc:creator>BrentFulton</dc:creator>
      <dc:date>2011-10-18T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving output from procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30578#M7264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default"&gt;http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default&lt;/A&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;BrentFulton wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write SAS code so output from procedures is automatically put into a table. For example, if I run proc means data=data1 mean N NMISS on 15 variables, I would like the output to go into a table with four columns (variable name, mean, N, NMISS) and 15 rows (one for each variable). Is that possible? I can do this in Stata, because all output is stored in scalars and matrices, which can be accessed and put into a matrix (i.e., table) that I create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brent Fulton&lt;/P&gt;&lt;P&gt;UC Berkeley&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 15:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30578#M7264</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-10-18T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving output from procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30579#M7265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be aware that the last time I looked this program did not produce 2-sided confidence intervals as you would expect when both are Upper and Lower CI are requested. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 16:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30579#M7265</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-10-18T16:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving output from procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30580#M7266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost all procedure will now deliver the output into datasets for you using the ODS output system.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/62755/HTML/default/viewer.htm"&gt;http://support.sas.com/documentation/cdl/en/odsug/62755/HTML/default/viewer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also many procedures have options to specify output datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular for PROC MEANS/SUMMARY there is the OUTPUT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 17:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30580#M7266</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-18T17:11:56Z</dc:date>
    </item>
    <item>
      <title>retrieving output from procedures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30581#M7267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before SAS9.3, ODS OUTPUT wasn't generating the layout that seemed natural in the output window (and I'm not sure if it will now - in 9.3). So Myra Olstik started her project to automate the process of creating a column for each variable with a row for each requested statistic.The results of that project are described in a paper with the macro code, that can be found at the link offered above, by Howles &lt;A class="jive-link-external-small" href="http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default"&gt;http://www.sascommunity.org/wiki/PROC_MEANS_-_Improve_on_the_default&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As you suggest, the solution uses the output statement (one for each statistic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieving-output-from-procedures/m-p/30581#M7267</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-19T14:52:31Z</dc:date>
    </item>
  </channel>
</rss>

