<?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: a libname definition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755404#M238386</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have a libname definition as:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't figure out how this libname is defined as this. This libname is not a call to a macro which is already defined.&lt;/P&gt;
&lt;P&gt;In addition to that there is other libnames are defined above this:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref."&lt;/P&gt;
&lt;P&gt;How can we define a libname as above?&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not actually sure what your question is.&lt;/P&gt;
&lt;P&gt;If the macro &lt;STRONG&gt;variable&lt;/STRONG&gt; used as above the library may be created based on system settings. There is a SAS system option DLCREATEDIR that will create directory for a library if it does not already exist, which is set on my system.&lt;/P&gt;
&lt;P&gt;See the log bit below from my system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;167  libname myref "&amp;amp;abc.";
WARNING: Apparent symbolic reference ABC not resolved.
NOTE: Library MYREF was created.
NOTE: Libref MYREF was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\Owner\&amp;amp;abc.
&lt;/PRE&gt;
&lt;P&gt;The macro variable does not exist so there is no name to resolve. Therefor SAS is using the current working directory and created a folder named &amp;amp;abc (which I will delete very soon).&lt;/P&gt;
&lt;P&gt;The working directory may change, read your log.&lt;/P&gt;
&lt;P&gt;If the option is off then there is no library created:&lt;/P&gt;
&lt;PRE&gt;170  options dlcreatedir=off;
171  libname newlib "&amp;amp;pdq.";
WARNING: Apparent symbolic reference PDQ not resolved.
NOTE: Library NEWLIB does not exist.
&lt;/PRE&gt;
&lt;P&gt;Make sure that your macro variable contains a valid path to folder before running the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;Or don't run it at all if the variable isn't defined.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 16:28:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-20T16:28:13Z</dc:date>
    <item>
      <title>a libname definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755402#M238385</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have a libname definition as:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't figure out how this libname is defined as this. This libname is not a call to a macro which is already defined.&lt;/P&gt;
&lt;P&gt;In addition to that there is other libnames are defined above this:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref."&lt;/P&gt;
&lt;P&gt;How can we define a libname as above?&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755402#M238385</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-07-20T16:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: a libname definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755404#M238386</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have a libname definition as:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't figure out how this libname is defined as this. This libname is not a call to a macro which is already defined.&lt;/P&gt;
&lt;P&gt;In addition to that there is other libnames are defined above this:&lt;/P&gt;
&lt;P&gt;libname xabc "&amp;amp;abcref."&lt;/P&gt;
&lt;P&gt;How can we define a libname as above?&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blueblue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not actually sure what your question is.&lt;/P&gt;
&lt;P&gt;If the macro &lt;STRONG&gt;variable&lt;/STRONG&gt; used as above the library may be created based on system settings. There is a SAS system option DLCREATEDIR that will create directory for a library if it does not already exist, which is set on my system.&lt;/P&gt;
&lt;P&gt;See the log bit below from my system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;167  libname myref "&amp;amp;abc.";
WARNING: Apparent symbolic reference ABC not resolved.
NOTE: Library MYREF was created.
NOTE: Libref MYREF was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\Owner\&amp;amp;abc.
&lt;/PRE&gt;
&lt;P&gt;The macro variable does not exist so there is no name to resolve. Therefor SAS is using the current working directory and created a folder named &amp;amp;abc (which I will delete very soon).&lt;/P&gt;
&lt;P&gt;The working directory may change, read your log.&lt;/P&gt;
&lt;P&gt;If the option is off then there is no library created:&lt;/P&gt;
&lt;PRE&gt;170  options dlcreatedir=off;
171  libname newlib "&amp;amp;pdq.";
WARNING: Apparent symbolic reference PDQ not resolved.
NOTE: Library NEWLIB does not exist.
&lt;/PRE&gt;
&lt;P&gt;Make sure that your macro variable contains a valid path to folder before running the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;Or don't run it at all if the variable isn't defined.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755404#M238386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-20T16:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: a libname definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755488#M238413</link>
      <description>&lt;P&gt;There is at least two things wrong with this statement -libname xabc "&amp;amp;abcref.&lt;/P&gt;
&lt;P&gt;Here is the same statement with the missing syntax (double quote and semicolon) added:&amp;nbsp;&lt;SPAN&gt;libname xabc "&amp;amp;abcref.&lt;STRONG&gt;";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You also need to the macro variable&amp;nbsp;&amp;amp;abcref defined somewhere, possibly like this: %let&amp;nbsp;abcref = &amp;lt;a valid folder path&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And respectfully you should be looking at the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/n1nk65k2vsfmxfn1wu17fntzszbp.htm" target="_blank" rel="noopener"&gt;LIBNAME&lt;/A&gt;&amp;nbsp;documentation to confirm if you have the correct syntax or not.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 21:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755488#M238413</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-20T21:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: a libname definition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755511#M238427</link>
      <description>&lt;P&gt;In addition to the error pointed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;, the macro abcref needs to be defined prior to being called.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 00:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-libname-definition/m-p/755511#M238427</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-07-21T00:19:22Z</dc:date>
    </item>
  </channel>
</rss>

