<?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: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599563#M16526</link>
    <description>&lt;P&gt;Thanks. I'll give it a try.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Oct 2019 19:44:09 GMT</pubDate>
    <dc:creator>RADAGBE9</dc:creator>
    <dc:date>2019-10-26T19:44:09Z</dc:date>
    <item>
      <title>SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599489#M16511</link>
      <description>&lt;P&gt;&lt;SPAN&gt;- I have a huge excel file containing several years worth of data in a file called: &lt;STRONG&gt;C:\MyData\Basefile.xlsx&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I also have a daily scheduled job in SAS EG which creates one day's worth of sas dataset called &lt;STRONG&gt;newdata&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Both files have the same variables in the same order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I Export &amp;amp; Append the newdata to Basefile.xlsx without necessarily importing Basefile.xlsx into SAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 01:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599489#M16511</guid>
      <dc:creator>RADAGBE9</dc:creator>
      <dc:date>2019-10-26T01:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599494#M16512</link>
      <description>&lt;P&gt;Appending isn't possible using just SAS: &lt;A href="https://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=n0cfqhcraieg81n1ier2cpp87fnz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acpcref&amp;amp;docsetTarget=n0cfqhcraieg81n1ier2cpp87fnz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is only possible if you write your daily dataset to a temporary sheet in Excel and then separately use an Excel process (macro or vbscript?) to copy these rows to the end of your permanent sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please remember Excel isn't a database and so a lot of database functionality like data appends and selective inserts and deletes simply aren't possible.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 02:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599494#M16512</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-26T02:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599518#M16519</link>
      <description>&lt;P&gt;Keep your data in SAS, do the append there, and then export the whole to Excel.&lt;/P&gt;
&lt;P&gt;Also consider if what you do in Excel can't be also done with SAS. SAS is much more stable and scales much farther than Excel (sooner or later you'll hit the size limits of Excel anyway).&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 09:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599518#M16519</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-26T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599545#M16524</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;said, I don't think it can be done without a macro and/or vb script. However, a group of us wrote a macro a couple of years ago that does provide most of the functionality you'd need. That said, you'd have to test it to make sure it will work on your version of EG. You can download the macro and Global Forum paper at:&amp;nbsp;&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;The macro wasn't designed to append to the end of an existing file but, rather, to append to a range beginning at a cell that you can specify. Thus, if you can maintain a file that only has one variable and value (namely the next available row in your basefile Excel file), you could easily put that value into a macro variable and use that macro variable for the macro's RANGE parameter.&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>Sat, 26 Oct 2019 16:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599545#M16524</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2019-10-26T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599563#M16526</link>
      <description>&lt;P&gt;Thanks. I'll give it a try.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 19:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599563#M16526</guid>
      <dc:creator>RADAGBE9</dc:creator>
      <dc:date>2019-10-26T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.15 - How do I Export SAS Dataset and Append to  Excel File with Same Structure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599586#M16529</link>
      <description>&lt;P&gt;If I do the Append in SAS, how do I replace the first appended file with the new data the following day? It will not replace the first BASE file because it is already in use.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 23:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-EG-7-15-How-do-I-Export-SAS-Dataset-and-Append-to-Excel-File/m-p/599586#M16529</guid>
      <dc:creator>RADAGBE9</dc:creator>
      <dc:date>2019-10-26T23:26:08Z</dc:date>
    </item>
  </channel>
</rss>

