<?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: Configuring SASPY in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581208#M17800</link>
    <description>&lt;P&gt;The documentation on how to write a configuration file is a confused jumble.&amp;nbsp; It took me much longer to figure out that one configuration file than it did to download, install, and configure Anaconda and Jupyter combined.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if this is optimal, but this works for me running Jupyter under Anaconda in Windows, connecting to a grid server running on Solaris/Unix:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names = ['winiomsolaris']


SAS_config_options = {'lock_down': False,
                      'verbose'  : True
                     }

SAS_output_options = {'output' : 'html5'}

# build out a local classpath variable to use below for Windows clients   CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION
cpW  =  "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\log4j.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.core.jar"
cpW += ";C:\\Users\\c449630\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\saspy\java\\saspyiom.jar"

# And, if you've configured IOM to use Encryption, you need these client side jars.
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil_904500.0.0.20170816190000_v940m5\\sas.rutil.jar"
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil.nls_904500.0.0.20170816190000_v940m5\\sas.rutil.nls.jar"
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sastpj.rutil_6.1.0.0_SAS_20121211183517\\sastpj.rutil.jar"

winiomsolaris = {'java'   : 'java',
                'iomhost'   : ['sasgrid01.kp.org','sasgrid02.kp.org','sasgrid03.kp.org'],
                'iomport'   : 8591,
                'classpath' : cpW ,
                'encoding'  : 'latin1'
                }

import os
os.environ["PATH"] += ";C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext\\sspiauth.dll"
os.environ["PATH"] += ";C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext\\"
&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Aug 2019 16:19:25 GMT</pubDate>
    <dc:creator>JackHamilton</dc:creator>
    <dc:date>2019-08-14T16:19:25Z</dc:date>
    <item>
      <title>Configuring SASPY</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581096#M17795</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We currently have a SAS 9.4 Grid system on a linux machine.&lt;/P&gt;&lt;P&gt;we are trying to use SASPY python module in the local windows machine connecting to the sasgrid.&lt;/P&gt;&lt;P&gt;How can we achieve this.&lt;/P&gt;&lt;P&gt;we have our python3.7 , pandas, saspy modules installed in our local windows machine, also the sascfg.py is modified as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS_config_names=['default', 'iomlinux', 'winiomlinux', 'ssh']&lt;/P&gt;&lt;P&gt;SAS_config_options = {'lock_down': False,&lt;BR /&gt;'verbose' : True&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SAS_output_options = {'output' : 'html5'}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;default = {'saspath' : '/sascommon/SAS/SASHome/SASFoundation/9.4/bin/sas_u8'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;ssh = {'saspath' : '/sascommon/SAS/SASHome/SASFoundation/9.4/bin/sas_en',&lt;BR /&gt;'ssh' : '/usr/bin/ssh',&lt;BR /&gt;'host' : 'sesklsasgrndevxx.emea.xx.net',&lt;BR /&gt;'encoding': 'latin1',&lt;BR /&gt;'options' : ["-fullstimer"]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# build out a local classpath variable to use below for Linux clients CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION&lt;BR /&gt;cpL = "/sascommon/SAS/SASHome/SASDeploymentManager/9.4/products/deploywiz__94500__prt__xx__sp0__1/deploywiz/sas.svc.connection.jar"&lt;BR /&gt;cpL += ":/sascommon/SAS/SASHome/SASDeploymentManager/9.4/products/deploywiz__94500__prt__xx__sp0__1/deploywiz/log4j.jar"&lt;BR /&gt;cpL += ":/sascommon/SAS/SASHome/SASDeploymentManager/9.4/products/deploywiz__94500__prt__xx__sp0__1/deploywiz/sas.security.sspi.jar"&lt;BR /&gt;cpL += ":/sascommon/SAS/SASHome/SASDeploymentManager/9.4/products/deploywiz__94500__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' : 'sesklsasgrndevxx.emea.xx.net',&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 CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION&lt;BR /&gt;cpW = "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\log4j.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"&lt;BR /&gt;cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94472__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;# These jars provide CORBA support for Java 10+ which no longer provides CORBA itself. CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\thirdparty\\glassfish-corba-internal-api.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\thirdparty\\glassfish-corba-omgapi.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\thirdparty\\glassfish-corba-orb.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\thirdparty\\pfl-basic.jar"&lt;BR /&gt;cpW += ";C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\saspy\\java\\thirdparty\\pfl-tf.jar"&lt;/P&gt;&lt;P&gt;# And, if you've configured IOM to use Encryption, you need these client side jars. CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION&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' : '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' : 'sesklsasgrndev01.emea.astrazeneca.net',&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' : '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;winiomIWA = {'java' : '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;'sspi' : True&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iomcom = {&lt;BR /&gt;'iomhost': 'mynode.mycompany.org',&lt;BR /&gt;'iomport': 8591,&lt;BR /&gt;'class_id': '440196d4-90f0-11d0-9f41-00a024bb830c',&lt;BR /&gt;'provider': 'sas.iomprovider',&lt;BR /&gt;'encoding': 'windows-1252'}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;httpsviya = {'ip' : 'sastpw.rndk8s.openstack.sas.com',&lt;BR /&gt;'context' : 'Data Mining compute context',&lt;BR /&gt;'authkey' : 'viya_user-pw',&lt;BR /&gt;'options' : ["fullstimer", "memsize=1G"]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;httpviya = {'ip' : 'sastpw.rndk8s.openstack.sas.com',&lt;BR /&gt;'ssl' : False, # this will use port 80&lt;BR /&gt;'context' : 'Data Mining compute context',&lt;BR /&gt;'authkey' : 'viya_user-pw',&lt;BR /&gt;'options' : ["fullstimer", "memsize=1G"]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581096#M17795</guid>
      <dc:creator>pururshothaman</dc:creator>
      <dc:date>2019-08-14T13:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring SASPY</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581186#M17799</link>
      <description>All of the documentation (installation, configuration, troubleshooting, et cetera) for SASpy is located at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/sassoftware/saspy" target="_blank"&gt;https://github.com/sassoftware/saspy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have questions, you can open an issue at &lt;A href="https://github.com/sassoftware/saspy/issues" target="_blank"&gt;https://github.com/sassoftware/saspy/issues&lt;/A&gt;</description>
      <pubDate>Wed, 14 Aug 2019 15:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581186#M17799</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-08-14T15:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring SASPY</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581208#M17800</link>
      <description>&lt;P&gt;The documentation on how to write a configuration file is a confused jumble.&amp;nbsp; It took me much longer to figure out that one configuration file than it did to download, install, and configure Anaconda and Jupyter combined.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if this is optimal, but this works for me running Jupyter under Anaconda in Windows, connecting to a grid server running on Solaris/Unix:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names = ['winiomsolaris']


