<?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 Multiple sheets in one file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551693#M153308</link>
    <description>&lt;P&gt;The option name is "sheet" not "sheet1".&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 13:06:35 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-04-17T13:06:35Z</dc:date>
    <item>
      <title>Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551682#M153300</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export multiple datasets into two different sheets in same excel file. But I am getting an error that export unsuccesful.&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC EXPORT DATA= ab&lt;BR /&gt;OUTFILE=&lt;BR /&gt;"/&amp;amp;Main/desktop/file/ab.xlsx"&lt;BR /&gt;DBMS=XLSX REPLACE;&lt;BR /&gt;Sheet1='ab';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC EXPORT DATA= ab1&lt;BR /&gt;OUTFILE=&lt;BR /&gt;"/&amp;amp;Main/desktop/file/ab1.xlsx."&lt;BR /&gt;DBMS=XLSX REPLACE;&lt;BR /&gt;Sheet1='ab1';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551682#M153300</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2019-04-17T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551684#M153302</link>
      <description>&lt;P&gt;Show us the LOG, including all of your code, and the actual error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click on the {i} icon and paste the log into the window that appears. Do not paste the log into your message any other way.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551684#M153302</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-17T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551685#M153303</link>
      <description>&lt;P&gt;I can't see any error in the code you posted. Tried to export sashelp.cars and sashelp.class using proc export twice, no problem, both sheets are created as expected. Maybe an issue caused by the sas version you are using, will need to see the log,&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551685#M153303</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-04-17T12:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551688#M153304</link>
      <description>&lt;P&gt;Here is the log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA= ab&lt;BR /&gt;471 OUTFILE=&lt;BR /&gt;472 "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx"&lt;BR /&gt;473 DBMS=XLSX REPLACE;&lt;BR /&gt;474 Sheet1='ab';&lt;BR /&gt;------&lt;BR /&gt;1&lt;BR /&gt;WARNING 1-322: Assuming the symbol SHEET was misspelled as Sheet1.&lt;/P&gt;&lt;P&gt;475 RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The export data set has 1 observations and 2 variables.&lt;BR /&gt;NOTE: "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.11 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;476&lt;BR /&gt;477&lt;BR /&gt;478&lt;BR /&gt;479&lt;BR /&gt;480 PROC EXPORT DATA= ab1&lt;BR /&gt;481 OUTFILE=&lt;BR /&gt;482 "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx."&lt;BR /&gt;483 DBMS=XLSX REPLACE;&lt;BR /&gt;484 Sheet2='ab1';&lt;BR /&gt;------&lt;BR /&gt;1&lt;BR /&gt;WARNING 1-322: Assuming the symbol SHEET was misspelled as Sheet2.&lt;/P&gt;&lt;P&gt;485 RUN;&lt;/P&gt;&lt;P&gt;NOTE: The export data set has 1 observations and 2 variables.&lt;BR /&gt;NOTE: "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.22 seconds&lt;BR /&gt;cpu time 0.07 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551688#M153304</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2019-04-17T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551689#M153305</link>
      <description>&lt;P&gt;Please help us out and comply with the earlier request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Click on the {i} icon and paste the log into the window that appears. &lt;STRONG&gt;Do not paste the log into your message any other way.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This preserves the formatting of the log and makes it easier to read.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551689#M153305</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-17T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551693#M153308</link>
      <description>&lt;P&gt;The option name is "sheet" not "sheet1".&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551693#M153308</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-04-17T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Multiple sheets in one file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551767#M153338</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91059"&gt;@sanjay1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here is the log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC EXPORT DATA= ab&lt;BR /&gt;471 OUTFILE=&lt;BR /&gt;472 "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx"&lt;BR /&gt;473 DBMS=XLSX REPLACE;&lt;BR /&gt;474 Sheet1='ab';&lt;BR /&gt;------&lt;BR /&gt;1&lt;BR /&gt;WARNING 1-322: Assuming the symbol SHEET was misspelled as Sheet1.&lt;/P&gt;
&lt;P&gt;475 RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The export data set has 1 observations and 2 variables.&lt;BR /&gt;NOTE: "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.11 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;476&lt;BR /&gt;477&lt;BR /&gt;478&lt;BR /&gt;479&lt;BR /&gt;480 PROC EXPORT DATA= ab1&lt;BR /&gt;481 OUTFILE=&lt;BR /&gt;482 "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx."&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#ff00ff"&gt;483 DBMS=XLSX REPLACE;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;484 Sheet2='ab1';&lt;BR /&gt;------&lt;BR /&gt;1&lt;BR /&gt;WARNING 1-322: Assuming the symbol SHEET was misspelled as Sheet2.&lt;/P&gt;
&lt;P&gt;485 RUN;&lt;/P&gt;
&lt;P&gt;NOTE: The export data set has 1 observations and 2 variables.&lt;BR /&gt;NOTE: "C:\Users\290014098\Desktop\SAS Codes\ab.xlsx.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.22 seconds&lt;BR /&gt;cpu time 0.07 seconds&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may want to think about what REPLACE means.&lt;/P&gt;
&lt;P&gt;In proc export that means it REPLACES the existing file. So you have told the code to get rid of the first file.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Multiple-sheets-in-one-file/m-p/551767#M153338</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-17T15:15:55Z</dc:date>
    </item>
  </channel>
</rss>

