<?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: Connect to SAS using Python saspy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400793#M97166</link>
    <description>&lt;P&gt;You completed all &lt;A href="https://sassoftware.github.io/saspy/install.html#local" target="_self"&gt;steps in the configuration doc&lt;/A&gt;?&amp;nbsp; Including:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;There is one additional requirement.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The sspiauth.dll file–also included in your SAS installation–must be in your system PATH environment variable, your java.library.path, or in the home directory of your Java client. You can search for this file in your SAS deployment, though it is likely in SASHome\SASFoundation\9.4\core\sasext.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you add the file to the system PATH environment variable, only list the path to the directory–do not include the file itself. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="highlight-default"&gt;
&lt;DIV class="highlight"&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;C&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;Program&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Files&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASHome&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASFoundation&lt;/SPAN&gt;\&lt;SPAN class="mf"&gt;9.4&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;core&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;sasext&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;If you adjust the PATH var, you'll need to restart the console that spawned the Python environment you're using -- to pick up the change.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 03 Oct 2017 20:28:28 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2017-10-03T20:28:28Z</dc:date>
    <item>
      <title>Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400730#M97152</link>
      <description>&lt;P&gt;I&amp;nbsp; have SAS base local on Windows machine and i want to use python to pull a dataset from a sas library to do a decision tree, I installed saspy successfully but when i try to open a sas session using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas = saspy.SASsession( cfgname='winlocal')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it just runs for a long time no errors but doesnt connect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be valuable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Myrto&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 18:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400730#M97152</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-03T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400736#M97153</link>
      <description>&lt;P&gt;Are you planning to do the decision tree in SAS or Python?&lt;/P&gt;
&lt;P&gt;A SAS library is just a folder with files, possibly on a server. If you're doing the decision tree in python it would make more sense to bypass SAS entirely, wouldn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400736#M97153</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-03T19:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400769#M97157</link>
      <description>&lt;P&gt;Make sure that your sascfg.py points to the proper location for you local install and Java runtime.&amp;nbsp; Ex:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;winlocal = {'java'      : 'C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java',
            'encoding'  : 'windows-1252',
            'classpath' : cpW
            }&lt;/PRE&gt;
&lt;P&gt;To find your sascfg.py, use these console commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; import saspy
&amp;gt;&amp;gt;&amp;gt; saspy.SAScfg
&amp;lt;module 'saspy.sascfg' from 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\saspy\\sascfg.py'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; &lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400769#M97157</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-03T19:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400782#M97162</link>
      <description>&lt;P&gt;now i get this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas = saspy.SASsession(cfgname='default')&lt;BR /&gt;Cannot use STDIO I/O module on Windows. No SASsession established. Choose an IOM SASconfig definition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 20:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400782#M97162</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-03T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400786#M97164</link>
      <description>&lt;P&gt;"default" does not work on Windows.&amp;nbsp; You need to use winlocal or winiomwin.&amp;nbsp; You might need to edit the sascfg.py file I mentioned to enable winlocal.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mine looks like this:&lt;/P&gt;
&lt;PRE&gt;# build out a local classpath variable to use below for Windows clients
cpW  =  "C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94470__prt__xx__sp0__1\deploywiz\sas.svc.connection.jar"
cpW += ";C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94470__prt__xx__sp0__1\deploywiz\log4j.jar"
cpW += ";C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94470__prt__xx__sp0__1\deploywiz\sas.security.sspi.jar"
cpW += ";C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94470__prt__xx__sp0__1\deploywiz\sas.core.jar"
cpW += ";C:\ProgramData\Anaconda3\Lib\site-packages\saspy\java\saspyiom.jar"

winlocal = {'java'      : 'C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java',
            'encoding'  : 'windows-1252',
            'classpath' : cpW
            }
&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2017 20:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400786#M97164</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-03T20:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400790#M97165</link>
      <description>&lt;P&gt;I changed the path for winlocal to point to the correct one and i run:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and its hanging&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 20:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400790#M97165</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-03T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400793#M97166</link>
      <description>&lt;P&gt;You completed all &lt;A href="https://sassoftware.github.io/saspy/install.html#local" target="_self"&gt;steps in the configuration doc&lt;/A&gt;?&amp;nbsp; Including:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;There is one additional requirement.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The sspiauth.dll file–also included in your SAS installation–must be in your system PATH environment variable, your java.library.path, or in the home directory of your Java client. You can search for this file in your SAS deployment, though it is likely in SASHome\SASFoundation\9.4\core\sasext.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you add the file to the system PATH environment variable, only list the path to the directory–do not include the file itself. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="highlight-default"&gt;