SAS_config_options = {'lock_down': False,
                      'verbose'  : True
                     }

SAS_output_options = {'output' : 'html5'}

# build out a local classpath variable to use below for Windows clients   CHANGE THE PATHS TO BE CORRECT FOR YOUR INSTALLATION
cpW  =  "C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.svc.connection.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\log4j.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.security.sspi.jar"
cpW += ";C:\\Program Files\\SASHome\\SASDeploymentManager\\9.4\\products\\deploywiz__94494__prt__xx__sp0__1\\deploywiz\\sas.core.jar"
cpW += ";C:\\Users\\c449630\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\saspy\java\\saspyiom.jar"

# And, if you've configured IOM to use Encryption, you need these client side jars.
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil_904500.0.0.20170816190000_v940m5\\sas.rutil.jar"
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sas.rutil.nls_904500.0.0.20170816190000_v940m5\\sas.rutil.nls.jar"
cpW += ";C:\\Program Files\\SASHome\\SASVersionedJarRepository\\eclipse\\plugins\\sastpj.rutil_6.1.0.0_SAS_20121211183517\\sastpj.rutil.jar"

winiomsolaris = {'java'   : 'java',
                'iomhost'   : ['sasgrid01.kp.org','sasgrid02.kp.org','sasgrid03.kp.org'],
                'iomport'   : 8591,
                'classpath' : cpW ,
                'encoding'  : 'latin1'
                }

import os
os.environ["PATH"] += ";C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext\\sspiauth.dll"
os.environ["PATH"] += ";C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext\\"
&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581208#M17800</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2019-08-14T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring SASPY</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581261#M17801</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13901"&gt;@JackHamilton&lt;/a&gt;&amp;nbsp;thanks for showing your config file, I'm sure that will make it more clear what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/267077"&gt;@pururshothaman&lt;/a&gt;&amp;nbsp;should have. Also, sorry the configuration doc isn't as straightforward as maybe it could be. I write much better code than I do doc &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Having 7 different ways to connect to SAS, depending upon if it's local or remote, if you're using a workspace server (and how that's been deployed/configured), or just a simple install of SAS itself, or even if it's SAS in a Viya deployment, is a lot of information to try to provide. And, this has evolved of the past couple years, so I don't disagree that the config section seems a bit complicated. If there's anything specific that would make it better, since you've been through it and were able to configure it, I'm more than happy to try to make it easier to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/267077"&gt;@pururshothaman&lt;/a&gt;&amp;nbsp;for connecting to grid, the config file will be similar to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13901"&gt;@JackHamilton&lt;/a&gt;&amp;nbsp;showed. You would use the IOM access method Remote version. The config doc for that section is in the links provided by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3492"&gt;@JosvanderVelden&lt;/a&gt;. There are other configuration keys in that doc which you may need for your situation; appserver: for instance, if you have multiple workspace servers defined. If your Grid Admins want to route saspy connections to specific LSF queues, that's possible too; see&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/advanced-topics.html#configuring-grid-option-sets-to-have-saspy-run-on-a-specific-queue" target="_blank"&gt;https://sassoftware.github.io/saspy/advanced-topics.html#configuring-grid-option-sets-to-have-saspy-run-on-a-specific-queue&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Opening an issue on github is always a good way to get help on this too. Or you can contact me directly, my email is on there too. I try to search for 'saspy' posts here too, but I have to manually go do that to see that something new has been posted here, so I'll see it eventually, but not immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any trouble and need more help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 19:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/581261#M17801</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2019-08-14T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring SASPY</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/609854#M18524</link>
      <description>&lt;P&gt;A little late to the party, but I wrote &lt;A href="https://blogs.sas.com/content/sgf/2019/09/19/using-python-to-run-jobs-in-your-sas-grid/" target="_blank" rel="noopener"&gt;this&lt;/A&gt; post some time ago which outlines the process for a basic setup - you might find it useful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 03:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Configuring-SASPY/m-p/609854#M18524</guid>
      <dc:creator>AjmalFarzam</dc:creator>
      <dc:date>2019-12-06T03:52:05Z</dc:date>
    </item>
  </channel>
</rss>

