<?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 Why does SAS BI use LD_LIBRARY_PATH, and can it be avoided? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-does-SAS-BI-use-LD-LIBRARY-PATH-and-can-it-be-avoided/m-p/209706#M51961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to preface this by saying that I am still trying to understand this whole issue, so please forgive me if my comments and questions below don't make any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently upgraded to Sybase 16.&amp;nbsp; In the process, a new environment variable name LD_LIBRARY_PATH_64 was created on our SAS BI server.&amp;nbsp; I was previously unaware that SAS strongly warns against setting this variable (see &lt;A href="http://support.sas.com/kb/34/579.html" title="http://support.sas.com/kb/34/579.html"&gt;34579 - Errors occur when the LD_LIBRARY_PATH_64 environment variable is defined on Solaris systems&lt;/A&gt; ).&amp;nbsp; Now we are receiving errors with our SAS/Access to Oracle connection and our Java Virtual Machine calls.&amp;nbsp; Our Sybase DBA says that he has an easy fix.&amp;nbsp; The link SAS note above says they have two possible fixes.&amp;nbsp; I am not sure if any of the solutions will fix the issue without causing other issues.&amp;nbsp; So I started to do what a good SAS administrator should do and research the issue to understand what EXACTLY is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During my research, I found multiple sites that basically say "do not use/modify LD_LIBRARY_PATH for your applications".&amp;nbsp; I even read places that describe commercial products (ex. SAS?) that use this variable described as "lazy programmers" and "bad programming"... two descriptions I generally do not associate with SAS.&amp;nbsp; They suggest that using a localized variable is a much better approach.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My understanding is that both LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 are lists of shared directories that are used by ld.&amp;nbsp; So why does SAS use these variables?&amp;nbsp; Why do they not create a SAS specific variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to still trying to understand this better, I am now curious if it is possible to unravel SAS from the LD_LIBRARY_PATH variables.&amp;nbsp; Has anyone had to do this, or are there any good discussions on this topic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 15:48:26 GMT</pubDate>
    <dc:creator>ICI_SAS_Admins</dc:creator>
    <dc:date>2015-08-28T15:48:26Z</dc:date>
    <item>
      <title>Why does SAS BI use LD_LIBRARY_PATH, and can it be avoided?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-does-SAS-BI-use-LD-LIBRARY-PATH-and-can-it-be-avoided/m-p/209706#M51961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to preface this by saying that I am still trying to understand this whole issue, so please forgive me if my comments and questions below don't make any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently upgraded to Sybase 16.&amp;nbsp; In the process, a new environment variable name LD_LIBRARY_PATH_64 was created on our SAS BI server.&amp;nbsp; I was previously unaware that SAS strongly warns against setting this variable (see &lt;A href="http://support.sas.com/kb/34/579.html" title="http://support.sas.com/kb/34/579.html"&gt;34579 - Errors occur when the LD_LIBRARY_PATH_64 environment variable is defined on Solaris systems&lt;/A&gt; ).&amp;nbsp; Now we are receiving errors with our SAS/Access to Oracle connection and our Java Virtual Machine calls.&amp;nbsp; Our Sybase DBA says that he has an easy fix.&amp;nbsp; The link SAS note above says they have two possible fixes.&amp;nbsp; I am not sure if any of the solutions will fix the issue without causing other issues.&amp;nbsp; So I started to do what a good SAS administrator should do and research the issue to understand what EXACTLY is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During my research, I found multiple sites that basically say "do not use/modify LD_LIBRARY_PATH for your applications".&amp;nbsp; I even read places that describe commercial products (ex. SAS?) that use this variable described as "lazy programmers" and "bad programming"... two descriptions I generally do not associate with SAS.&amp;nbsp; They suggest that using a localized variable is a much better approach.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My understanding is that both LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 are lists of shared directories that are used by ld.&amp;nbsp; So why does SAS use these variables?&amp;nbsp; Why do they not create a SAS specific variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to still trying to understand this better, I am now curious if it is possible to unravel SAS from the LD_LIBRARY_PATH variables.&amp;nbsp; Has anyone had to do this, or are there any good discussions on this topic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 15:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-does-SAS-BI-use-LD-LIBRARY-PATH-and-can-it-be-avoided/m-p/209706#M51961</guid>
      <dc:creator>ICI_SAS_Admins</dc:creator>
      <dc:date>2015-08-28T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS BI use LD_LIBRARY_PATH, and can it be avoided?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-does-SAS-BI-use-LD-LIBRARY-PATH-and-can-it-be-avoided/m-p/224759#M53868</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"I even read places that describe commercial products (ex. SAS?) that use this variable described as "lazy programmers" and "bad programming"... two descriptions I generally do not associate with SAS." &amp;nbsp;SAS is nice at the fron-end going into the OS system internals the are not the nice. Enough troubles seen to classify SAS als lazy and bad programmers on that area.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;A href="http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html" target="_blank"&gt;http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html&lt;/A&gt; &amp;nbsp;(tldp.org) And you find the LD_library_path as standard approach. &amp;nbsp;Although most systems these days are 64-bit programmed there is still a lot of 32-bit (and less) history.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Oracle documented the LD_Library_Paht_64 &lt;A href="http://docs.oracle.com/cd/E19205-01/819-5262/aeude/index.html" target="_blank"&gt;http://docs.oracle.com/cd/E19205-01/819-5262/aeude/index.html&lt;/A&gt; It is working as you described.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is at OS level and guess what, most middleware tools liike all those database interfaces are middelware and following the OS conventions. Only a middleware tool like SAS is rather stubborn not following those guidelines. (getting the trouble).&amp;nbsp;Is the SAS system an application, The SAS applications are the sas-programs build in your environment your business and are not the COTS ones by sas-institute.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 14:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-does-SAS-BI-use-LD-LIBRARY-PATH-and-can-it-be-avoided/m-p/224759#M53868</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-09-09T14:58:51Z</dc:date>
    </item>
  </channel>
</rss>

