<?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: Having issue with creating excel file with multiple sheet in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213202#M52609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What maintenance release in version 9.3 (see the top of your SAS log)? Should be OK from M1 onwards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/51/580.html" title="http://support.sas.com/kb/51/580.html"&gt;51580 - The XLSX engine is enhanced to write multiple sheets per Microsoft Excel file in the first maintenance release of SAS® 9.3 (TS1M1)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 09:27:29 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-03-31T09:27:29Z</dc:date>
    <item>
      <title>Having issue with creating excel file with multiple sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213201#M52608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;i am facing problem to create excel file with multisheet in my new PC. using sas 9.3 - 64 bit&lt;/P&gt;&lt;P&gt;using code is below:&lt;/P&gt;&lt;P&gt;%macro test(nm);&lt;BR /&gt;99&amp;nbsp;&amp;nbsp; proc export data=dw.sas_report_brand_map(where =(index(upcase(REPORT_BRAND_DESCR),"&amp;amp;nm")&amp;gt;0))&lt;BR /&gt;100&amp;nbsp; outfile="Z:\SAS Support\brands.xlsx" dbms=xlsx ;&lt;BR /&gt;101&amp;nbsp; sheet="&amp;amp;nm";&lt;BR /&gt;102&amp;nbsp; run;&lt;BR /&gt;103&amp;nbsp; %mend;&lt;BR /&gt;104&amp;nbsp; %test(xyz);&lt;/P&gt;&lt;P&gt;NOTE: The export data set has 32 observations and 13 variables.&lt;BR /&gt;NOTE: "Z:\SAS Support\brands.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.14 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;105&amp;nbsp; %test(abc);&lt;/P&gt;&lt;P&gt;NOTE: Export cancelled.&amp;nbsp; Output file Z:\SAS Support\brands.xlsx already exists. Specify REPLACE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option to overwrite it.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.06 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i have used with or without replace option, result is differing only that with replace , &lt;BR /&gt;sas creating file with second call macro file. its completly replace previous one.&lt;/P&gt;&lt;P&gt;can any one please suggest me how to resolve this issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 04:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213201#M52608</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2015-03-31T04:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Having issue with creating excel file with multiple sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213202#M52609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What maintenance release in version 9.3 (see the top of your SAS log)? Should be OK from M1 onwards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/51/580.html" title="http://support.sas.com/kb/51/580.html"&gt;51580 - The XLSX engine is enhanced to write multiple sheets per Microsoft Excel file in the first maintenance release of SAS® 9.3 (TS1M1)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213202#M52609</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-03-31T09:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having issue with creating excel file with multiple sheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213203#M52610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a template that should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP path='PATH' file='OUTPUT.xml'&lt;/P&gt;&lt;P&gt;style=printer;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME ONE' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE1 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME TWO' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE2 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 16:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-issue-with-creating-excel-file-with-multiple-sheet/m-p/213203#M52610</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-03-31T16:47:46Z</dc:date>
    </item>
  </channel>
</rss>