&lt;DIV class="highlight"&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;C&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;Program&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Files&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASHome&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASFoundation&lt;/SPAN&gt;\&lt;SPAN class="mf"&gt;9.4&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;core&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;sasext&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;If you adjust the PATH var, you'll need to restart the console that spawned the Python environment you're using -- to pick up the change.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Oct 2017 20:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/400793#M97166</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-03T20:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402375#M97692</link>
      <description>&lt;P&gt;I did the above:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# build out a local classpath variable to use below for Windows clients&lt;BR /&gt;cpW = "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\log4j.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.core.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar"&lt;/P&gt;
&lt;P&gt;# And, if you've configured IOM to use Encryption, you need these client side jars.&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil_904300.0.0.20150204190000_v940m3\\sas.rutil.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil.nls_904300.0.0.20150204190000_v940m3\\sas.rutil.nls.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sastpj.rutil_6.1.0.0_SAS_20121211183517\\sastpj.rutil.jar"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;winlocal = {'java' : 'C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java',&lt;BR /&gt; 'encoding' : 'windows-1252',&lt;BR /&gt; 'classpath' : cpW&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;added to the PATH env :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;C&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;Program&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Files&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASHome&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;SASFoundation&lt;/SPAN&gt;\&lt;SPAN class="mf"&gt;9.4&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;core&lt;/SPAN&gt;\&lt;SPAN class="n"&gt;sasext&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;and restarted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then tried:&lt;/P&gt;
&lt;P&gt;import saspy&lt;BR /&gt;import pandas as pd&lt;BR /&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it hungs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402375#M97692</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-09T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402423#M97706</link>
      <description>&lt;P&gt;Let's go back to the basic checks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You can start SAS interactively? (From Start menu or command line)&lt;/LI&gt;
&lt;LI&gt;When you try this Python method and it hangs, can you see SAS.EXE in the Windows Task manager process list?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402423#M97706</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-09T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402427#M97709</link>
      <description>&lt;P&gt;if i run :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import saspy&lt;BR /&gt;import pandas as pd&lt;BR /&gt;SAS_config_names = ['winlocal']&lt;BR /&gt;sas = saspy.SASsession(cfgname='winlocal')&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it hungs, i can start SAS, sas exe not in the task manager&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import saspy&lt;BR /&gt;import pandas as pd&lt;BR /&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i get&amp;nbsp;the following: The SAS Config name specified was not found. Please enter the SAS Config you wish to use. Available Configs are: ['default']&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402427#M97709</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-09T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402431#M97713</link>
      <description>&lt;P&gt;Assuming that it doesn't contain any user/pw info, can you attach your entire ../saspy/sascfg.py file to this thread?&amp;nbsp; Here, I'll share mine (which might reflect a slightly different install path).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402431#M97713</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-09T17:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402435#M97716</link>
      <description>&lt;P&gt;#&lt;BR /&gt;# Copyright SAS Institute&lt;BR /&gt;#&lt;BR /&gt;# Licensed under the Apache License, Version 2.0 (the License);&lt;BR /&gt;# you may not use this file except in compliance with the License.&lt;BR /&gt;# You may obtain a copy of the License at&lt;BR /&gt;#&lt;BR /&gt;# &lt;A href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;#&lt;BR /&gt;# Unless required by applicable law or agreed to in writing, software&lt;BR /&gt;# distributed under the License is distributed on an "AS IS" BASIS,&lt;BR /&gt;# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;BR /&gt;# See the License for the specific language governing permissions and&lt;BR /&gt;# limitations under the License.&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# Configuration Names for SAS - python List&lt;BR /&gt;# This is the list of allowed configuration definitions that can be used. The definition are defined below.&lt;BR /&gt;# if there is nore than one name in the list, and cfgname= is not specified in SASsession(), then the user&lt;BR /&gt;# will be prompted to choose which configuration to use.&lt;BR /&gt;#&lt;BR /&gt;# The various options for the different access methods can be specified on the SASsession() i.e.:&lt;BR /&gt;# sas = SASsession(cfgname='default', options='-fullstimer', user='me')&lt;BR /&gt;#&lt;BR /&gt;# Based upon the lock_down configuration option below, you may or may not be able to override option&lt;BR /&gt;# that are defined already. Any necessary option (like user, pw for IOM or HTTP) that are not defined will be &lt;BR /&gt;# prompted for at run time. To dissallow overrides of as OPTION, when you don't have a value, simply&lt;BR /&gt;# specify options=''. This way it's specified so it can't be overridden, even though you don't have any&lt;BR /&gt;# specifi value you want applied.&lt;BR /&gt;# &lt;BR /&gt;#SAS_config_names = ['default', 'ssh', 'iomlinux', 'iomwin', 'winlocal', 'winiomlinux', 'winiomwin', 'http']&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;SAS_config_names=['default']&lt;/P&gt;
