<?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: proc export sheet= in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180458#M265084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;It was correct for me. However, please remove dblabe statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data a.sheet1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a clear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data a.sheet2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a clear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Good luck&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Zana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 07:14:28 GMT</pubDate>
    <dc:creator>zana</dc:creator>
    <dc:date>2014-11-25T07:14:28Z</dc:date>
    <item>
      <title>proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180450#M265076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use proc export to have multiple sheets to one excel file.&amp;nbsp; I have seen several instances of this topic in this forum and elsewhere but my issue continues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;proc export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=work.test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile="C:\Users\pp78499\Desktop\tests.xlsx:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=xlsx replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet="sheet1";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=work.test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile="C:\Users\pp78499\Desktop\tests.xlsx:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=xlsx replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet="sheet2";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both exports work but the second sheet overwrites the first. I have tried switching up the dbms name or removing replace but it doesn't help.&amp;nbsp; Any suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 21:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180450#M265076</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-11-20T21:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180451#M265077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried not including replace in the second proc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Also what version of SAS do you have, if 9.3 then you may need a hotfix:&lt;/P&gt;&lt;P&gt;&lt;A 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>Thu, 20 Nov 2014 21:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180451#M265077</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-20T21:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180452#M265078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried removing replace in the second, I get an error that the file already exists.&amp;nbsp; I have looked at the hotfix but have never used those before and am hesitant to use it because of my lack of related knowledge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 15:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180452#M265078</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-11-21T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180453#M265079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add.&amp;nbsp; There are better methods available to you to get data out into Excel.&amp;nbsp; for instance:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="xyz.xlsx";&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options=(sheet_name="Sheet1");&lt;/P&gt;&lt;P&gt;proc report data=...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options=(...;&lt;/P&gt;&lt;P&gt;proc report ...;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have the libname to Excel if you want straight data to ranges. &lt;/P&gt;&lt;P&gt;Any particular reason for using export?&amp;nbsp; If its because it doesn't create a native file, this is covered in other posts.&amp;nbsp; tagsets generate XML which Excel (amongst others) can read and parse fine.&amp;nbsp; A warning pops up when the file is xlsx but not in Open Document format - it does not cause any problems however.&amp;nbsp; You can of course, learn Open Office Docment structure, folders/XML docs all zipped up in the .xlsx file if you like.&amp;nbsp; Then you can write it by hand in SAS.&amp;nbsp; It gives a lot of control, but is also a lot of hassle. &lt;/P&gt;&lt;P&gt;If you are using the output for anything other than review (and even then I wouldn't) then your better off with another format anyways as Excel is not really for &amp;lt;insert what you use it for&amp;gt; task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 15:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180453#M265079</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-21T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180454#M265080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using ods tagsets.excelxp but wanted to try export or download to test performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 15:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180454#M265080</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-11-21T15:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180455#M265081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data a.sheet1(dblabel=no);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;libname a clear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data a.sheet2(dblabel=no);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;libname a clear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 22:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180455#M265081</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-11-23T22:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180456#M265082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an error that says dblabel is not a valid option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180456#M265082</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-11-24T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180457#M265083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dbms = excelcs fixes the issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180457#M265083</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-11-24T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc export sheet=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180458#M265084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;It was correct for me. However, please remove dblabe statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data a.sheet1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a clear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a "C:\Users\pp78499\Desktop\tests.xls";&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; data a.sheet2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;libname a clear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Good luck&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Zana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 07:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-sheet/m-p/180458#M265084</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-11-25T07:14:28Z</dc:date>
    </item>
  </channel>
</rss>

