BookmarkSubscribeRSS Feed
Olga3
Calcite | Level 5

I am running SASPY using these instructions:https://www.listendata.com/2021/01/run-sas-in-python-without-installation.html

Here is my Python code:

import saspy,os
import pandas as pd
import pyreadstat


sas = saspy.SASsession(java='C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe',
iomhost = ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
iomport=8591, encoding='utf-8')
sas

 

Everything is working fine, SAS connection gets established, but then it automatically terminates right away, and there is no error message. It looks like this ('XXX' stands for my user id and password):

Please enter the OMR user id: XXX
Please enter the password for OMR user :XXX 
SAS Connection established. Subprocess id is 12412

SAS Connection terminated. Subprocess id was 12412

 

If anyone has ever encountered and resolved this issue, please let me know - I would greatly appreciate it!

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 339 views
  • 0 likes
  • 1 in conversation