<?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 Moving tables from Results window to other location__part 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764490#M242160</link>
    <description>&lt;P&gt;I recently asked how to move tables or date from the Results window to another destination.&amp;nbsp; I got a solution from Reeza which involved using ODS as a wrapper&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file='/.....' style=meadow;
proc freq data=sashelp.class;
run;
ods excel close; 
&lt;/PRE&gt;
&lt;P&gt;This question is just follow-up to this solution. The question is how do I&lt;/P&gt;
&lt;P&gt;pipe tables from Results window to data sets where they can be manipulated, combined, exported or saved for further analysis or use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for this assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wklierman&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 16:17:38 GMT</pubDate>
    <dc:creator>wlierman</dc:creator>
    <dc:date>2021-08-27T16:17:38Z</dc:date>
    <item>
      <title>Moving tables from Results window to other location__part 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764490#M242160</link>
      <description>&lt;P&gt;I recently asked how to move tables or date from the Results window to another destination.&amp;nbsp; I got a solution from Reeza which involved using ODS as a wrapper&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file='/.....' style=meadow;
proc freq data=sashelp.class;
run;
ods excel close; 
&lt;/PRE&gt;
&lt;P&gt;This question is just follow-up to this solution. The question is how do I&lt;/P&gt;
&lt;P&gt;pipe tables from Results window to data sets where they can be manipulated, combined, exported or saved for further analysis or use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for this assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wklierman&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764490#M242160</guid>
      <dc:creator>wlierman</dc:creator>
      <dc:date>2021-08-27T16:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Moving tables from Results window to other location__part 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764492#M242161</link>
      <description>&lt;P&gt;Use the OUT = option on PROC FREQ:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq
	data = sashelp.class;
		tables sex / out = s_freq;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764492#M242161</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2021-08-27T16:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Moving tables from Results window to other location__part 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764510#M242163</link>
      <description>&lt;P&gt;For procedures that do not have an out= data set option, or do not allow what you want in the data set you move into the ODS OUTPUT statement. Which specifies the specific table name created by the procedure and you assign a target data set name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generic looks like&lt;/P&gt;
&lt;PRE&gt;ods output generatedtable = mydatasetname;
Proc whatever data= mydata &amp;lt;other proc options&amp;gt;;
&amp;lt;other proc statements&amp;gt;
;
run;&lt;/PRE&gt;
&lt;P&gt;You can either look up the tables created in the documentation in the details tab for most procedures, which usually has the options needed to create the table.&lt;/P&gt;
&lt;P&gt;Or run your code once with&lt;/P&gt;
&lt;PRE&gt;ods trace on;
&amp;lt;your proc goes here&amp;gt;
ods trace off;&lt;/PRE&gt;
&lt;P&gt;The LOG will then show the names of the tables generated. So you could then place them into one or more ODS OUTPUT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The datasets generated by ODS output are often in a different structure, with additional variables, than in the older Output statements for most procs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that ODS OUTPUT will also allow you to capture the plotted points in the procedures that provide statistical graphs such as created by the Plot statement in Proc Power, most of the regression procedures and such.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 17:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Moving-tables-from-Results-window-to-other-location-part-2/m-p/764510#M242163</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-27T17:14:27Z</dc:date>
    </item>
  </channel>
</rss>

