<?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 to Password Protected Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287907#M59286</link>
    <description>Just don't use password protected files in BI solutions, it just cause headache and are not particularly safe. Find other means to protect your data.</description>
    <pubDate>Thu, 28 Jul 2016 18:36:51 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-07-28T18:36:51Z</dc:date>
    <item>
      <title>Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287817#M59259</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to export a dataset to a&amp;nbsp;excel file that has a password protect feature enabled. Here is the code that I am using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA = contactOUT
OUTFILE = "S:\counselor.xlsx"
DBMS=xlsx REPLACE;
Sheet = "Counselor";
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this error when I try to run it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error creating XLSX file -&amp;gt; S:\CommunityHealth\DPHO-Harlem\Research, Evaluation, and&lt;BR /&gt;Planning\Henry\EHACE\Reports\CHE Monthly Report\counselor.xlsx . It is either not an Excel&lt;BR /&gt;spreadsheet or it is damaged. Error code=8014900A&lt;BR /&gt;Requested Output File is Invalid&lt;/P&gt;&lt;P&gt;ERROR: Export unsuccessful. See SAS Log for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way to input the password into the code so it can write to it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287817#M59259</guid>
      <dc:creator>hwangnyc</dc:creator>
      <dc:date>2016-07-28T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287836#M59262</link>
      <description>&lt;P&gt;It is nothing to do with the password protected Excel file as far as I can see, the password is only on opening the file that it is a problem, and you have specified REPLACE, so it should just overwrite what is there, assuming you have permission to write there, and that path exists and has no special characters in. &amp;nbsp;I suspect that you dont have access to that area, or something similar, what software are you using - is it Enterprise Guide, Visual Analytics, University Edition etc? &amp;nbsp;For UE, you paths should be unix style and relative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also to note in any circumstance the path:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;S:\CommunityHealth\DPHO-Harlem\Research, Evaluation, and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Planning\Henry\EHACE\Reports\CHE Monthly Report\counselor.xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is really not to be recommended. &amp;nbsp;Paths really should not contain spaces, special characters (such as commas) as this just causes problems for programmers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287836#M59262</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287840#M59263</link>
      <description>Hi RW9,&lt;BR /&gt;&lt;BR /&gt;Thanks for the tips, especially with the filenames. But I think the password protect is causing the issue. When I remove the password from the excel file it outputs just fine. I think the replace option is for replacing the SHEET and not the file.</description>
      <pubDate>Thu, 28 Jul 2016 15:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287840#M59263</guid>
      <dc:creator>hwangnyc</dc:creator>
      <dc:date>2016-07-28T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287845#M59264</link>
      <description>&lt;P&gt;Ah yes, looking at the SAS guidance:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/20/923.html" target="_blank"&gt;http://support.sas.com/kb/20/923.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It does seem like it will try to replace the named range if it exists. &amp;nbsp;Well, from memory, no you can't do much with a password protected Excel file. &amp;nbsp;but you could just use the fdelete command to delete the file before exporting:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245893.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000245893.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287845#M59264</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287907#M59286</link>
      <description>Just don't use password protected files in BI solutions, it just cause headache and are not particularly safe. Find other means to protect your data.</description>
      <pubDate>Thu, 28 Jul 2016 18:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287907#M59286</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-07-28T18:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287921#M59291</link>
      <description>&lt;P&gt;Thanks for the response. Do you have any suggestions as to how to better protect the information if I remove the password? I export this data out to the excel file on a daily basis and only want a select number of people to be able to view the file. It's more a safe guard that someone does not accidently open the file being exposed to the information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 19:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287921#M59291</guid>
      <dc:creator>hwangnyc</dc:creator>
      <dc:date>2016-07-28T19:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to Password Protected Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287944#M59299</link>
      <description>&lt;P&gt;Don't use Excel full stop. &amp;nbsp;Totally unvalidated, unsafe, unstructured file format. &amp;nbsp;Publish your results to an access restricted web address, Sharepoint for example. &amp;nbsp;Use PDF or something to make it hard to edit.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-Password-Protected-Excel/m-p/287944#M59299</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T20:06:02Z</dc:date>
    </item>
  </channel>
</rss>

