<?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: Libname Not Resolving Using Enterprise Guide Prompt in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417459#M26882</link>
    <description>&lt;P&gt;I tried your code, and it worked fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suspicion is that there's an unprintable character in your macro variable contents somewhere, I would suspect right after the initial double quote from what your log is saying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 16:07:02 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2017-11-30T16:07:02Z</dc:date>
    <item>
      <title>Libname Not Resolving Using Enterprise Guide Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417449#M26881</link>
      <description>&lt;P&gt;I am submitting the following code using a prompt in Enterprise Guide 7.13 HF5 being sent to process on a Solaris 64-bit 9.4M2 Unix SAS server:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;libby;&lt;/P&gt;
&lt;P&gt;libname pully &amp;amp;libby;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prompt appears to be resolving for the put statement but something weird is happening for the libname statement giving me the following log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;39 &lt;BR /&gt;40 %put &amp;amp;libby;&lt;BR /&gt;"/sas/data/research/Retirement/Permanent Datasets/"&lt;BR /&gt;41 &lt;BR /&gt;42 libname pully &amp;amp;libby;&lt;BR /&gt;ERROR: Libref in LIBNAME statement must be followed either by quoted string or engine name or semicolon; """ found.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone explain why this is not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Shaun&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417449#M26881</guid>
      <dc:creator>ICI_SAS_Admins</dc:creator>
      <dc:date>2017-11-30T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Not Resolving Using Enterprise Guide Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417459#M26882</link>
      <description>&lt;P&gt;I tried your code, and it worked fine for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suspicion is that there's an unprintable character in your macro variable contents somewhere, I would suspect right after the initial double quote from what your log is saying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 16:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417459#M26882</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-11-30T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Libname Not Resolving Using Enterprise Guide Prompt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417520#M26886</link>
      <description>&lt;P&gt;Thank you for the suggestions.&amp;nbsp; They led me to the answer as found in another posting&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Quotes-in-Macro-Parameter-Generated-by-EG-Prompt/td-p/394370" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Syntax-Error-Quotes-in-Macro-Parameter-Generated-by-EG-Prompt/td-p/394370&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution was to add the %unquote to the code as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;libby;&lt;/P&gt;
&lt;P&gt;libname pully %unquote(&amp;amp;libby);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is apparently due to Enterprise Guide adding something to the prompt as can be seen in another line of the log that I missed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;10 %LET libby = %nrstr(%")/sas/data/research/Retirement/Permanent Datasets/%nrstr(%");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 19:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Libname-Not-Resolving-Using-Enterprise-Guide-Prompt/m-p/417520#M26886</guid>
      <dc:creator>ICI_SAS_Admins</dc:creator>
      <dc:date>2017-11-30T19:00:15Z</dc:date>
    </item>
  </channel>
</rss>

