<?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: library location in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165233#M42824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let x=%sysfunc(pathname(maps));&lt;/P&gt;&lt;P&gt;%put &amp;amp;x ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 13:05:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-05-20T13:05:03Z</dc:date>
    <item>
      <title>library location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165229#M42820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I have a library which i have defined as test for example libname test "C:\temp";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are some active libraries like maps for example and i want to know how do i find the location in which the datasets are stored.&lt;/P&gt;&lt;P&gt;I can do that if I just right click and see properties but how do i programatically locate where the datasets are being stored in the&amp;nbsp; C drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 18:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165229#M42820</guid>
      <dc:creator>hdg</dc:creator>
      <dc:date>2014-05-19T18:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: library location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165230#M42821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select path&lt;/P&gt;&lt;P&gt;from dictionary.libnames&lt;/P&gt;&lt;P&gt;where libname="WORK";&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show in the results window. You can drop the value into a macro variable for use elsewhere in your program using&lt;/P&gt;&lt;P&gt;INTO on the select statement probably with NOPRINT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165230#M42821</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-19T19:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: library location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165231#M42822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand 1) What libraries you are talking about, I assume they are those predefined libraries you see out of box? as if you define it, you know where it is. 2) What do you mean "pragmatically" &lt;/P&gt;&lt;P&gt;Anyway, the definition of those predefined libraries (eg. SASHELP, MAPS etc) can be found in either SASv9.cfg (most likely) or autoexec.sas &lt;/P&gt;&lt;P&gt;for instance, you will find statements like this in cfg file:&lt;/P&gt;&lt;P&gt;-SET SASROOT "C:\Program Files\SASHome\x86\SASFoundation\9.3"&lt;/P&gt;&lt;P&gt;-MAPS !SASROOT\maps&lt;/P&gt;&lt;P&gt;meaning library maps is located in&amp;nbsp; &lt;/P&gt;&lt;P&gt;C:\Program Files\SASHome\x86\SASFoundation\9.3\maps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In autoexec.sas, you will just see those libname statements if there are any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165231#M42822</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-05-19T19:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: library location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165232#M42823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inspired by &lt;A __default_attr="260198" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, I think now I know what you mean by "pragmatically" , here is another one using a SAS function PATHNAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; path=pathname('work');&lt;/P&gt;&lt;P&gt; put path=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165232#M42823</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-05-19T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: library location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165233#M42824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let x=%sysfunc(pathname(maps));&lt;/P&gt;&lt;P&gt;%put &amp;amp;x ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 13:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/library-location/m-p/165233#M42824</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-20T13:05:03Z</dc:date>
    </item>
  </channel>
</rss>

