<?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: can you reference a macro variable in libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44725#M9170</link>
    <description>I mean this works under sas/windows, but not working with sas UNIX</description>
    <pubDate>Tue, 05 Apr 2011 20:17:32 GMT</pubDate>
    <dc:creator>siliconcreature</dc:creator>
    <dc:date>2011-04-05T20:17:32Z</dc:date>
    <item>
      <title>can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44724#M9169</link>
      <description>Hi there, &lt;BR /&gt;
&lt;BR /&gt;
can you make this code work?&lt;BR /&gt;
&lt;BR /&gt;
%let dir = "C:\";&lt;BR /&gt;
libname c &amp;amp;dir;</description>
      <pubDate>Tue, 05 Apr 2011 20:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44724#M9169</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-05T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44725#M9170</link>
      <description>I mean this works under sas/windows, but not working with sas UNIX</description>
      <pubDate>Tue, 05 Apr 2011 20:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44725#M9170</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-05T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44726#M9171</link>
      <description>I haven't used UNIX in years (and never for SAS) but I thought UNIX uses the forward slash '/' for pathnames while the default in windows is the backslash( though it will accept the forward slash as valid) so try switching it in your program.</description>
      <pubDate>Tue, 05 Apr 2011 20:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44726#M9171</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2011-04-05T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44727#M9172</link>
      <description>Are you perhaps trying to get your unix server based sas to see a directory on your local windows machine?  I don't think that will work unless the sas server can "see" your local machine.  There are some technologies that can let that happen, but the path would not be "c:\", it would be however your local drive was mounted to the unix server.</description>
      <pubDate>Tue, 05 Apr 2011 20:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44727#M9172</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-04-05T20:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44728#M9173</link>
      <description>How about:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let dir = C:\;&lt;BR /&gt;
libname c "&amp;amp;dir"; &lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 06 Apr 2011 10:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44728#M9173</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-06T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44729#M9174</link>
      <description>How about:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let dir = C:\;&lt;BR /&gt;
libname c "&amp;amp;dir"; &lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 06 Apr 2011 10:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44729#M9174</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-06T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44730#M9175</link>
      <description>your way is working, thank you.</description>
      <pubDate>Thu, 07 Apr 2011 14:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44730#M9175</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-07T14:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: can you reference a macro variable in libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44731#M9176</link>
      <description>Yeah, don't use the double quotes.  With the double quotes around it, the %let stores them (along with the good stuff inside) in the symbol table...&lt;BR /&gt;
&lt;BR /&gt;
15   %let dir = "C:\";&lt;BR /&gt;
16   %put &amp;amp;dir;&lt;BR /&gt;
"C:\"</description>
      <pubDate>Thu, 02 Jun 2011 15:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-you-reference-a-macro-variable-in-libname/m-p/44731#M9176</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2011-06-02T15:13:12Z</dc:date>
    </item>
  </channel>
</rss>

