<?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: Empty libname reference in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681457#M206125</link>
    <description>Well, actually it is NOT portable. Run as it, it bounced back saying the libref is not defined. If portable, it should have allowed through to my current work directory. I therefore think there was some specific setup back then. Not problem. I changed to explicit library location. Thanks. Jia</description>
    <pubDate>Thu, 03 Sep 2020 18:34:50 GMT</pubDate>
    <dc:creator>fierceanalytics</dc:creator>
    <dc:date>2020-09-03T18:34:50Z</dc:date>
    <item>
      <title>Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681432#M206114</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inherited such code:&lt;/P&gt;&lt;P&gt;/**************************************/&lt;/P&gt;&lt;P&gt;Libname yy2 '&amp;nbsp; ';&amp;nbsp; /*nothing between the two quotes*/&lt;/P&gt;&lt;P&gt;data yy2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set ......;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/**************************************/&lt;/P&gt;&lt;P&gt;Rerunning the code is fine, but YY2 shows up empty. Any idea what is going on? I know libname statement can be used in all kinds of fancy way, but EMPTY? The admin and the initial author of the code had some tacit agreement in CFG.... I would like to hear some thoughts to see if this is by design some built in SAS syntax before I chase down somebody. Thanks. Jia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 17:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681432#M206114</guid>
      <dc:creator>fierceanalytics</dc:creator>
      <dc:date>2020-09-03T17:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681436#M206115</link>
      <description>&lt;P&gt;It is a good way to figure out what the current working directory is for your SAS session, but I would use a period instead of space in the quotes since that is normal syntax for current directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely the code is designed to be run from the command prompt.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cd myprojectdir
sas myprogram&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 17:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681436#M206115</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-03T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681438#M206117</link>
      <description>&lt;P&gt;Run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname yy2 list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to see where this points. It should be the current working directory of the SAS process, which is in sasconf/Lev1/SASApp in the default configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 17:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681438#M206117</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-03T17:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681453#M206122</link>
      <description>See. So it is just naming the temp work directory. No wonder there is nothing there. Thanks. Jia</description>
      <pubDate>Thu, 03 Sep 2020 18:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681453#M206122</guid>
      <dc:creator>fierceanalytics</dc:creator>
      <dc:date>2020-09-03T18:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681454#M206123</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342595"&gt;@fierceanalytics&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;See. So it is just naming the temp work directory. No wonder there is nothing there. Thanks. Jia&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nope.&amp;nbsp; It is making a libref that points to the current directory. Useful for portable code.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 18:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681454#M206123</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-03T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681457#M206125</link>
      <description>Well, actually it is NOT portable. Run as it, it bounced back saying the libref is not defined. If portable, it should have allowed through to my current work directory. I therefore think there was some specific setup back then. Not problem. I changed to explicit library location. Thanks. Jia</description>
      <pubDate>Thu, 03 Sep 2020 18:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681457#M206125</guid>
      <dc:creator>fierceanalytics</dc:creator>
      <dc:date>2020-09-03T18:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Empty libname reference</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681544#M206156</link>
      <description>&lt;P&gt;Not sure what operating system you are using but that syntax works fine on Windows and Unix.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1  %put &amp;amp;=sysvlong &amp;amp;=sysscp;
SYSVLONG=9.04.01M5P091317 SYSSCP=WIN
2  libname here ' ';
NOTE: Libref HERE was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\.......

1   %put &amp;amp;=sysvlong &amp;amp;=sysscp;
SYSVLONG=9.04.01M5P091317 SYSSCP=LIN X64
2   libname here ' ';
NOTE: Libref HERE was successfully assigned as follows:
      Engine:        V9
      Physical Name: /home/....&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it is probably not very useful if you are launching SAS via some GUI tool instead of from the command line.&amp;nbsp; For example if you are launching SAS code using Enterprise Guide, SAS/Studio or even Microsoft Windows. In that case you should come up with another method to locate your datasets.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 02:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Empty-libname-reference/m-p/681544#M206156</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-04T02:59:07Z</dc:date>
    </item>
  </channel>
</rss>

