<?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 and filename to multiple location in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279669#M56386</link>
    <description>&lt;P&gt;Q1. You can use a filename to create a file, in this case it doesn't need to preexist to create a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know the answer to Q2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 06:56:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-06-23T06:56:21Z</dc:date>
    <item>
      <title>Libname and filename to multiple location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279659#M56379</link>
      <description>&lt;P&gt;Libname Test1 (C:\t1, C:\t2, C:\t3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Filename&amp;nbsp;Test2 (C:\t1, C:\t2, C:\t3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ques 1- In Libname, If all three folder do not exist then Libname gives WARNING but for filename there is no such warning generated. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ques 2- For libname/Filename, if member exists in multiple folder then which member would be refferred ? Example - Data1.sas7bdat with different columns exists in t1 and t2 folder then which Data1 would come in libname. I think it will take from t1 folder as it is written first. Please confirm whether order of folder name matters? Is the same concept applies on Filename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279659#M56379</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-06-23T06:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Libname and filename to multiple location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279669#M56386</link>
      <description>&lt;P&gt;Q1. You can use a filename to create a file, in this case it doesn't need to preexist to create a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know the answer to Q2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279669#M56386</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-23T06:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Libname and filename to multiple location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279684#M56393</link>
      <description>&lt;P&gt;Since a filename can be used to create a new file, SAS doesn't complain if no file is present at the time you define the file reference.&lt;/P&gt;
&lt;P&gt;A library must be present at the time the libname is executed.&lt;/P&gt;
&lt;P&gt;If you want to create new files/datasets, spanned definitions are a BAD IDEA. Don't do it.&lt;/P&gt;
&lt;P&gt;And if you're not sure what is where, don't use them either. Be specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Computers are dumb ("Computer sind doof" - Spliff, 1984)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 07:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279684#M56393</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-23T07:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Libname and filename to multiple location</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279721#M56410</link>
      <description>&lt;P&gt;Q2 is easy enough to test. What is the output from this program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname t1 "C:\t1";
libname t2 "C:\t2";
data t1.test;
	x = 'This is the data set in T1';
data t2.test;
	x = 'This is the data set in T2';
libname both ("C:\t1" "C:\t2");
title 'T1 is first';
proc print data=both.test;
run;
libname both clear;
libname both ("C:\t2" "C:\t1");
title 'T2 is first';
proc print data=both.test;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2016 12:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Libname-and-filename-to-multiple-location/m-p/279721#M56410</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-06-23T12:51:50Z</dc:date>
    </item>
  </channel>
</rss>

