<?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 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723924#M28002</link>
    <description>Hmm , but it revers to completely different folders, so when I open f.e. libname data '/folders/myfolders/regression'; then all the datasheets in the order "regression" are shown in sas. The datasheets in the folder "dataset" are not shown and not changed after I worked in sas.</description>
    <pubDate>Fri, 05 Mar 2021 17:40:52 GMT</pubDate>
    <dc:creator>DomUk</dc:creator>
    <dc:date>2021-03-05T17:40:52Z</dc:date>
    <item>
      <title>Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723882#M27993</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a small question. Can I use the same libname for different folders. For reasons of clarity I have different folders (for example data preparation is one folder, the next is regression analysis...). Up to now I used the same libname , but I want to go sure that there is no problem with this methode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 14:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723882#M27993</guid>
      <dc:creator>DomUk</dc:creator>
      <dc:date>2021-03-05T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723886#M27995</link>
      <description>&lt;P&gt;Are those folders used for input only? or both for input and/or output?&lt;/P&gt;
&lt;P&gt;You can assign more than one folder to the libname:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname &amp;lt;lib_name&amp;gt; ('path_1' 'path_2' ... 'path_n');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In such case, all outputs will be written to the first path assigned.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 15:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723886#M27995</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-03-05T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723898#M27996</link>
      <description>for both input and output. And the folders are on the same level. I used it in the following way:&lt;BR /&gt;libname data '/folders/myfolders/dataset';&lt;BR /&gt;libname data '/folders/myfolders/regression';&lt;BR /&gt;&lt;BR /&gt;I think everything works fine, I just want to go sure</description>
      <pubDate>Fri, 05 Mar 2021 16:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723898#M27996</guid>
      <dc:creator>DomUk</dc:creator>
      <dc:date>2021-03-05T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723907#M27998</link>
      <description>In the case above the second libname would replace the first one and your data would only go to the last location. So I don't think it functions the way you want.</description>
      <pubDate>Fri, 05 Mar 2021 16:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723907#M27998</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-05T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723924#M28002</link>
      <description>Hmm , but it revers to completely different folders, so when I open f.e. libname data '/folders/myfolders/regression'; then all the datasheets in the order "regression" are shown in sas. The datasheets in the folder "dataset" are not shown and not changed after I worked in sas.</description>
      <pubDate>Fri, 05 Mar 2021 17:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723924#M28002</guid>
      <dc:creator>DomUk</dc:creator>
      <dc:date>2021-03-05T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723925#M28003</link>
      <description>Maybe one more information, I never worked parallel with both folders. So if I change something in the folder regression, I have only opened this folder in sas (libname data '/folders/myfolders/regression';) and not the other one.</description>
      <pubDate>Fri, 05 Mar 2021 17:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723925#M28003</guid>
      <dc:creator>DomUk</dc:creator>
      <dc:date>2021-03-05T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Libname</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723928#M28004</link>
      <description>You can use the same name, but not at the same time. &lt;BR /&gt;&lt;BR /&gt;If you have code as follows:&lt;BR /&gt;&lt;BR /&gt;libname data '/folders/myfolders/data';&lt;BR /&gt;libname data '/folders/myfolders/regression';&lt;BR /&gt;&lt;BR /&gt;proc sort data=data.myData;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;It's getting the data from the Regression folder, not the data folder. If you saved to the library, it would save only to the regression folder.&lt;BR /&gt;&lt;BR /&gt;If you do something like below, it's valid, but confusing as hell and not recommended. Libnames can help you logically organize your process and files, and using the same name all the time removes that feature. But it's technically possible, like it's possible to use a hammer with a thumbtack. &lt;BR /&gt;&lt;BR /&gt;libname data '/folders/myfolders/data';&lt;BR /&gt;&lt;BR /&gt;proc sort data=data.myData out=sourceData;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname data;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;libname data '/folders/myfolders/regression';&lt;BR /&gt;&lt;BR /&gt;proc sort data=data.myData out=regData;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname data;</description>
      <pubDate>Fri, 05 Mar 2021 17:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Libname/m-p/723928#M28004</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-05T17:54:06Z</dc:date>
    </item>
  </channel>
</rss>

