<?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: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426974#M105255</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;I tried both of your suggestions, and I still get the same error.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 19:29:51 GMT</pubDate>
    <dc:creator>vince_ott</dc:creator>
    <dc:date>2018-01-11T19:29:51Z</dc:date>
    <item>
      <title>Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426915#M105227</link>
      <description>&lt;P&gt;I am trying to import multiple EXCEL files that are loaded into a shared directory on SAS server.&amp;nbsp; I am using EG 7.13 HF6 (32-BIT)&lt;/P&gt;&lt;P&gt;The dataset "files" created and holds all correct excel file names, all the SYMBOLGEN in log file looks correct and the MCARO compiled ok.&amp;nbsp; However,&amp;nbsp;when I called it, the datafile has one extra slash created in the path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried many approached from previous posts and still not working.&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename dirlist pipe 'dir "/shared/MCL_Team/MCL_1117/"';  

data files (drop=dotpos len);
	length fname $150 outname $150;	
	infile dirlist truncover length= reclen;
		input fname $varying150. reclen;
		fname =strip(fname);
		fname =tranwrd(fname, "\", " ");
		fname =tranwrd(fname, "  ", " ");
		outname = tranwrd(outname, "-", "_");
		outname = tranwrd(outname, "&amp;amp;", "_");
		outname = compress(outname);
	put fname;
	put outname;

	dotpos =find(outname,'.', 1);
	outname = substr(outname, 1, dotpos-1);
	len = length(outname);

	if len &amp;gt; 32 then outname = substr(outname, 1, 32);
run;

data _null_;
	set files nobs= nobs;
		call symput('nfile', nobs);
		stop;
run;

%macro fileinput;
	%local i;
	%do i= 1 %to &amp;amp;nfile;

		data _null_;
			set files(firstobs= &amp;amp;i obs= &amp;amp;i);
				call symput('fpath', "/SHARED/MCL_Team/MCL_1117/" || fname);
				call symput('foutname', outname);
		run;

		proc import datafile="&amp;amp;fpath"
			dbms=xlsx  out=&amp;amp;foutname replace;
			range="Sheet1$A1:H518";
			sheet='Sheet1';
			getnames=yes;
		run;
	%end;
%mend;
options symbolgen mprint;

%fileinput;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 16:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426915#M105227</guid>
      <dc:creator>vince_ott</dc:creator>
      <dc:date>2018-01-11T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426918#M105228</link>
      <description>Posting log with symbolgen, mprint and mlogic active could be useful to debug the macro. We can't see what's in the dataset or variables.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2018 16:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426918#M105228</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-01-11T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426927#M105234</link>
      <description>&lt;P&gt;Just a guess, really ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible the functions you apply to get FNAME are in the wrong order.&amp;nbsp; STRIP should be the last of the three.&amp;nbsp; The reason:&amp;nbsp; A leading "\" will become a leading blank.&amp;nbsp; And STRIP should get rid of that leading blank, by being the last function applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;**** EDITED:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;And a second guess, just to rule out the possibility of this causing a problem:&amp;nbsp; You can see there are extra blanks at the end of &amp;amp;FPATH.&amp;nbsp; They appear on the log before the closing double-quote.&amp;nbsp; Get rid of those extra trailing blanks with:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="courier new,courier"&gt;call &lt;SPAN class="token function"&gt;symput&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'fpath'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"/SHARED/MCL_Team/MCL_1117/"&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;||&lt;/SPAN&gt; &lt;FONT color="#000000"&gt;trim(&lt;/FONT&gt;fname)&lt;FONT color="#000000"&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 19:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426927#M105234</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-11T19:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426962#M105251</link>
      <description>&lt;P&gt;This is the log file.. some information&amp;nbsp;were&amp;nbsp;replaced by letters to protect privacy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 The SAS System 09:39 Thursday, January 11, 2018&lt;/P&gt;&lt;P&gt;1 ;*';*";*/;quit;run;&lt;/P&gt;&lt;P&gt;2 OPTIONS PAGENO=MIN;&lt;/P&gt;&lt;P&gt;3 %LET _CLIENTTASKLABEL='Import_multiple_excel_incomplete';&lt;/P&gt;&lt;P&gt;4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';&lt;/P&gt;&lt;P&gt;5 %LET _CLIENTPROJECTPATH='';&lt;/P&gt;&lt;P&gt;6 %LET _CLIENTPROJECTPATHHOST='';&lt;/P&gt;&lt;P&gt;7 %LET _CLIENTPROJECTNAME='';&lt;/P&gt;&lt;P&gt;8 %LET _SASPROGRAMFILE='U:\SAS Project\Import_multiple_excel_incomplete.sas';&lt;/P&gt;&lt;P&gt;9 %LET _SASPROGRAMFILEHOST='ABC101845';&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;11 ODS _ALL_ CLOSE;&lt;/P&gt;&lt;P&gt;12 OPTIONS DEV=ACTIVEX;&lt;/P&gt;&lt;P&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;/P&gt;&lt;P&gt;14 FILENAME EGSR TEMP;&lt;/P&gt;&lt;P&gt;15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR&lt;/P&gt;&lt;P&gt;16 STYLE=HtmlBlue&lt;/P&gt;&lt;P&gt;17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")&lt;/P&gt;&lt;P&gt;18 NOGTITLE&lt;/P&gt;&lt;P&gt;19 NOGFOOTNOTE&lt;/P&gt;&lt;P&gt;20 GPATH=&amp;amp;sasworklocation&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable SASWORKLOCATION resolves to&lt;/P&gt;&lt;P&gt;"/saswork/xxxx/SAS_work8FE60000749D_sas-0001619/SAS_workE77A0000749D_sas-0001619/"&lt;/P&gt;&lt;P&gt;21 ENCODING=UTF8&lt;/P&gt;&lt;P&gt;22 options(rolap="on")&lt;/P&gt;&lt;P&gt;23 ;&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;/P&gt;&lt;P&gt;24&lt;/P&gt;&lt;P&gt;25 GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;26 filename dirlist pipe 'dir "/shared/MCL_Team/MCL_1117/"' /*/b'*/;&lt;/P&gt;&lt;P&gt;27&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;28 data files (drop=dotpos len);&lt;/P&gt;&lt;P&gt;29 length fname $150 outname $150;&lt;/P&gt;&lt;P&gt;30 infile dirlist truncover length= reclen;&lt;/P&gt;&lt;P&gt;31 input fname $varying150. reclen;&lt;/P&gt;&lt;P&gt;32 fname =strip(fname);&lt;/P&gt;&lt;P&gt;33 fname =tranwrd(fname, "\", " ");&lt;/P&gt;&lt;P&gt;34 fname =tranwrd(fname, " ", " ");&lt;/P&gt;&lt;P&gt;35 outname = tranwrd(fname, " Clarification required", " ");&lt;/P&gt;&lt;P&gt;36 outname = tranwrd(outname, "MCL-", " ");&lt;/P&gt;&lt;P&gt;37 outname = tranwrd(outname, "MCL - ", " ");&lt;/P&gt;&lt;P&gt;38 outname = tranwrd(outname, "MCL ", "");&lt;/P&gt;&lt;P&gt;39 outname = tranwrd(outname, " 2017-10", " ");&lt;/P&gt;&lt;P&gt;40 outname = tranwrd(outname, " 2017", " ");&lt;/P&gt;&lt;P&gt;41 outname = tranwrd(outname, "-", "_");&lt;/P&gt;&lt;P&gt;42 outname = tranwrd(outname, "&amp;amp;", "_");&lt;/P&gt;&lt;P&gt;43 outname = compress(outname);&lt;/P&gt;&lt;P&gt;44 put fname;&lt;/P&gt;&lt;P&gt;45 put outname;&lt;/P&gt;&lt;P&gt;46&lt;/P&gt;&lt;P&gt;47 dotpos =find(outname,'.', 1);&lt;/P&gt;&lt;P&gt;48 outname = substr(outname, 1, dotpos-1);&lt;/P&gt;&lt;P&gt;49 len = length(outname);&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;51 if len &amp;gt; 32 then outname = substr(outname, 1, 32);&lt;/P&gt;&lt;P&gt;52 run;&lt;/P&gt;&lt;P&gt;2 The SAS System 09:39 Thursday, January 11, 2018&lt;/P&gt;&lt;P&gt;NOTE: The infile DIRLIST is:&lt;/P&gt;&lt;P&gt;Pipe command="dir "/shared/MCL_Team/MCL_1117/""&lt;/P&gt;&lt;P&gt;MCL-AAAA.xlsx&lt;/P&gt;&lt;P&gt;AAAA.xlsx&lt;/P&gt;&lt;P&gt;MCL-BB.xlsx&lt;/P&gt;&lt;P&gt;BB.xlsx&lt;/P&gt;&lt;P&gt;MCL-CCCCCC.xlsx&lt;/P&gt;&lt;P&gt;CCCCCC.xlsx&lt;/P&gt;&lt;P&gt;MCL DDDDD.xlsx&lt;/P&gt;&lt;P&gt;DDDDD.xlsx&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: 24 records were read from the infile DIRLIST.&lt;/P&gt;&lt;P&gt;The minimum record length was 27.&lt;/P&gt;&lt;P&gt;The maximum record length was 68.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.FILES has 24 observations and 2 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.04 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.06 seconds&lt;/P&gt;&lt;P&gt;3 The SAS System 09:39 Thursday, January 11, 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;53&lt;/P&gt;&lt;P&gt;54 data _null_;&lt;/P&gt;&lt;P&gt;55 set files nobs= nobs;&lt;/P&gt;&lt;P&gt;56 call symput('nfile', nobs);&lt;/P&gt;&lt;P&gt;57 stop;&lt;/P&gt;&lt;P&gt;58 run;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/P&gt;&lt;P&gt;56:24&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.FILES.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.01 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;59&lt;/P&gt;&lt;P&gt;60 %macro fileinput;&lt;/P&gt;&lt;P&gt;61 %local i;&lt;/P&gt;&lt;P&gt;62 %do i= 1 %to &amp;amp;nfile;&lt;/P&gt;&lt;P&gt;63&lt;/P&gt;&lt;P&gt;64 data _null_;&lt;/P&gt;&lt;P&gt;65 set files(firstobs= &amp;amp;i obs= &amp;amp;i);&lt;/P&gt;&lt;P&gt;66 call symput('fpath', "/SHARED/MCL_Team/MCL_1117/" || fname);&lt;/P&gt;&lt;P&gt;67 call symput('foutname', outname);&lt;/P&gt;&lt;P&gt;68 run;&lt;/P&gt;&lt;P&gt;69&lt;/P&gt;&lt;P&gt;70 proc import datafile="&amp;amp;fpath"&lt;/P&gt;&lt;P&gt;71 dbms=xlsx out=&amp;amp;foutname replace;&lt;/P&gt;&lt;P&gt;72 range="Sheet1$A1:H518";&lt;/P&gt;&lt;P&gt;73 sheet='Sheet1';&lt;/P&gt;&lt;P&gt;74 getnames=yes;&lt;/P&gt;&lt;P&gt;75 run;&lt;/P&gt;&lt;P&gt;76 %end;&lt;/P&gt;&lt;P&gt;77 %mend;&lt;/P&gt;&lt;P&gt;78 options symbolgen mprint;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable NFILE resolves to 24&lt;/P&gt;&lt;P&gt;79&lt;/P&gt;&lt;P&gt;80 %fileinput;&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): data _null_;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): set files(firstobs= 1 obs= 1);&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): call symput('fpath', "/SHARED/MCL_Team/MCL_1117/" || fname);&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): call symput('foutname', outname);&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.FILES.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable FPATH resolves to /SHARED/MCL_Team/MCL_1117/MCL-AAAA.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable FOUTNAME resolves to AAAA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 The SAS System 09:39 Thursday, January 11, 2018&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): proc import datafile="/SHARED/MCL_Team/MCL_1117/MCL-AAAA.xlsx&lt;/P&gt;&lt;P&gt;" dbms=xlsx out=AAAA&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): RXLX;&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): range="Sheet1$A1:H518";&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): sheet='Sheet1';&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): getnames=yes;&lt;/P&gt;&lt;P&gt;MPRINT(FILEINPUT): run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Physical file does not exist, /SHARED/MCL_Team/MCL_1117&lt;FONT color="#0000ff" size="3"&gt;&lt;STRONG&gt;//&lt;/STRONG&gt;&lt;/FONT&gt;MCL-AAAA.xlsx.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.00 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 19:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426962#M105251</guid>
      <dc:creator>vince_ott</dc:creator>
      <dc:date>2018-01-11T19:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426974#M105255</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;I tried both of your suggestions, and I still get the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 19:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/426974#M105255</guid>
      <dc:creator>vince_ott</dc:creator>
      <dc:date>2018-01-11T19:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/659136#M197509</link>
      <description>&lt;P&gt;This is still an unsolved bug.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 20:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/659136#M197509</guid>
      <dc:creator>mvrieze</dc:creator>
      <dc:date>2020-06-15T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extra '/' inserted in datafile directory when calling MACRO to import multiple excel files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/660054#M197614</link>
      <description>&lt;P&gt;As a first step, did you confirm that if you just run the PROC import step (no macro code) it works?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="/SHARED/MCL_Team/MCL_1117/MCL-AAAA.xlsx" dbms=xlsx out=AAAA replace;
  range="Sheet1$A1:H518";
  sheet='Sheet1';
  getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Looks like you're on linux, so case sensitivity of file names/path names is always a potential problem.&lt;/P&gt;
&lt;P&gt;Would also be interesting to see if you find an extra / in the log just submitting that code.&amp;nbsp; If so, it might just be a PROC IMPORT oddity.&amp;nbsp; PROC IMPORT sometimes shows odd statements in the log, like that:&lt;/P&gt;
&lt;PRE&gt;MPRINT(FILEINPUT): RXLX;&lt;/PRE&gt;
&lt;P&gt;you see in the log before the RANGE statement.&amp;nbsp; So it's possible it's adding the slash.&lt;/P&gt;
&lt;P&gt;In general, my understanding is linux will ignore a // in the middle of a path, and treat it the same as /.&amp;nbsp; So the extra slash in the log could be a "red herring".&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 14:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extra-inserted-in-datafile-directory-when-calling-MACRO-to/m-p/660054#M197614</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-06-16T14:46:23Z</dc:date>
    </item>
  </channel>
</rss>

