<?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 Impoting EXCEL file using a library from a server. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497467#M131861</link>
    <description>&lt;P&gt;I am trying to upload an excel file that is located in the Input folder on a server. For some reason though, every time I try to import it, it remaps the path to the Prog folder instead. Any help is greatly appreciated. Thank you!&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; %let input1=&amp;amp;root\data\Input;&lt;BR /&gt;92&amp;nbsp;&amp;nbsp; %put input1=&amp;amp;input1;&lt;BR /&gt;input1=\\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\data\Input&lt;BR /&gt;93&amp;nbsp;&amp;nbsp; libname input1 "&amp;amp;input1";&lt;BR /&gt;NOTE: Libref INPUT1 was successfully assigned as follows:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; V9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Name: \\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\data\Input&lt;BR /&gt;&lt;BR /&gt;94&amp;nbsp;&amp;nbsp; proc import out=input1.PP datafile='E\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx' dbms=xlsx replace;&lt;BR /&gt;95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames=yes;&lt;BR /&gt;96&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, \\server.xx.com\E\Project Work\Full Service\YY\STAT\Prog\E\Project Work\Full Service\YY\STAT\Data\Input\PP.xlsx.&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.17 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.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 17:09:16 GMT</pubDate>
    <dc:creator>kmardinian</dc:creator>
    <dc:date>2018-09-20T17:09:16Z</dc:date>
    <item>
      <title>Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497467#M131861</link>
      <description>&lt;P&gt;I am trying to upload an excel file that is located in the Input folder on a server. For some reason though, every time I try to import it, it remaps the path to the Prog folder instead. Any help is greatly appreciated. Thank you!&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; %let input1=&amp;amp;root\data\Input;&lt;BR /&gt;92&amp;nbsp;&amp;nbsp; %put input1=&amp;amp;input1;&lt;BR /&gt;input1=\\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\data\Input&lt;BR /&gt;93&amp;nbsp;&amp;nbsp; libname input1 "&amp;amp;input1";&lt;BR /&gt;NOTE: Libref INPUT1 was successfully assigned as follows:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; V9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Name: \\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\data\Input&lt;BR /&gt;&lt;BR /&gt;94&amp;nbsp;&amp;nbsp; proc import out=input1.PP datafile='E\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx' dbms=xlsx replace;&lt;BR /&gt;95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames=yes;&lt;BR /&gt;96&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, \\server.xx.com\E\Project Work\Full Service\YY\STAT\Prog\E\Project Work\Full Service\YY\STAT\Data\Input\PP.xlsx.&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.17 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.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497467#M131861</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-20T17:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497471#M131863</link>
      <description>&lt;P&gt;Since you gave a&amp;nbsp;&lt;EM&gt;relative&lt;/EM&gt; path for the datafile, SAS started to look in the current working directory of the SAS process, which seems to be&amp;nbsp;&lt;SPAN&gt;\\server.xx.com\E\Project Work\Full Service\YY\STAT\Prog&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497471#M131863</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-20T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497475#M131866</link>
      <description>&lt;P&gt;If the file you are referencing is supposed to be on YOUR E drive then perhaps instead of&lt;/P&gt;
&lt;PRE&gt;proc import out=input1.PP datafile='E\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx' &lt;/PRE&gt;
&lt;P&gt;you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc import out=input1.PP datafile='E&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;:&lt;/FONT&gt;&lt;/STRONG&gt;\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx' &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are working in a server environment the path to the XLSX file has to be from the server perspective and it may not have a drive E.&lt;/P&gt;
&lt;P&gt;If you aren't working with a SAS server then I would navigate to the location in Windows Explorer or similar drive navigation tool and ensure that the complete path is as you have. In windows explorer I usually click on the "path" section and copy/paste into the SAS editor to get the exact path seen from my computer.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497475#M131866</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-20T17:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497557#M131902</link>
      <description>&lt;P&gt;Hi, thanks for your help! So the server does have the E drive in it. I tried running it with the code you showed me, but it still doesn't seem to be finding the file even though now the path is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;78&amp;nbsp;&amp;nbsp; libname input1 "&amp;amp;root\data\Input";&lt;BR /&gt;NOTE: Libref INPUT1 was successfully assigned as follows:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; V9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Name: \\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\BLINDED\TFL\data\Input&lt;BR /&gt;79&lt;BR /&gt;80&lt;BR /&gt;81&amp;nbsp;&amp;nbsp; proc import out=input1.PP datafile='E:\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx' dbms=xlsx replace;&lt;BR /&gt;82&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames=yes;&lt;BR /&gt;83&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, E:\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx.&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.08 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.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 20:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497557#M131902</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-20T20:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497682#M132000</link>
      <description>&lt;P&gt;When SAS tells you the file is not there, then it is not there, period.&lt;/P&gt;
&lt;P&gt;Log on to the server and navigate to that path, and inspect its contents.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 05:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497682#M132000</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-21T05:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497857#M132119</link>
      <description>&lt;P&gt;The file is there, I have checked multiple times. I am just not sure whether SAS knows to look for an excel file.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 15:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497857#M132119</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-21T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497916#M132157</link>
      <description>&lt;P&gt;Read my post again. IT'S.NOT.THERE. At least not where SAS is looking. Keep in mind that a local path on your desktop is most probably invisible to the server.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497916#M132157</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-21T17:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497937#M132169</link>
      <description>&lt;P&gt;The line of code works perfectly fine for others that are connected to the server the same way that I am.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497937#M132169</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2018-09-21T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497946#M132174</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139341"&gt;@kmardinian&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The line of code works perfectly fine for others that are connected to the server the same way that I am.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then look at the differences between the users involved. There&amp;nbsp;&lt;U&gt;is&lt;/U&gt; one. Different permissions, different login scripts, network shares not or differently mounted, ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When SAS says the file ain't there, it ain't there (for the SAS process to access). What I tell you three times is the truth.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497946#M132174</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-21T18:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Impoting EXCEL file using a library from a server.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497958#M132183</link>
      <description>&lt;P&gt;So your first step shows that this directory exists:&lt;/P&gt;
&lt;PRE&gt; \\SERVER.XX.COM\E\PROJECT WORK\FULL SERVICE\YY\STAT\BLINDED\TFL\data\Input&lt;/PRE&gt;
&lt;P&gt;Your second step shows that this file does NOT exist.&lt;/P&gt;
&lt;PRE&gt;                E:\Project Work\Full Service\YY\STAT\Blinded\TFL\Data\Input\PP.xlsx&lt;/PRE&gt;
&lt;P&gt;Can you see the differences?&lt;/P&gt;
&lt;P&gt;Assuming that case doesn't matter&amp;nbsp;you could&amp;nbsp;try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datafile="&amp;amp;root\data\Input\PP.xlsx"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 19:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Impoting-EXCEL-file-using-a-library-from-a-server/m-p/497958#M132183</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-21T19:03:59Z</dc:date>
    </item>
  </channel>
</rss>

