<?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: File Does Not Exist But It does in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402641#M97809</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138994"&gt;@valentina71&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It's highly likely that someone or some process "locks" your Excel. To test the theory: Manually create a copy of the Excel then run your code against this copy. If that works then the theory is more or less confirmed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for importing 88 same structured Excels: We can certainly help you with this. Are they all in the same directory? Do they follow some naming convention (name of workbook, name of tab in workbook)?&amp;nbsp; ...and what SAS version are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 08:15:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-10-10T08:15:10Z</dc:date>
    <item>
      <title>File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402625#M97800</link>
      <description>&lt;P&gt;Hi SAS-friends,&lt;/P&gt;&lt;P&gt;I need some help if you can...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to import 88 excel files (about diseases and surgery operation).. they all have the same variables..&amp;nbsp; I can do it by manual procedures (file/import/ etc....) but It's too long.&lt;/P&gt;&lt;P&gt;so I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE='C:\Users\savioli\Documents\BELLOMBRA_ANNO_2016_ok.xls'&lt;BR /&gt;DBMS=excel out =sasuser.bellombra_4_trim replace;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but Sas told me:&lt;/P&gt;&lt;P&gt;ERROR: Unable to open file C:\Users\savioli\Documents\BELLOMBRA_ANNO_2016_ok.xls. &lt;STRONG&gt;It does not &amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exist or it is already opened exclusively by another user, or you need permission to &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view its data.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My file is in the same server where I use SAS.&lt;/P&gt;&lt;P&gt;thank you from Italy,&lt;/P&gt;&lt;P&gt;Valentina&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402625#M97800</guid>
      <dc:creator>valentina71</dc:creator>
      <dc:date>2017-10-10T07:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402628#M97802</link>
      <description>Look at the second cause for the error mentioned in the error message: you can't import an Excel file while it is open.</description>
      <pubDate>Tue, 10 Oct 2017 07:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402628#M97802</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-10-10T07:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402631#M97803</link>
      <description>&lt;P&gt;Make sure that no instance of Excel is running while you try the import. If the Excel file resides on a shared resource, this might become tricky, as you need to inform everyone having access to that to make sure that nobody has the file open.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402631#M97803</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-10T07:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402636#M97805</link>
      <description>&lt;P&gt;it's not opened!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402636#M97805</guid>
      <dc:creator>valentina71</dc:creator>
      <dc:date>2017-10-10T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402637#M97806</link>
      <description>I have full rights on that shared resource, like other 3 people</description>
      <pubDate>Tue, 10 Oct 2017 07:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402637#M97806</guid>
      <dc:creator>valentina71</dc:creator>
      <dc:date>2017-10-10T07:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402640#M97808</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138994"&gt;@valentina71&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;it's not opened!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What did you do to verify that?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402640#M97808</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-10T08:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402641#M97809</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138994"&gt;@valentina71&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It's highly likely that someone or some process "locks" your Excel. To test the theory: Manually create a copy of the Excel then run your code against this copy. If that works then the theory is more or less confirmed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for importing 88 same structured Excels: We can certainly help you with this. Are they all in the same directory? Do they follow some naming convention (name of workbook, name of tab in workbook)?&amp;nbsp; ...and what SAS version are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402641#M97809</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-10T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: File Does Not Exist But It does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402648#M97810</link>
      <description>&lt;P&gt;version is 9.3; yes all the files are in the same directory (shared by I have full rights).. no&amp;nbsp;conventions, hospital'sname &amp;amp; mounth in the name of the file...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is the proc import, doesnt' work...&lt;/P&gt;&lt;P&gt;I have only today to import.&lt;/P&gt;&lt;P&gt;Tomorrow I manually import......**bleep**&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/File-Does-Not-Exist-But-It-does/m-p/402648#M97810</guid>
      <dc:creator>valentina71</dc:creator>
      <dc:date>2017-10-10T08:56:54Z</dc:date>
    </item>
  </channel>
</rss>

