<?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: Unable to import Excel file - Two slashes error // in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390349#M25235</link>
    <description>&lt;P&gt;I am not sure, as this is a colleague's work. &amp;nbsp;I was assuming the first statement would bring the file into the sasusers folder. &amp;nbsp;I ended up using the import wizard and importing the file directly, rather than making it two steps. &amp;nbsp;That worked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 17:19:04 GMT</pubDate>
    <dc:creator>ThunderOne</dc:creator>
    <dc:date>2017-08-23T17:19:04Z</dc:date>
    <item>
      <title>Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390333#M25233</link>
      <description>&lt;P&gt;Unable to import an excel file through EG... here is the code (removed various parts for security). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log shows an additional slash being added... not sure how to fix (SAS EG 7.13):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%Let Upload = /sasdata/users/jondoe1/;&lt;BR /&gt;%Let Path_In = \\Client\S$S:\DA_work_files\filename.xlsx;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*Run Copy Task to Copy to Out network*/&lt;/P&gt;&lt;P&gt;Proc Import Out=jondoe1_Lib.list&lt;/P&gt;&lt;P&gt;Datafile='//sasdata/users/jondoe1/filename.xlsx'&lt;/P&gt;&lt;P&gt;dbms=xlsx replace;&lt;/P&gt;&lt;P&gt;Sheet='List';&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macros run fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, //sasdata/users/jondoe1&lt;U&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;//&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt;filename.xlsx.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390333#M25233</guid>
      <dc:creator>ThunderOne</dc:creator>
      <dc:date>2017-08-23T16:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390341#M25234</link>
      <description>&lt;P&gt;The extra slashes aren't the issue. Is your XLSX file on the server?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390341#M25234</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-23T16:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390349#M25235</link>
      <description>&lt;P&gt;I am not sure, as this is a colleague's work. &amp;nbsp;I was assuming the first statement would bring the file into the sasusers folder. &amp;nbsp;I ended up using the import wizard and importing the file directly, rather than making it two steps. &amp;nbsp;That worked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 17:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390349#M25235</guid>
      <dc:creator>ThunderOne</dc:creator>
      <dc:date>2017-08-23T17:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390360#M25236</link>
      <description>&lt;P&gt;Yeah, I think you're running into the 'server' vs 'desktop' issue. the file is on your local drive and you can't access it until its on the server. The GUI doesn't have the same restriction.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this is super annoying.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 17:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390360#M25236</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-23T17:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390473#M25237</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Actually the two slashes at the beginning of the path indicate that this is a UNC path so depending on the site specific topology such a path could work from both client and server side.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;//&lt;/FONT&gt;&lt;/STRONG&gt;sasdata/users&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure why you believe the two slashes in the middle of the pathname aren't an issue. I believe they are.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;//sasdata/users/jondoe1&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;FONT size="4"&gt;//&lt;/FONT&gt;&lt;/U&gt;&lt;/FONT&gt;filename.xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109590"&gt;@ThunderOne&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The code you've posted doesn't show it but&amp;nbsp;eventually remove the last slash in below command line.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%Let Upload = /sasdata/users/jondoe1&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;/&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 00:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390473#M25237</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-24T00:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390478#M25238</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;I don't know why it's not an issue, but I know that it is. SAS frequently does this and if you include 2 it works fine as well. See code and log below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I *think* it might be the local vs server&amp;nbsp;issue because in the middle of the path is S:\ -&amp;gt; Looks like a drive mapping, but I could definitely be wrong there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;%Let Upload = /sasdata/users/jondoe1/;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%Let Path_In = \\Client\S$&lt;STRONG&gt;S:\&lt;/STRONG&gt;DA_work_files\filename.xlsx;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=want datafile='/folders/myfolders//output.csv' dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;60 /**********************************************************************&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;61 * PRODUCT: SAS&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;62 * VERSION: 9.4&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;63 * CREATOR: External File Interface&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;64 * DATE: 24AUG17&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;65 * DESC: Generated SAS Datastep Code&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;66 * TEMPLATE SOURCE: (None Specified.)&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;67 ***********************************************************************/&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;68 data WORK.WANT ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;69 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;70 infile '/folders/myfolders//output.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;71 informat _____Alfred $7. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72 informat M $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 informat _14 best32. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 informat VAR4 $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 informat _112_5 best32. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 informat VAR6 $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 informat _69 best32. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 format _____Alfred $7. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 format M $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;80 format _14 best12. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;81 format VAR4 $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;82 format _112_5 best12. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;83 format VAR6 $1. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;84 format _69 best12. ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;85 input&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;86 _____Alfred $&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;87 M $&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;88 _14&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;89 VAR4 $&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;90 _112_5&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;91 VAR6 $&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;92 _69&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;93 ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;94 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;95 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1503538492958" class="sasNote"&gt;NOTE: The infile '/folders/myfolders//output.csv' is:&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Filename=/folders/myfolders//output.csv,&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Owner Name=UNKNOWN,Group Name=games,&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Access Permission=-rw-r--r--,&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Last Modified=June 21, 2017 21:27:47 o'clock,&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;File Size (bytes)=1440&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1503538492958" class="sasNote"&gt;NOTE: 18 records were read from the infile '/folders/myfolders//output.csv'.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;The minimum record length was 73.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;The maximum record length was 77.&lt;/DIV&gt;
