<?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: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51765#M10885</link>
    <description>Tim, &lt;BR /&gt;
&lt;BR /&gt;
If I replace the single quote with double quotes I get this error...&lt;BR /&gt;
&lt;BR /&gt;
235  proc import datafile = "C:\&amp;amp;expfile." out=work.fields_tmp1;&lt;BR /&gt;
ERROR: Unable to determine datasource type.  Please use the DBMS= option.&lt;BR /&gt;
&lt;BR /&gt;
What is the best method to output the content of a variable to the log just to see what's in it?&lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
    <pubDate>Thu, 04 Feb 2010 10:14:24 GMT</pubDate>
    <dc:creator>LeeJenson</dc:creator>
    <dc:date>2010-02-04T10:14:24Z</dc:date>
    <item>
      <title>ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51762#M10882</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to collect a file name from a field but the variable does &lt;BR /&gt;
not seem to get translated. My source dataset only has one record in &lt;BR /&gt;
so should pick it up ok. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql; &lt;BR /&gt;
select name into :expfile &lt;BR /&gt;
from exportfilec; &lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc import datafile = 'c:\&amp;amp;expfile.' out=work.fields_tmp1; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
99   proc import datafile = 'c:\&amp;amp;expfile.' out=work.fields_tmp1; &lt;BR /&gt;
100  run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Unable to import, file c:\&amp;amp;expfile.XLS does not exist</description>
      <pubDate>Wed, 03 Feb 2010 20:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51762#M10882</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-03T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51763#M10883</link>
      <description>Macro variables aren't expanded when they're within apostrophes. Use quotes instead:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc import datafile = "c:\&amp;amp;expfile." out=work.fields_tmp1; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 03 Feb 2010 21:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51763#M10883</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2010-02-03T21:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51764#M10884</link>
      <description>Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 03 Feb 2010 21:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51764#M10884</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-03T21:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51765#M10885</link>
      <description>Tim, &lt;BR /&gt;
&lt;BR /&gt;
If I replace the single quote with double quotes I get this error...&lt;BR /&gt;
&lt;BR /&gt;
235  proc import datafile = "C:\&amp;amp;expfile." out=work.fields_tmp1;&lt;BR /&gt;
ERROR: Unable to determine datasource type.  Please use the DBMS= option.&lt;BR /&gt;
&lt;BR /&gt;
What is the best method to output the content of a variable to the log just to see what's in it?&lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
      <pubDate>Thu, 04 Feb 2010 10:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51765#M10885</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-04T10:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51766#M10886</link>
      <description>&lt;B&gt;options symbolgen;&lt;/B&gt; would help you.&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 04 Feb 2010 12:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51766#M10886</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2010-02-04T12:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51767#M10887</link>
      <description>Suggest you use the options statement below:&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS SOURCE SOURCE2 MACROGEN SYMBOLGEN MPRINT;&lt;BR /&gt;
&lt;BR /&gt;
...and sometimes...&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS MLOGIC;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 04 Feb 2010 12:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51767#M10887</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-04T12:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Unable to import, file c:\&amp;expfile.XLS does not exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51768#M10888</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
These options allowed me to troubleshoot the problem and it was because I was not specifying DBMS=CSV. &lt;BR /&gt;
&lt;BR /&gt;
Thanks again &lt;BR /&gt;
:-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-)&lt;BR /&gt;
Lee</description>
      <pubDate>Thu, 04 Feb 2010 17:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Unable-to-import-file-c-expfile-XLS-does-not-exist/m-p/51768#M10888</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-04T17:18:15Z</dc:date>
    </item>
  </channel>
</rss>

