<?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: Changing Library Names Across Multiple Programs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169425#M32509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a single .sas program that assigns libs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then put a %include at the top of your programs that includes the file above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that assumes you're not using the same name for diff libraries in different programs which I've also seen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 19:10:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-04-04T19:10:08Z</dc:date>
    <item>
      <title>Changing Library Names Across Multiple Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169424#M32508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say I have 10 SAS programs that each have the following at the top:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Libname MyLib "E:\MySASFiles";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to only change the directory name in one of the programs and let the rest update auto-magically? I'm thinking %Include but i'm not familiar enough with this option. Any Hints?&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>Fri, 04 Apr 2014 19:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169424#M32508</guid>
      <dc:creator>SAShole</dc:creator>
      <dc:date>2014-04-04T19:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Library Names Across Multiple Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169425#M32509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a single .sas program that assigns libs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then put a %include at the top of your programs that includes the file above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that assumes you're not using the same name for diff libraries in different programs which I've also seen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 19:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169425#M32509</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-04T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Library Names Across Multiple Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169426#M32510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to make 'E:\MySASFiles' a macro value and change all your libname statements to be&lt;/P&gt;&lt;P&gt;Libname MyLib "&amp;amp;mylib."; then, in the first program code %global mylib; %let mylib = E:\MySASFiles;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 19:17:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169426#M32510</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-04-04T19:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Library Names Across Multiple Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169427#M32511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the libraries I use all of the time I have assignments in my autoexec.sas. I know that is "old school" BUT if I reconfigure my machine I only need to change the libname in one place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not repeat the library assignments in each program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 22:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169427#M32511</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-04T22:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Library Names Across Multiple Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169428#M32512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use CALL EXECUTE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fold;&lt;/P&gt;&lt;P&gt;input f : $40.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;c:\x&lt;/P&gt;&lt;P&gt;d:\d&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set fold;&lt;/P&gt;&lt;P&gt;call execute('%let f='||f ||' ; ');&lt;/P&gt;&lt;P&gt;call execute('%include a1 ;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;call execute('%include a2 ;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;call execute('%include a3 ;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;call execute('%include a4 ;&amp;nbsp; ');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change libname statement in all of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Libname MyLib " &amp;amp;f ";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Ksharp&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 10:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Library-Names-Across-Multiple-Programs/m-p/169428#M32512</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-04-06T10:15:24Z</dc:date>
    </item>
  </channel>
</rss>

