<?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: Announcing SASPy: programming SAS from Python in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/432903#M107268</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...&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:42:04 GMT</pubDate>
    <dc:creator>mich1</dc:creator>
    <dc:date>2018-01-31T20:42:04Z</dc:date>
    <item>
      <title>Announcing SASPy: programming SAS from Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/343050#M78703</link>
      <description>&lt;P&gt;I'm cross-posting this announcement from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19924"&gt;@FriedEgg&lt;/a&gt;&amp;nbsp;who shared it on SAS-L. &amp;nbsp;I love the SAS-L list, but I don't want them to get&amp;nbsp;&lt;STRONG&gt;all&lt;/STRONG&gt; of the scoop on this exciting news for Python coders&amp;nbsp;who use SAS (or is it SAS programmers who use Python?). &amp;nbsp;Quoting FriedEgg here:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Just wanted to share a very exciting release from SAS on Github that happened just recently.&amp;nbsp; This is a fantastic expansion of functionality and a huge step forward for those interested in Open Source Integration with SAS.&amp;nbsp; I, personally, am most happy to see all of the expanded connection options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;&lt;A href="https://github.com/sassoftware/saspy/releases/tag/v2.1.0" target="_blank"&gt;the Real saspy&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;This release changes almost everything about saspy. In version 1 saspy only had a submit method to enable the sas_kernel. It now has much much more.&lt;/P&gt;
&lt;P&gt;Here are the highlights:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Transfer of SAS datasets and Pandas dataframes&lt;/LI&gt;
&lt;LI&gt;SAS Data object which provides methods for working with data in SAS. Here is a few of the methods (see the doc for the complete list)&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Graphics (histogram, barchart, heatmap)&lt;/LI&gt;
&lt;LI&gt;Partitioning data&lt;/LI&gt;
&lt;LI&gt;Scoring data&lt;/LI&gt;
&lt;LI&gt;Assessing models&lt;/LI&gt;
&lt;LI&gt;Filtering (where, keep, drop)&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;SAS Result object to store and display ODS results from modeling and data analysis&lt;/LI&gt;
&lt;LI&gt;Support for connections to SAS Grid Manager, PC SAS, and any other SAS IOM interface (even the mainframe)&lt;/LI&gt;
&lt;LI&gt;Analytical modeling methods&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Statistics&lt;/LI&gt;
&lt;LI&gt;Machine Learning&lt;/LI&gt;
&lt;LI&gt;Econometric Time Series (ETS)&lt;/LI&gt;
&lt;LI&gt;Quality Control&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;Documentation using Sphinx:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://sassoftware.github.io/saspy/index.html" target="_blank"&gt;https://sassoftware.github.io/saspy/index.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'll have more documentation and articles coming on this, including plenty of content featured from SAS Global Forum in just a couple of weeks. &amp;nbsp;In the meantime -- go &lt;A href="https://github.com/sassoftware/saspy" target="_self"&gt;check out the SAS Software GitHub&lt;/A&gt; and play with SASPy! &amp;nbsp;It works with SAS 9.4 on Windows, Unix, and even the mainframe. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Kudos to the developers from SAS:&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14535"&gt;@Jared&lt;/a&gt;&amp;nbsp;and Tom Weber. &amp;nbsp;You'll see their fingerprints all over the GitHub commits.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 19:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/343050#M78703</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-03-21T19:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Announcing SASPy: programming SAS from Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/348721#M80777</link>
      <description>&lt;P&gt;If you want to learn more about SASPy, I've &lt;A href="http://blogs.sas.com/content/sasdummy/2017/04/08/python-to-sas-saspy/" target="_self"&gt;summarized the news in this blog post&lt;/A&gt;. &amp;nbsp;The blog also contains &lt;A href="http://video.sas.com/sasgf17/detail/videos/tech-talks/video/5383782585001/sas-tech-talk:-saspy-and-pipefitter?autoStart=true" target="_self"&gt;a video explanation and demo&lt;/A&gt; from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14535"&gt;@Jared&lt;/a&gt;, one of the SASPy developers.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/348721#M80777</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-04-10T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Announcing SASPy: programming SAS from Python</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/432903#M107268</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...&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:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Announcing-SASPy-programming-SAS-from-Python/m-p/432903#M107268</guid>
      <dc:creator>mich1</dc:creator>
      <dc:date>2018-01-31T20:42:04Z</dc:date>
    </item>
  </channel>
</rss>