&lt;DIV id="sasLogNote3_1503538492958" class="sasNote"&gt;NOTE: The data set WORK.WANT has 18 observations and 7 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1503538492958" class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2017 01:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390478#M25238</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-24T01:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390502#M25239</link>
      <description>&lt;P&gt;ERROR: Physical file does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reasons:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Path of the file is mispelled&lt;/LI&gt;&lt;LI&gt;Directory and subdirectory is missing&lt;/LI&gt;&lt;LI&gt;Permission issue&lt;/LI&gt;&lt;LI&gt;Server issue&lt;/LI&gt;&lt;LI&gt;You do not follow the nomenclature of the file name&lt;/LI&gt;&lt;LI&gt;drive is not mapped into correct location&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 24 Aug 2017 06:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/390502#M25239</guid>
      <dc:creator>DazyParker</dc:creator>
      <dc:date>2017-08-24T06:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/548434#M33365</link>
      <description>&lt;P&gt;I just encountered this double-slash issue myself, and the root of the problem was that the file to import was open. Once I closed the file, the proc import worked fine.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 08:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/548434#M33365</guid>
      <dc:creator>Bilbottom</dc:creator>
      <dc:date>2019-04-04T08:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/817821#M40840</link>
      <description>Thank you. I was having a similar problem today. I did not get an error that the file was not imported, but I was getting the double slash. This should be listed as the answer.</description>
      <pubDate>Mon, 13 Jun 2022 15:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/817821#M40840</guid>
      <dc:creator>DGBK</dc:creator>
      <dc:date>2022-06-13T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Excel file - Two slashes error //</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/817824#M40841</link>
      <description>&lt;P&gt;The extra / in the error message is a BUG in the error report code of PROC IMPORT.&amp;nbsp; It does that for XLSX engine, but not for the CSV engine.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='~/nosuchfile' out=want dbms=xlsx;
run;
proc import datafile='~/nosuchfile' out=want dbms=csv;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;PRE&gt; 69         proc import datafile='~/nosuchfile' out=want dbms=xlsx;
 70         run;
 
 ERROR: Physical file does not exist, /home/user1//nosuchfile.


  
 71         proc import datafile='~/nosuchfile' out=want dbms=csv;
 72         run;
 
 ERROR: Physical file does not exist, /home/user1/nosuchfile.        
 &lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2022 15:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-import-Excel-file-Two-slashes-error/m-p/817824#M40841</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-13T15:30:04Z</dc:date>
    </item>
  </channel>
</rss>

