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!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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