<?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 How to create multiple libraries at once? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692384#M210920</link>
    <description>&lt;P&gt;data have:&lt;/P&gt;&lt;P&gt;input libref $&amp;nbsp; path$30.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;sai&amp;nbsp; &amp;nbsp; &amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\SPRETNOST&lt;/P&gt;&lt;P&gt;ravi&amp;nbsp; &amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\new&lt;/P&gt;&lt;P&gt;rahul&amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\oldest&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Here i want create all libraries at once ?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Oct 2020 18:51:02 GMT</pubDate>
    <dc:creator>shravanisreeyan</dc:creator>
    <dc:date>2020-10-18T18:51:02Z</dc:date>
    <item>
      <title>How to create multiple libraries at once?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692384#M210920</link>
      <description>&lt;P&gt;data have:&lt;/P&gt;&lt;P&gt;input libref $&amp;nbsp; path$30.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;sai&amp;nbsp; &amp;nbsp; &amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\SPRETNOST&lt;/P&gt;&lt;P&gt;ravi&amp;nbsp; &amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\new&lt;/P&gt;&lt;P&gt;rahul&amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\oldest&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Here i want create all libraries at once ?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 18:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692384#M210920</guid>
      <dc:creator>shravanisreeyan</dc:creator>
      <dc:date>2020-10-18T18:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple libraries at once?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692385#M210921</link>
      <description>&lt;P&gt;Use the LIBNAME function.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1bq8nyxm7y1ygn1i4vyf82z68ls.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1bq8nyxm7y1ygn1i4vyf82z68ls.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 19:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692385#M210921</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-18T19:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple libraries at once?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692386#M210922</link>
      <description>&lt;P&gt;Use the libname function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

rc = libname(libref, path);

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rc will hold the return values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the docs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;The LIBNAME function assigns or clears a libref from a SAS library. When you use the LIBNAME function with two or more arguments, SAS attempts to assign the libref. When you use one argument, SAS attempts to clear the libref. Return codes are generated depending on the value of the arguments that are used in the LIBNAME function and whether the libref is assigned.&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;When assigning a libref, the return code is 0 if the libref is successfully assigned. If the return code is nonzero and the SYSMSG function returns a warning message or a note, then the assignment was successful.&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;If the SYSMSG function returns an error, then the assignment was unsuccessful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;If a library is already assigned, and you attempt to assign a different name to the library, the libref is assigned, the LIBNAME function returns a nonzero return code, and the SYSMSG function returns a note.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1bq8nyxm7y1ygn1i4vyf82z68ls.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1bq8nyxm7y1ygn1i4vyf82z68ls.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313526"&gt;@shravanisreeyan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data have:&lt;/P&gt;
&lt;P&gt;input libref $&amp;nbsp; path$30.;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;sai&amp;nbsp; &amp;nbsp; &amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\SPRETNOST&lt;/P&gt;
&lt;P&gt;ravi&amp;nbsp; &amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\new&lt;/P&gt;
&lt;P&gt;rahul&amp;nbsp;&amp;nbsp;C:\Users\SAIKIRAN PATEL\Desktop\oldest&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;Here i want create all libraries at once ?&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 19:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-libraries-at-once/m-p/692386#M210922</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-18T19:10:05Z</dc:date>
    </item>
  </channel>
</rss>

