<?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: Export Results to Excel in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781562#M31809</link>
    <description>&lt;P&gt;Use ODS EXCEL to direct the output from MEANS to the spreadsheet.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Nov 2021 18:08:59 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-21T18:08:59Z</dc:date>
    <item>
      <title>Export Results to Excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781559#M31807</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running an analysis and getting some Results after I perform a Proc Means:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc means data = dataset_jumps_pa;
var exc_retadj  spread  size annualized_standev;
title All: Return (paper vol);
run;&lt;/PRE&gt;&lt;P&gt;What I would like to get is to export my results to Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc export	
	data = work.dataset_jumps_pa	
	dbms = xlsx
	outfile = "/c/myfolder/Results/all.xlsx"
	replace;
run; &lt;/PRE&gt;&lt;P&gt;which only exports the dataset from which I then perform the PROC MEANS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to export the Results of the PROC MEANS directly to excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 17:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781559#M31807</guid>
      <dc:creator>RDellaVilla</dc:creator>
      <dc:date>2021-11-21T17:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results to Excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781561#M31808</link>
      <description>&lt;P&gt;ODS is the preferred way to get results output to files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try: (The FILE= should start with a drive or mount point, otherwise the output (location) is subject to interesting results).&lt;/P&gt;
&lt;P&gt;Make sure the spelling in the path matches your system as well.&lt;/P&gt;
&lt;PRE&gt;ods excel file="/c/myfolder/Results/all.xlsx";

proc means data = dataset_jumps_pa;
var exc_retadj  spread  size annualized_standev;
title All: Return (paper vol);
run;

ods excel close;&lt;/PRE&gt;
&lt;P&gt;There are a lot of options that may apply&amp;nbsp; to the output but this should get you started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you could send output from Proc Means output to a data set and export that. However that data set may not appear as you want.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781561#M31808</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-12-01T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results to Excel</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781562#M31809</link>
      <description>&lt;P&gt;Use ODS EXCEL to direct the output from MEANS to the spreadsheet.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 18:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Export-Results-to-Excel/m-p/781562#M31809</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-21T18:08:59Z</dc:date>
    </item>
  </channel>
</rss>

