<?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: Import protected excel file into sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8749#M373</link>
    <description>Thanks!!!!</description>
    <pubDate>Fri, 23 Apr 2010 15:04:04 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-04-23T15:04:04Z</dc:date>
    <item>
      <title>Import protected excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8747#M371</link>
      <description>Hi,&lt;BR /&gt;
 I need to import a password protected excel file into sas. I've checked in the forum and i've found someone who suggested to use FILENAME and DDE engine, becouse DDE acceps parameter like a password, but i don't know how to do it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;X '"C:\Documents and Settings\A.xls"';&lt;BR /&gt;
filename datafile dde 'Excel|C:\Documents and Settings\[A.xls]sheet1!r2c1:r6c3'; &lt;BR /&gt;
data tmp; &lt;BR /&gt;
  infile datafile missover; &lt;BR /&gt;
  input A B C; &lt;BR /&gt;
run;&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
Can anybody help me?&lt;BR /&gt;
I've looked a solution everywhere but i haven't found anything, so if it's not possible to import a protected excel file to sas, please, let me know and at least i will try another solution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Elena</description>
      <pubDate>Fri, 23 Apr 2010 10:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8747#M371</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-23T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import protected excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8748#M372</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
To read password protected Excel file using DDE:&lt;BR /&gt;
&lt;BR /&gt;
1. start Excel.&lt;BR /&gt;
&lt;BR /&gt;
2. open file using open command (where abcdxxx is a password &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
   filename cc dde 'Excel|System';&lt;BR /&gt;
   data _null_;&lt;BR /&gt;
   file cc; put '[Open("c:\documents\wg.xls",0,1,,"abcdxxx")]';&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
3. Read data from opened file (where SA_Format is a name of Excel sheet):&lt;BR /&gt;
  &lt;BR /&gt;
  filename bs dde "excel|SA_FORMAT!r1c1:r1000c4";&lt;BR /&gt;
  data balconst.sarp;&lt;BR /&gt;
  infile bs ls=5000 missover notab dlm='09'x dsd;&lt;BR /&gt;
  informat totlevel 5. acc $8. accnr $200.  accnr2 $200.;&lt;BR /&gt;
  input totlevel acc accnr accnr2 ;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Oleg.</description>
      <pubDate>Fri, 23 Apr 2010 14:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8748#M372</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2010-04-23T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import protected excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8749#M373</link>
      <description>Thanks!!!!</description>
      <pubDate>Fri, 23 Apr 2010 15:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-protected-excel-file-into-sas/m-p/8749#M373</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-23T15:04:04Z</dc:date>
    </item>
  </channel>
</rss>