&lt;P&gt;# Configuration options for pysas - python Dict&lt;BR /&gt;# valid key are:&lt;BR /&gt;# &lt;BR /&gt;# 'lock_down' - True | False. True = Prevent runtime overrides of SAS_Config values below&lt;BR /&gt;#&lt;/P&gt;
&lt;P&gt;SAS_config_options = {'lock_down': True}&lt;/P&gt;
&lt;P&gt;# Configuration options for SAS output. By default output is HTML 5.0 (using "ods html5" statement) but certain templates might not work &lt;BR /&gt;# properly with HTML 5.0 so it can also be set to HTML 4.0 instead (using "ods html" statement). This option will only work when using IOM&lt;BR /&gt;# in local mode. Note that HTML 4.0 will generate images separately which clutters the workspace and if you download the notebook as HTML, &lt;BR /&gt;# the HTML file will need to be put in the same folder as the images for them to appear.&lt;BR /&gt;# valid key are:&lt;BR /&gt;# &lt;BR /&gt;# 'output' = ['html5', 'html']&lt;BR /&gt;#&lt;BR /&gt;SAS_output_options = {'output' : 'html5'}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# Configuration Definitions&lt;BR /&gt;#&lt;BR /&gt;# For STDIO and STDIO over SSH access methods&lt;BR /&gt;# These need path to SASHome and optional startup options - python Dict&lt;BR /&gt;# The default path to the sas start up script is: /opt/sasinside/SASHome/SASFoundation/9.4/sas&lt;BR /&gt;# A usual install path is: /opt/sasinside/SASHome&lt;BR /&gt;#&lt;BR /&gt;# Since python uses utf-8, running SAS with encoding=utf-8 is the expected use case. By default Unix SAS runs in Latin1 (iso-8859-1),&lt;BR /&gt;# which does not work well as utf-8. So, transcoding has been implemented in the python layer. The 'encoding' option can be specified to match&lt;BR /&gt;# the SAS session encoding (see &lt;A href="https://docs.python.org/3.5/library/codecs.html#standard-encodings" target="_blank"&gt;https://docs.python.org/3.5/library/codecs.html#standard-encodings&lt;/A&gt; for python encoding values). latin1 is appropriate&lt;BR /&gt;# for the default Unix SAS session encoding&lt;BR /&gt;# &lt;BR /&gt;# valid keys are:&lt;BR /&gt;# 'saspath' - [REQUIRED] path to SAS startup script i.e.: /opt/sasinside/SASHome/SASFoundation/9.4/sas&lt;BR /&gt;# 'options' - SAS options to include in the start up command line - Python List&lt;BR /&gt;# 'encoding' - This is the python encoding value that matches the SAS session encoding youe SAS session is using &lt;BR /&gt;#&lt;BR /&gt;# For passwordless ssh connection, the following are also reuqired:&lt;BR /&gt;# 'ssh' - [REQUIRED] the ssh command to run&lt;BR /&gt;# 'host' - [REQUIRED] the host to connect to&lt;BR /&gt;#&lt;BR /&gt;default = {'saspath' : '/opt/sasinside/SASHome/SASFoundation/9.4/bin/sas_u8'&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;ssh = {'saspath' : '/opt/sasinside/SASHome/SASFoundation/9.4/bin/sas_en',&lt;BR /&gt; 'ssh' : '/usr/bin/ssh',&lt;BR /&gt; 'host' : 'remote.linux.host', &lt;BR /&gt; 'encoding': 'latin1',&lt;BR /&gt; 'options' : ["-fullstimer"]&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# For IOM (Grid Manager or any IOM) and Local Windows via IOM access method&lt;BR /&gt;# These configuration definitions are for connecting over IOM. This is designed to be used to connect to a SAS Grid, via Grid Manager&lt;BR /&gt;# and also to connect to a local Windows SAS session. The client side (python and java) for this access method can be either Linux or Windows.&lt;BR /&gt;# The STDIO access method above is only for Linux. PC SAS requires this IOM interface. &lt;BR /&gt;#&lt;BR /&gt;# The absence of the iomhost option triggers local Windows SAS mode. In this case none of 'iomhost', 'iomport', 'omruser', 'omrpw' are needed.&lt;BR /&gt;# a local SAS session is started up and connected to.&lt;BR /&gt;#&lt;BR /&gt;# Since python uses utf-8, running SAS with encoding=utf-8 is the expected use case. By default Windows SAS runs in WLatin1 (windows-1252),&lt;BR /&gt;# which does not work well as utf-8. So, transcoding has been implemented in the python layer. The 'encoding' option can be specified to match&lt;BR /&gt;# the SAS session encoding (see &lt;A href="https://docs.python.org/3.5/library/codecs.html#standard-encodings" target="_blank"&gt;https://docs.python.org/3.5/library/codecs.html#standard-encodings&lt;/A&gt; for python encoding values). windows-1252 is appropriate&lt;BR /&gt;# for the default Windows SAS session encoding&lt;BR /&gt;# &lt;BR /&gt;# Since this IOM access method uses the Java IOM client, a classpath is required for the java process to find the necessary jars. Use the template below&lt;BR /&gt;# to build out a classpath variable and assign that to the 'classpath' option in the configuration definition. The IOM client jars are delivered as part&lt;BR /&gt;# of a Base SAS install, so should be available in any SAS install. The saspyiom.jar is available in the saspy repo/install. &lt;BR /&gt;#&lt;BR /&gt;# valid keys are:&lt;BR /&gt;# 'java' - [REQUIRED] the path to the java executable to use&lt;BR /&gt;# 'iomhost' - [REQUIRED for remote IOM case, Don't specify to use a local Windows Session] the resolvable host name, or ip to the IOM server to connect to&lt;BR /&gt;# 'iomport' - [REQUIRED for remote IOM case, Don't specify to use a local Windows Session] the port IOM is listening on&lt;BR /&gt;# 'authkey' - identifier for user/password credentials to read from .authinfo file. Eliminates prompting for credentials.&lt;BR /&gt;# 'omruser' - not suggested [REQUIRED for remote IOM case but PROMTED for at runtime] Don't specify to use a local Windows Session&lt;BR /&gt;# 'omrpw' - really not suggested [REQUIRED for remote IOM case but PROMTED for at runtime] Don't specify to use a local Windows Session&lt;BR /&gt;# 'encoding' - This is the python encoding value that matches the SAS session encoding of the IOM server you are connecting to&lt;BR /&gt;# 'classpath' - [REQUIRED] classpath to IOM client jars and saspy client jar.&lt;BR /&gt;# 'appserver' - name ofphysical workspace server (when more than one app server defined in OMR) i.e.: 'SASApp - Workspace Server'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# build out a local classpath variable to use below for Linux clients&lt;BR /&gt;cpL = "/opt/sasinside/SASHome/SASDeploymentManager/9.4/products/deploywiz__94400__prt__xx__sp0__1/deploywiz/sas.svc.connection.jar"&lt;BR /&gt;cpL += ":/opt/sasinside/SASHome/SASDeploymentManager/9.4/products/deploywiz__94400__prt__xx__sp0__1/deploywiz/log4j.jar"&lt;BR /&gt;cpL += ":/opt/sasinside/SASHome/SASDeploymentManager/9.4/products/deploywiz__94400__prt__xx__sp0__1/deploywiz/sas.security.sspi.jar"&lt;BR /&gt;cpL += ":/opt/sasinside/SASHome/SASDeploymentManager/9.4/products/deploywiz__94400__prt__xx__sp0__1/deploywiz/sas.core.jar"&lt;BR /&gt;cpL += ":/opt/github/saspy/java/saspyiom.jar"&lt;/P&gt;
&lt;P&gt;iomlinux = {'java' : '/usr/bin/java',&lt;BR /&gt; 'iomhost' : 'linux.iom.host',&lt;BR /&gt; 'iomport' : 8591,&lt;BR /&gt; 'encoding' : 'latin1',&lt;BR /&gt; 'classpath' : cpL&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;iomwin = {'java' : '/usr/bin/java',&lt;BR /&gt; 'iomhost' : 'windows.iom.host',&lt;BR /&gt; 'iomport' : 8591,&lt;BR /&gt; 'encoding' : 'windows-1252',&lt;BR /&gt; 'classpath' : cpL&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# build out a local classpath variable to use below for Windows clients&lt;BR /&gt;cpW = "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\log4j.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.core.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar"&lt;/P&gt;
&lt;P&gt;# And, if you've configured IOM to use Encryption, you need these client side jars.&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil_904300.0.0.20150204190000_v940m3\\sas.rutil.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil.nls_904300.0.0.20150204190000_v940m3\\sas.rutil.nls.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sastpj.rutil_6.1.0.0_SAS_20121211183517\\sastpj.rutil.jar"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;winlocal = {'java' : 'C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java',&lt;BR /&gt; 'encoding' : 'windows-1252',&lt;BR /&gt; 'classpath' : cpW&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;winiomlinux = {'java' : 'java',&lt;BR /&gt; 'iomhost' : 'linux.iom.host',&lt;BR /&gt; 'iomport' : 8591,&lt;BR /&gt; 'encoding' : 'latin1',&lt;BR /&gt; 'classpath' : cpW&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;winiomwin = {'java' : 'C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java',&lt;BR /&gt; 'iomhost' : 'windows.iom.host',&lt;BR /&gt; 'iomport' : 8591,&lt;BR /&gt; 'encoding' : 'windows-1252',&lt;BR /&gt; 'classpath' : cpW&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;# Future - for the HTTP access method to connect to the Compute Service&lt;BR /&gt;# This access method is not available yet.&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# These need ip addr and port, other values will be prompted for - python Dict&lt;BR /&gt;# valid keys are:&lt;BR /&gt;# 'ip' - [REQUIRED] host address &lt;BR /&gt;# 'port' - [REQUIRED] port; the code Defaults this to 80 (the Compute Services default port)&lt;BR /&gt;# 'context' - context name defined on the compute service [PROMTED for at runtime if more than one defined]&lt;BR /&gt;# 'options' - SAS options to include (no '-' (dashes), just option names and values)&lt;BR /&gt;# 'user' - not suggested [REQUIRED but PROMTED for at runtime]&lt;BR /&gt;# 'pw' - really not suggested [REQUIRED but PROMTED for at runtime]&lt;BR /&gt;# &lt;BR /&gt;#&lt;BR /&gt; &lt;BR /&gt;http = {'ip' : 'host.running.compute.service',&lt;BR /&gt; 'port' : 80,&lt;BR /&gt; 'context' : 'Tom2'&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402435#M97716</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-09T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402443#M97720</link>
      <description>&lt;P&gt;So I would definitely change this line to add&amp;nbsp;&lt;STRONG&gt;winlocal&lt;/STRONG&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;SAS_config_names=['default',&amp;nbsp;&lt;EM&gt;'winlocal'&lt;/EM&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And...not sure if will make a difference, but change lock_down to false:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;SAS_config_options = {'lock_down': &lt;STRONG&gt;False&lt;/STRONG&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Might need&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14535"&gt;@Jared&lt;/a&gt;&amp;nbsp;to also take a look or provide additional diagnostic tips.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402443#M97720</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-10-09T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402446#M97723</link>
      <description>&lt;P&gt;Made the changes and now i get the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Java Error:&lt;BR /&gt;Error: Could not find or load main class pyiom.saspy2j&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Subprocess failed to start. Double check you settings in sascfg.py file.&lt;/P&gt;
&lt;P&gt;Attempted to run program C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java with the following parameters:['C:\\Program Files\\SASHome\\SASPrivateJavaRuntimeEnvironment\\9.4\\jre\\bin\\java', '-classpath', 'C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\log4j.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar;C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94250__prt__xx__sp0__1\\deploywiz\\sas.core.jar;C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar;C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil_904300.0.0.20150204190000_v940m3\\sas.rutil.jar;C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil.nls_904300.0.0.20150204190000_v940m3\\sas.rutil.nls.jar;C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sastpj.rutil_6.1.0.0_SAS_20121211183517\\sastpj.rutil.jar', 'pyiom.saspy2j', '-host', 'localhost', '-stdinport', '52234', '-stdoutport', '52235', '-stderrport', '52236', '-zero', '']&lt;/P&gt;
&lt;P&gt;If no Java Error above, try running the following command (where saspy is running) manually to see if it's a problem starting Java:&lt;BR /&gt;C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre\bin\java -classpath "C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.svc.connection.jar;C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\log4j.jar;C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.security.sspi.jar;C:\Program Files\SASHome\SASDeploymentManager\9.4\products\deploywiz__94250__prt__xx__sp0__1\deploywiz\sas.core.jar;C:\ProgramData\Anaconda3\Lib\site-packages\saspy\java\saspyiom.jar;C:\Program Files\SASHome\SASVersionedJarRepository\eclipse\plugins\sas.rutil_904300.0.0.20150204190000_v940m3\sas.rutil.jar;C:\Program Files\SASHome\SASVersionedJarRepository\eclipse\plugins\sas.rutil.nls_904300.0.0.20150204190000_v940m3\sas.rutil.nls.jar;C:\Program Files\SASHome\SASVersionedJarRepository\eclipse\plugins\sastpj.rutil_6.1.0.0_SAS_20121211183517\sastpj.rutil.jar" pyiom.saspy2j -host localhost -stdinport 52234 -stdoutport 52235 -stderrport 52236 -zero&lt;/P&gt;
&lt;P&gt;No SAS process attached. SAS process has terminated unexpectedly.&lt;BR /&gt;No SAS process attached. SAS process has terminated unexpectedly.&lt;BR /&gt;No SAS process attached. SAS process has terminated unexpectedly.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402446#M97723</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-09T17:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402450#M97728</link>
      <description>&lt;P&gt;The shipped version of the sascfg.py includes configuration details for the various connection methods for saspy. These are guidelines and likely your environment will require some modifications.&lt;/P&gt;
&lt;P&gt;The latest version of the file can be viewed on &lt;A href="https://github.com/sassoftware/saspy/blob/master/saspy/sascfg.py" target="_blank"&gt;GitHub&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://sassoftware.github.io/saspy/index.html" target="_blank"&gt;documentation &lt;/A&gt;has &lt;A href="https://sassoftware.github.io/saspy/install.html#configuration" target="_blank"&gt;configuration &lt;/A&gt;section that walks through the options step by step. If you have feedback or enhancements I welcome your input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a few common items to check (line 35)&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;PRE&gt;SAS_config_names=['default']&lt;/PRE&gt;
this line is a python list of the available configuration names. If there is only one configuration name then saspy will use that, if there are multiple and not explicitly specified the user will be prompted. A winlocal reference configuration is included in the file, to use it change the above line to this and saspy will automatically attempt to connect to your local PC SAS version. winlocal is just a name that represents a python dictionary&amp;nbsp;
&lt;PRE&gt;SAS_config_names=['winlocal']&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;or if you're connecting to multiple SAS servers then you might want to have something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names=['winlocal', 'zos', 'viya']&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;To connect using IOM, you will need to have java installed where python (or Jupyter) will be run and several SAS jars that came with your deployment. On PC SAS, that will just be a matter of finding the location on your system (line 145 shows a default path for 9.4m3 install yours will likely be different). If you're connecting to a remote server via IOM then you'll need to copy the jars from one system to another.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;lock_down. This prevents users from overriding configuration options. For PC SAS this won't really matter, but for a server installation I would set it to True (the default). Here is the inline documentation beginning at line 26&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;# Based upon the lock_down configuration option below, you may or may not be able to override option
# that are defined already. Any necessary option (like user, pw for IOM or HTTP) that are not defined will be 
# prompted for at run time. To dissallow overrides of as OPTION, when you don't have a value, simply
# specify options=''. This way it's specified so it can't be overridden, even though you don't have any
# specific value you want applied.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Jared&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 18:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402450#M97728</guid>
      <dc:creator>Jared</dc:creator>
      <dc:date>2017-10-09T18:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402468#M97735</link>
      <description>&lt;P&gt;only trying to connect to local pc sas version...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 18:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/402468#M97735</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2017-10-09T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/432900#M107267</link>
      <description>&lt;P&gt;&lt;img id="robotwink" class="emoticon emoticon-robotwink" src="https://communities.sas.com/i/smilies/16x16_robot-wink.png" alt="Robot wink" title="Robot wink" /&gt;&lt;/P&gt;&lt;P&gt;These comments are for other SAS Programmers who want to run saspy in Anaconda3 in Windows 10 using a local BASE SAS installation. I found the existing documentation and posts confusing, but I think I've managed to navigate it in the end...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download Anaconda and install using the recommended option&lt;/P&gt;&lt;P&gt;Note...Your computer may have mutiple versions of Python installed and configured various ways.The Anaconda distribution takes care of most of the setup problems by installing all this within an App&lt;/P&gt;&lt;P&gt;Verify the following:&lt;BR /&gt;(base) C:\Users\YOURWINDOWSNAME&amp;gt;python --version&lt;BR /&gt;Python 3.6.3 :: Anaconda custom (64-bit)&lt;/P&gt;&lt;P&gt;From the Anaconda DOS prompt (It's an app in your Anaconda3 folder): (base) C:\&amp;gt; pip install saspy&lt;BR /&gt;That'll install the saspy package. If you want the SAS kernel too, type pip install sas_kernel. Then you will be able to use the SAS kernel in Jupyter (i.e. write SAS code from a Jupyter notebook - cool eh?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that the saspy package is installed, you have to add the directory that contains the file sspiauth.dll to our Path variable. This file is located at ~\SASHome\SASFoundation\9.4\core\sasext&lt;BR /&gt;&lt;BR /&gt;Update your Path in Windows 10...You need to have Admin rights&lt;BR /&gt;In Windows 10 &amp;gt; From the Power User Task Menu &amp;gt; click System &amp;gt; Advanced Settings &amp;gt; Environment Variables &amp;gt; Edit a variable labelled "Path". There are already several folders in a list displayed - Add ~\SASHome\SASFoundation\9.4\core\sasext to the list.&lt;/P&gt;&lt;P&gt;As a check, if you open the cmd line in DOS and type c:\&amp;gt;path you will see something like:&lt;/P&gt;&lt;P&gt;PATH=C:\Oracle\product\11.2.0\client_X64\bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;F:\SAS\SASHome\SASFoundation\9.4\ets\sasexe;F:\SAS\SASHome\Secure\ccme4;F:\SAS\SASHome\SASFoundation\9.4\core\sasext;C:\Users\YOURWINDOWSNAME\AppData\Local\Microsoft\WindowsApps;&lt;/P&gt;&lt;P&gt;Or, Open Base SAS and run the following to find the PATH – The results will be the same&lt;BR /&gt;data _null_;&lt;BR /&gt;x=sysget('PATH');&lt;BR /&gt;put x;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Now you use IDLE to edit saspy.cfg - It's in C:\Users\YOURWINDOWSNAME\AppData\Local\Continuum\Anaconda3 (somewhere...).&lt;BR /&gt;You will need to go to ~\SAS\SASHome\SASDeploymentManager\9.4\products\~ and make updates according to the versions you see. Note that '\\' means '\' when you are setting paths in your Python editor&lt;/P&gt;&lt;P&gt;The saspy.cfg file looks like&lt;BR /&gt;…scroll down to the config names below and make some changes&lt;/P&gt;&lt;P&gt;SAS_config_names=['winlocal','winiomwin','winiomIWA']&lt;/P&gt;&lt;P&gt;…scroll down to the path files below&lt;/P&gt;&lt;P&gt;# build out a local classpath variable to use below for Windows clients&lt;BR /&gt;cpW = "F:\\SAS\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__NUMBER__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"&lt;BR /&gt;cpW += ";F:\\SAS\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__NUMBER__prt__xx__sp0__1\\deploywiz\\log4j.jar"&lt;BR /&gt;cpW += ";F:\\SAS\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__NUMBER__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"&lt;BR /&gt;cpW += ";F:\\SAS\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__NUMBER__prt__xx__sp0__1\\deploywiz\\sas.core.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\saspyiom.jar"&lt;/P&gt;&lt;P&gt;…cpW is aliased as winlocal (see below)&lt;/P&gt;&lt;P&gt;winlocal = {'java' : 'java',&lt;BR /&gt;'encoding' : 'windows-1252',&lt;BR /&gt;'classpath' : cpW&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The following Python code will start a session: sas = saspy.SASsession(cfgname='winlocal')&lt;/P&gt;&lt;P&gt;You can test your installation using&lt;BR /&gt;import saspy&lt;BR /&gt;import saspy.sascfg&lt;BR /&gt;sas = saspy.SASsession(cfgname='winlocal')&lt;BR /&gt;cars = sas.sasdata("CARS","SASHELP")&lt;BR /&gt;cars.describe()&lt;/P&gt;&lt;P&gt;and you should see a SASHELP data set about cars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Bread Crumbs and Circuses for all&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 20:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/432900#M107267</guid>
      <dc:creator>mich1</dc:creator>
      <dc:date>2018-01-31T20:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434281#M107770</link>
      <description>&lt;P&gt;I still get the java error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Java Error:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Could not find or load main class pyiom.saspy2j&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434281#M107770</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2018-02-05T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434327#M107782</link>
      <description>&lt;P&gt;I'm not sure...You may try to double-check all the edits, try another PC (if possible), or review the following info...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean/18093929" target="_blank"&gt;https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean/18093929&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link above suggests it's an issue with java finding the class. The post lists the following as possible reasons...&lt;/P&gt;&lt;P&gt;Reasons why Java cannot find the class&lt;/P&gt;&lt;P&gt;When you get the message "Could not find or load main class ...", that means that the first step has failed. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;java&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command was not able to find the class. And indeed, the "..." in the message will be the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;fully qualified class name&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;java&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is looking for.&lt;/P&gt;&lt;P&gt;So why might it be unable to find the class?&lt;/P&gt;&lt;P&gt;Reason #1 - you made a mistake with the classname argument Reason #2 - the application's classpath is incorrectly specified Reason #2a - the wrong directory is on the classpath Reason #2b - the subdirectory path doesn't match the FQN Reason #2c - dependencies missing from the classpath Reason #3 - the class has been declared in the wrong package&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an active SAS license, you could also submit a ticket to help troubleshoot. If you have access to IT support in your org, they can probably review your edits and help with the class issue. If I come across a solution I'll post it here. - Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bread Crumbs and Circuses for all&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 18:37:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434327#M107782</guid>
      <dc:creator>mich1</dc:creator>
      <dc:date>2018-02-05T18:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS using Python saspy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434531#M107833</link>
      <description>&lt;P&gt;You should take a look at the issues that have been reported on SASPy in GitHub:&amp;nbsp;&lt;A href="https://github.com/sassoftware/saspy/issues" target="_blank"&gt;https://github.com/sassoftware/saspy/issues&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From the limited information Issue 24 (&lt;A href="https://github.com/sassoftware/saspy/issues/24" target="_blank"&gt;https://github.com/sassoftware/saspy/issues/24&lt;/A&gt;) or Issue 58 might give you some trouble shooting&amp;nbsp;&lt;A href="https://github.com/sassoftware/saspy/issues/58" target="_blank"&gt;https://github.com/sassoftware/saspy/issues/58&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If looking through the issues doesn't yield a solution please open a new issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jared&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-SAS-using-Python-saspy/m-p/434531#M107833</guid>
      <dc:creator>Jared</dc:creator>
      <dc:date>2018-02-06T13:59:08Z</dc:date>
    </item>
  </channel>
</rss>

