<?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 Saving an XLSX template as an XLSX using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266512#M52543</link>
    <description>&lt;P&gt;What I need to do is the following:&lt;/P&gt;&lt;P&gt;1) open an XLSX workbook template&amp;nbsp;with SAS (no problem)&lt;/P&gt;&lt;P&gt;2) save the same XLSX file under another name&amp;nbsp;as an XLSX using sas (can only get it to do XLS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two macros and the first one works fine to open the template. Saving it as an XLSX is a bit of an issue. I am using Version 9.2 TS2M3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;filename cmds dde &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"EXCEL|SYSTEM"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Save current workbook using new name */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file cmds;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;put &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'[error(false)]'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;put &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"[save.as(%bquote("&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;_xlsfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,&amp;amp;_type_num&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;))]"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* Close DDE SYSTEM COM Channel */&lt;/P&gt;&lt;P&gt;filename cmds;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 20:18:20 GMT</pubDate>
    <dc:creator>Doug____</dc:creator>
    <dc:date>2016-04-26T20:18:20Z</dc:date>
    <item>
      <title>Saving an XLSX template as an XLSX using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266512#M52543</link>
      <description>&lt;P&gt;What I need to do is the following:&lt;/P&gt;&lt;P&gt;1) open an XLSX workbook template&amp;nbsp;with SAS (no problem)&lt;/P&gt;&lt;P&gt;2) save the same XLSX file under another name&amp;nbsp;as an XLSX using sas (can only get it to do XLS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two macros and the first one works fine to open the template. Saving it as an XLSX is a bit of an issue. I am using Version 9.2 TS2M3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;filename cmds dde &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"EXCEL|SYSTEM"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Save current workbook using new name */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file cmds;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;put &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'[error(false)]'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;put &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"[save.as(%bquote("&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;_xlsfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;,&amp;amp;_type_num&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;))]"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* Close DDE SYSTEM COM Channel */&lt;/P&gt;&lt;P&gt;filename cmds;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266512#M52543</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-04-26T20:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saving an XLSX template as an XLSX using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266536#M52551</link>
      <description>&lt;P&gt;What version of Excel are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you do a Save.as with just first parameter, the filename?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;put &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"[save.as(%bquote("&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;_xlsfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;))]"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266536#M52551</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-26T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Saving an XLSX template as an XLSX using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266807#M52658</link>
      <description>&lt;P&gt;I was able to locate some information stating that type = 51 is xlsx. This seems to work fine also.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266807#M52658</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-04-27T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Saving an XLSX template as an XLSX using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266813#M52660</link>
      <description>&lt;P&gt;Yet another reason to avoid DDE if at all possible. That value of 51 could well be different in the next release of Office.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Saving-an-XLSX-template-as-an-XLSX-using-SAS/m-p/266813#M52660</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-27T18:53:11Z</dc:date>
    </item>
  </channel>
</rss>

