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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 445 views
  • 0 likes
  • 1 in conversation