<?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: How to export to same excel sheet without overwriting? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576208#M163072</link>
    <description>Not via XLSX afaik. You can with PCFILES though, but then you have some other limitations unfortunately. First you do need to drop that sheet and then re-add it so not sure that will work, if you want other information to remain on the sheet.</description>
    <pubDate>Wed, 24 Jul 2019 15:32:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-24T15:32:33Z</dc:date>
    <item>
      <title>How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576206#M163071</link>
      <description>&lt;P&gt;I'm importing the data from .xlsx and using proc sql to create/manipulate the data in SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I'm currently exporting to .xlsx but this overwrites that particular sheet. I want to reuse the same sheet.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export
DATA = data_name
DBMS = xlsx 
OUTFILE = "C:\\...\outfile.xlsx"
REPLACE;

sheet=sheet_name;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess one alternative would be to do all the data manipulation and then do a single export as opposed to data manipulation then export, data manipulation then export, data manipulation then export, and so on. But is there a way to export without overwriting? I tried looking this up and nothing relevant came up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I want&amp;nbsp;&lt;SPAN&gt;different sets of data on the same sheet one below the other, sort of like appending&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576206#M163071</guid>
      <dc:creator>jerrylshen</dc:creator>
      <dc:date>2019-07-24T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576208#M163072</link>
      <description>Not via XLSX afaik. You can with PCFILES though, but then you have some other limitations unfortunately. First you do need to drop that sheet and then re-add it so not sure that will work, if you want other information to remain on the sheet.</description>
      <pubDate>Wed, 24 Jul 2019 15:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576208#M163072</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576232#M163080</link>
      <description>&lt;P&gt;Do you want to place to different sets of data on the same sheet one below the other?&lt;/P&gt;
&lt;P&gt;Or are you expecting to have this behave as a single block of data just adding lines without a header row?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Export in not the most flexible tool as it is pretty much intended to create one output file for one data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to accomplish what you want with ODS Excel as that will allow multiple procedures to send ODS output, such as Proc Print, to the same or different sheets depending on options like Sheet_interval.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576232#M163080</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-24T16:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576258#M163088</link>
      <description>&lt;P&gt;Alright, thanks for the info, I'll take a look into ODS Excel&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576258#M163088</guid>
      <dc:creator>jerrylshen</dc:creator>
      <dc:date>2019-07-24T17:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576264#M163090</link>
      <description>ODS EXCEL does assume that you can create an entirely new workbook each time you run this process. It does not have the option of adding sheets to an already existing workbook.</description>
      <pubDate>Wed, 24 Jul 2019 17:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576264#M163090</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to same excel sheet without overwriting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576283#M163094</link>
      <description>&lt;P&gt;If you're on Windows then take a look at the exportxl macro. I think it can do everything that you described. You can download it from:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS" target="_blank"&gt;http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-to-same-excel-sheet-without-overwriting/m-p/576283#M163094</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2019-07-24T17:36:25Z</dc:date>
    </item>
  </channel>
</rss>

