<?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 Dataset to Replace a Single Sheet in 2016 Excel File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696045#M212511</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. i tried running your code however I got an error stating "The XLSX engine cannot be found". I have a look at accepted answer in the below link:&lt;BR /&gt;&lt;A href="http://Hi%20@Ksharp,  Thanks for the suggestion. i tried running your code however I got an error stating &amp;quot;The XLSX engine cannot be found&amp;quot;. I have a look at accepted answer in the below link: https://communities.sas.com/t5/SAS-Analytics-U/ERROR-XLSX-engine-cannot-be-found/td-p/567633 It does seem like I do have Access installed on my PC, so not sure what is the problem. " target="_self"&gt;https://communities.sas.com/t5/SAS-Analytics-U/ERROR-XLSX-engine-cannot-be-found/td-p/567633&lt;/A&gt;&lt;BR /&gt;It does seem like I do have Access installed on my PC, so not sure what is the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nanoputian628_0-1604354366522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51318i454D2E1A437122D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nanoputian628_0-1604354366522.png" alt="Nanoputian628_0-1604354366522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 21:59:43 GMT</pubDate>
    <dc:creator>Nanoputian628</dc:creator>
    <dc:date>2020-11-02T21:59:43Z</dc:date>
    <item>
      <title>Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695830#M212389</link>
      <description>&lt;P&gt;I know this question has already been asked several times, however unfortunately none of the solutions worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a xlsx file where I have a sheet called "Data" which has raw data (exported from SAS) and then there are other sheets which calculate values based on the "Data" sheet. I need to update the "Data" sheet every month. I would like to be able to export a SAS dataset to this file so that only the "Data" sheet is replaced and all other sheets in the file remain the same.&lt;/P&gt;&lt;P&gt;Previously, I had 64-bit Office 2013 installed onto my computer and I was able to achieve the above by using the below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROC EXPORT DATA= work.dataset
            OUTFILE= "file_path\file_name.xlsx" 
            DBMS = excel REPLACE;
     SHEET = "Data";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I have now 32-bit Office 2016 installed onto my computer. When I run the above code, I get an error message saying:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ERROR: Connect: Class not registered&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I change the code so that "DBMS = xlsx", the code runs, but then the entire file is now replaced and only the "Data" sheet remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 06:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695830#M212389</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T06:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695838#M212393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/355133"&gt;@Nanoputian628&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried any of the options contained in the following SAS Note?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/63/750.html" target="_blank"&gt;http://support.sas.com/kb/63/750.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 07:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695838#M212393</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-11-02T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695867#M212418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestion. Looking at the link, I believe options 1 and 3 apply to my case. Option 1 I have already tried and as I mentioned, it did not work since the entire file was replaced. I will not be able to do option 3 since I do not have admin access on the PC I am using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dilshan&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695867#M212418</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T10:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695905#M212444</link>
      <description>Did you try XLSX engine ?&lt;BR /&gt;&lt;BR /&gt;libname x xlsx "file_path\file_name.xlsx" ;&lt;BR /&gt;proc sql;&lt;BR /&gt;drop table x.'Data$'n ;   /* x.Data*/&lt;BR /&gt;create table x.Data as&lt;BR /&gt; select * from work.dataset ;&lt;BR /&gt;quit;</description>
      <pubDate>Mon, 02 Nov 2020 11:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695905#M212444</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-02T11:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695908#M212445</link>
      <description>&lt;P&gt;There have been lots of improvements to the XLSX engine in the meantime. Update your SAS to the current version (9.4 ML7) three days before yesterday.&lt;/P&gt;
