<?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 Need Help to Save File as Excel workbook in 2007 format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-Help-to-Save-File-as-Excel-workbook-in-2007-format/m-p/73595#M21340</link>
    <description>I am using SAS to produce an Excel workbook.  We have recently converted to MS 2007.  The program works fine, I have only changed the extensions on the files to '.xlsx'.  But when I try to open the file after closing Excel and SAS, in Excel 2007 it says the file if corrupted or the extension is wrong.  How do I save the file as the new 2007 format.  This is a piece of the current code that I have:&lt;BR /&gt;
&lt;BR /&gt;
 %let excelout = &amp;amp;newdrive&amp;amp;dirpath.\data\schips\&amp;amp;monyr\&amp;amp;mth&amp;amp;yr._mthlychk.xlsx;&lt;BR /&gt;
	  data _null_;&lt;BR /&gt;
	     file cmdexcel;&lt;BR /&gt;
	     put "[save.as(%bquote("&amp;amp;excelout"))]";&lt;BR /&gt;
	  run;&lt;BR /&gt;
&lt;BR /&gt;
The SAVE.AS does not seem to be enough.  How can I put the File Format into the put statement?  Also are there any good examples on the web that show me  different Excel commands and formats that can be used inside put statements from SAS?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Nancy</description>
    <pubDate>Tue, 06 Apr 2010 13:47:43 GMT</pubDate>
    <dc:creator>SASHunter</dc:creator>
    <dc:date>2010-04-06T13:47:43Z</dc:date>
    <item>
      <title>Need Help to Save File as Excel workbook in 2007 format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-Help-to-Save-File-as-Excel-workbook-in-2007-format/m-p/73595#M21340</link>
      <description>I am using SAS to produce an Excel workbook.  We have recently converted to MS 2007.  The program works fine, I have only changed the extensions on the files to '.xlsx'.  But when I try to open the file after closing Excel and SAS, in Excel 2007 it says the file if corrupted or the extension is wrong.  How do I save the file as the new 2007 format.  This is a piece of the current code that I have:&lt;BR /&gt;
&lt;BR /&gt;
 %let excelout = &amp;amp;newdrive&amp;amp;dirpath.\data\schips\&amp;amp;monyr\&amp;amp;mth&amp;amp;yr._mthlychk.xlsx;&lt;BR /&gt;
	  data _null_;&lt;BR /&gt;
	     file cmdexcel;&lt;BR /&gt;
	     put "[save.as(%bquote("&amp;amp;excelout"))]";&lt;BR /&gt;
	  run;&lt;BR /&gt;
&lt;BR /&gt;
The SAVE.AS does not seem to be enough.  How can I put the File Format into the put statement?  Also are there any good examples on the web that show me  different Excel commands and formats that can be used inside put statements from SAS?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Nancy</description>
      <pubDate>Tue, 06 Apr 2010 13:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-Help-to-Save-File-as-Excel-workbook-in-2007-format/m-p/73595#M21340</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-04-06T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to Save File as Excel workbook in 2007 format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-Help-to-Save-File-as-Excel-workbook-in-2007-format/m-p/73596#M21341</link>
      <description>You topic/query has been discussed on the SAS forums before - suggest you search the archives.  Also, there is "Excel version support" information on the SAS.COM  support website at &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; either using SEARCH or possible a Google advanced search argument, such as:&lt;BR /&gt;
&lt;BR /&gt;
excel version 2007 support site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Also, you will need to consider that SAS version support and related Excel version support may not generate an actual Excel 2007 format file for you, however you do have some options.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 06 Apr 2010 17:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-Help-to-Save-File-as-Excel-workbook-in-2007-format/m-p/73596#M21341</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-06T17:32:13Z</dc:date>
    </item>
  </channel>
</rss>

