<?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: Assinging dynamic libname in the stored procedure in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289775#M5065</link>
    <description>&lt;P&gt;The SAS program will not need to do any changes to the library. But you will need separate stored process definitions for the prod and dev server, both pointing to the same physical SAS program file.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 12:08:37 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-08-05T12:08:37Z</dc:date>
    <item>
      <title>Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289761#M5060</link>
      <description>&lt;P&gt;I have a programe which run both on EG and as a stored procedure. when I ran in EG in prod or Dev enviroment the libname automatically select the enviroment and ran the code, But when it is run as stored Procedure, it need to be change as manually for each enviroment.&lt;/P&gt;&lt;P&gt;I tried all option but not able to make the libname dynamic for Stored procedrue. Pls help me to suggest how to make dynamic code for libname in stored.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289761#M5060</guid>
      <dc:creator>sasquestion</dc:creator>
      <dc:date>2016-08-05T09:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289762#M5061</link>
      <description>&lt;P&gt;I would not change the library reference in the program.&lt;/P&gt;
&lt;P&gt;Instead define the libraries in metadata with the same libref, but different paths. Then assign one definition to the prod stored process server and the other to the dev stored process server.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289762#M5061</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-05T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289772#M5062</link>
      <description>&lt;P&gt;Hi KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain the it more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 11:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289772#M5062</guid>
      <dc:creator>sasquestion</dc:creator>
      <dc:date>2016-08-05T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289773#M5063</link>
      <description>&lt;P&gt;Assume you have two directories:&lt;/P&gt;
&lt;P&gt;/sasdata/xxxprod&lt;/P&gt;
&lt;P&gt;/sasdata/xxxdev&lt;/P&gt;
&lt;P&gt;In SAS Management Console (Plug-Ins), open the Data Library Manager&lt;/P&gt;
&lt;P&gt;Right-Click Libraries, select New Library&lt;/P&gt;
&lt;P&gt;Name it XXX-Prod, on the next tab, assign it to the production server, in Options, give it the libref XXX, and set the path to /sasdata/xxxprod&lt;/P&gt;
&lt;P&gt;Once you have finished, repeat the same, but name it XXX-Dev, assign it to the development server, and set the path to /sasdata/xxxdev&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You now have a libref XXX in both production and development, which points to different paths, depending on the server context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 11:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289773#M5063</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-05T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289774#M5064</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to have in the programme of stored procedure.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 11:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289774#M5064</guid>
      <dc:creator>sasquestion</dc:creator>
      <dc:date>2016-08-05T11:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289775#M5065</link>
      <description>&lt;P&gt;The SAS program will not need to do any changes to the library. But you will need separate stored process definitions for the prod and dev server, both pointing to the same physical SAS program file.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/289775#M5065</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-05T12:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Assinging dynamic libname in the stored procedure</title>
      <link>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/291646#M5066</link>
      <description>Agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; but I would even sugest that the stp SAS file should be separated between your different SAS environments. This will let you develop / change your logic in a controlled environment without disturbing the live report in the production environment.</description>
      <pubDate>Mon, 15 Aug 2016 04:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Assinging-dynamic-libname-in-the-stored-procedure/m-p/291646#M5066</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-08-15T04:44:26Z</dc:date>
    </item>
  </channel>
</rss>

