<?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 Export Excel code Lesson 6 in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839104#M1232</link>
    <description>&lt;P&gt;This is the code generated from the lesson and it opens in Excel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file="&amp;amp;outpath/StormStats.xlsx"
    style=snow
    options(sheet_name='South Pacific Summary');
ods noproctitle;

proc means data=pg1.storm_detail maxdec=0 median max;
    class Season;
    var Wind;
    where Basin='SP' and Season in (2014,2015,2016);
run;

ods excel options(sheet_name='Detail');

proc print data=pg1.storm_detail noobs;
    where Basin='SP' and Season in (2014,2015,2016);
    by Season;
run;

ods excel close;
ods proctitle;&lt;/PRE&gt;
&lt;P&gt;This is the code that I created and it doesn't open in Excel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file="&amp;amp;outpath/StormStats.xlxs"
 style=snow
 options(sheet_name='South Pacific Summary');
ods noproctitle;

proc means data=pg1.storm_detail maxdec=0 median max;
    class Season;
    var Wind;
    where Basin='SP' and Season in (2014,2015,2016);
run;

ods excel options(sheet_name='Detail');

proc print data=pg1.storm_detail noobs;
    where Basin='SP' and Season in (2014,2015,2016);
    by Season;
run;
ods excel close;
ods proctitle;
&lt;/PRE&gt;
&lt;P&gt;I'm not sure what I am doing wrong.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 00:25:21 GMT</pubDate>
    <dc:creator>Sassy_lady</dc:creator>
    <dc:date>2022-10-18T00:25:21Z</dc:date>
    <item>
      <title>Export Excel code Lesson 6</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839104#M1232</link>
      <description>&lt;P&gt;This is the code generated from the lesson and it opens in Excel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file="&amp;amp;outpath/StormStats.xlsx"
    style=snow
    options(sheet_name='South Pacific Summary');
ods noproctitle;

proc means data=pg1.storm_detail maxdec=0 median max;
    class Season;
    var Wind;
    where Basin='SP' and Season in (2014,2015,2016);
run;

ods excel options(sheet_name='Detail');

proc print data=pg1.storm_detail noobs;
    where Basin='SP' and Season in (2014,2015,2016);
    by Season;
run;

ods excel close;
ods proctitle;&lt;/PRE&gt;
&lt;P&gt;This is the code that I created and it doesn't open in Excel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file="&amp;amp;outpath/StormStats.xlxs"
 style=snow
 options(sheet_name='South Pacific Summary');
ods noproctitle;

proc means data=pg1.storm_detail maxdec=0 median max;
    class Season;
    var Wind;
    where Basin='SP' and Season in (2014,2015,2016);
run;

ods excel options(sheet_name='Detail');

proc print data=pg1.storm_detail noobs;
    where Basin='SP' and Season in (2014,2015,2016);
    by Season;
run;
ods excel close;
ods proctitle;
&lt;/PRE&gt;
&lt;P&gt;I'm not sure what I am doing wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 00:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839104#M1232</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-10-18T00:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel code Lesson 6</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839109#M1233</link>
      <description>&lt;P&gt;What do you mean by does not open?&lt;/P&gt;
&lt;P&gt;Did you expect it to automatically start Excel for you?&amp;nbsp; How are you running the SAS code?&amp;nbsp; Are you running SAS on your PC?&amp;nbsp; Or are you using some front end tool to submit the SAS code, such as Enterprise Guide or a browser connected to a SAS/Studio installation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or did you actually try to open the resulting file with Excel and it did not work?&amp;nbsp; What error message did Excel give?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did the SAS log have any error messages?&amp;nbsp; Did the PROC steps actually produce output?&amp;nbsp; Perhaps none of the observations met the WHERE condition you imposed.&amp;nbsp; That would create an empty XLSX file, which would not be readable by Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 02:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839109#M1233</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-18T02:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel code Lesson 6</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839115#M1234</link>
      <description>&lt;P&gt;What does your log show when you run the code?&lt;/P&gt;
&lt;P&gt;When you get unexpected behavior it is best to copy the text from the LOG and then paste the log text into a text box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find issues with file paths, such as does not exist or invalid. Did you update the OUTPATH macro variable? without a correct value then the file system doesn't know where you intend to write the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you created all the data sets from the course set up instructions?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 05:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/839115#M1234</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-18T05:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel code Lesson 6</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/959663#M1526</link>
      <description>Were you able to resolve the issue?</description>
      <pubDate>Wed, 19 Feb 2025 19:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/959663#M1526</guid>
      <dc:creator>coder1234</dc:creator>
      <dc:date>2025-02-19T19:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export Excel code Lesson 6</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/976330#M1553</link>
      <description>&lt;P&gt;My guess is that you have misspelled the name of your Excel file extension (xlxs) which are not associated with MS Excel&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 14:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Export-Excel-code-Lesson-6/m-p/976330#M1553</guid>
      <dc:creator>OleSteen</dc:creator>
      <dc:date>2025-10-03T14:22:26Z</dc:date>
    </item>
  </channel>
</rss>