&lt;P&gt;9.3 is&amp;nbsp;&lt;EM&gt;very&lt;/EM&gt; old now in terms of SAS development.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 11:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/695908#M212445</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-02T11:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696016#M212493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/355133"&gt;@Nanoputian628&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your administrator able to help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 18:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696016#M212493</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-11-02T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696029#M212502</link>
      <description>Option 3 is often installed by default these days. Did you try using PCFILES and did it not work? Or did you try seeing if you have it installed but need to start it?&lt;BR /&gt;&lt;BR /&gt;SAS 9.3 was last released in 2012 so it's now about 7/8 years out of date.</description>
      <pubDate>Mon, 02 Nov 2020 20:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696029#M212502</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-02T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696034#M212505</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/355133"&gt;@Nanoputian628&lt;/a&gt;&amp;nbsp;- Option 2 should also apply as it is a free download from Microsoft. The 64-bit ACE engine components will fix your issue as it will align your SAS bitness with the ACE bitness.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696034#M212505</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-02T21:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696040#M212508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could, but it will be a long process and it is not guaranteed they will be able to help. Also, this code should be able to be run by other people in my team, so ideally I would like a solution which can be implemented by others without requiring many changes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696040#M212508</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T21:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696041#M212509</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;I have tried PCFILES in the past but it did not work. Also, this code should be able to be run by other people in my team (they have the same software as I do), so ideally I would like a solution which can be implemented by others with minimal changes. &amp;nbsp;&amp;nbsp;</description>
      <pubDate>Mon, 02 Nov 2020 21:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696041#M212509</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696045#M212511</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. i tried running your code however I got an error stating "The XLSX engine cannot be found". I have a look at accepted answer in the below link:&lt;BR /&gt;&lt;A href="http://Hi%20@Ksharp,  Thanks for the suggestion. i tried running your code however I got an error stating &amp;quot;The XLSX engine cannot be found&amp;quot;. I have a look at accepted answer in the below link: https://communities.sas.com/t5/SAS-Analytics-U/ERROR-XLSX-engine-cannot-be-found/td-p/567633 It does seem like I do have Access installed on my PC, so not sure what is the problem. " target="_self"&gt;https://communities.sas.com/t5/SAS-Analytics-U/ERROR-XLSX-engine-cannot-be-found/td-p/567633&lt;/A&gt;&lt;BR /&gt;It does seem like I do have Access installed on my PC, so not sure what is the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nanoputian628_0-1604354366522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51318i454D2E1A437122D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nanoputian628_0-1604354366522.png" alt="Nanoputian628_0-1604354366522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696045#M212511</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T21:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696047#M212512</link>
      <description>Yes it is annoying to use SAS 9.3, however unfortunately I am unable to install SAS 9.4 onto my PC. Also would like other people in my team (they use SAS 9.3 as well) to be able to run this code as well.</description>
      <pubDate>Mon, 02 Nov 2020 22:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696047#M212512</guid>
      <dc:creator>Nanoputian628</dc:creator>
      <dc:date>2020-11-02T22:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696049#M212514</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/355133"&gt;@Nanoputian628&lt;/a&gt;&amp;nbsp; - I'm pretty sure the XLSX LIBNAME engine wasn't available in your release. It was only available via PROC IMPORT DBMS = . This SAS Note may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/51/580.html" target="_blank"&gt;https://support.sas.com/kb/51/580.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 22:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696049#M212514</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-02T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696095#M212543</link>
      <description>&lt;P&gt;The current release of SAS software is always free with the license, so there is &lt;STRONG&gt;NO REASON AT&lt;/STRONG&gt; &lt;STRONG&gt;ALL&lt;/STRONG&gt; to keep on using an old version that does not meet your needs anymore and hampers your work. Get the new version. &lt;STRONG&gt;YOU PAID FOR IT&lt;/STRONG&gt; through your license, not using it means throwing money out the window, and any business(wo)man worth a dime sees that as idiocy.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 05:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696095#M212543</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-03T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696164#M212595</link>
      <description>If you could , open PCFile Server at start menu .&lt;BR /&gt;And try pcfile engine .</description>
      <pubDate>Tue, 03 Nov 2020 12:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696164#M212595</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-03T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export Dataset to Replace a Single Sheet in 2016 Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696268#M212635</link>
      <description>9.3M1 is older (2011) but it indicates you have a license for PC Files there so you should be able to use the PCFILES engine method.</description>
      <pubDate>Tue, 03 Nov 2020 17:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-Dataset-to-Replace-a-Single-Sheet-in-2016-Excel-File/m-p/696268#M212635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-03T17:01:09Z</dc:date>
    </item>
  </channel>
</rss>

