Disabling SAS modules? - RunSubmit.com most recent 30 from http://www.runsubmit.com2010-07-29T20:11:32Zhttp://www.runsubmit.com/feeds/question/196http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://www.runsubmit.com/questions/196/disabling-sas-modulesDisabling SAS modules?Robert Penridge2010-01-09T23:54:00Z2010-01-12T15:41:33Z
<p>I have SAS/ACCESS licensed (among other modules) but want to disable it in order to simulate someone else's environment? It would also be helpful for answering some of the questions on this site. Is anyone aware of a way to do this?</p>
http://www.runsubmit.com/questions/196/disabling-sas-modules/198#198Answer by jay.l.stevens for Disabling SAS modules?jay.l.stevens2010-01-10T22:10:35Z2010-01-10T22:10:35Z<p>I haven't tested this, but I'm fairly certain you can emulate a complete removal or absence of a particular module but editing the <code>SASv9.CFG</code> (or version appropriate version). Or, probably a safer bet, would be to create your own custom config file and invoke sas with that as a <code>-config</code> option.</p>
<p>There is a PATH config option that is set in the <code>SASV9.cfg</code> where each of the individual sasexe directories for the products is included in the path statement. I'm pretty certain you could remove one or more of those to completely remove that module's binary libraries from availability. See below:</p>
<pre><code>/* Setup the SAS System load image search paths definition */
-PATH (
"!sasroot\core\sasexe"
"!sasext0\accelmva\sasexe"
"!sasext0\dquality\sasexe"
"!sasext0\inttech\sasexe"
"!sasext0\mddbserv\sasexe"
"!sasext0\tablesrvtk\sasexe"
"!sasext0\access\sasexe"
"!sasext0\af\sasexe"
"!sasext0\assist\sasexe"
"!sasext0\connect\sasexe"
"!sasext0\eis\sasexe"
"!sasext0\ets\sasexe"
"!sasext0\fsp\sasexe"
"!sasext0\graph\sasexe"
"!sasext0\iml\sasexe"
"!sasext0\insight\sasexe"
"!sasext0\intrnet\sasexe"
"!sasext0\lab\sasexe"
"!sasext0\or\sasexe"
"!sasext0\qc\sasexe"
"!sasext0\share\sasexe"
"!sasext0\stat\sasexe"
"!sasext0\toolkt\sasexe"
"!sasext0\spdsclient\sasexe"
)
</code></pre>
<p>So, for example, you could "disable" ETS by completely removing the line that says:</p>
<p><code>"!sasext0\ets\sasexe"</code></p>
<p>Test it out and see if it works.</p>
http://www.runsubmit.com/questions/196/disabling-sas-modules/201#201Answer by PeterC for Disabling SAS modules?PeterC2010-01-12T15:41:33Z2010-01-12T15:41:33Z<p>If you want to simulate another's "SAS licence combination" either use their licence, or get your SAS supplier to provide a licence to match. [I leave the commercial and legal rules to another discussion].</p>
<p>There is a macro function, used like %sysprod(connect) which is the official way to test for the existence of a product. It uses the setinit information. If you don't change that, the SAS components expect to be able to use facilities that might not be available to the other environment. </p>
<p>OK, with no pointer to the executables by removing the paths from the config file, the calls will fail, but it might be "cleaner" to get the normal message in the SASlog that the component is not licensed. </p>
<p>PeterC</p>