Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

saspy.sasexceptions.SASIONotSupportedError: Cannot use STDIO I/O module on Windows.

Hi All,

 

I'm trying to read SAS file in power Bi using python script. While running my code in python IDE, I'm getting below error can anyone help me to figure it out.

 

Error:

saspy.sasexceptions.SASIONotSupportedError: Cannot use STDIO I/O module on Windows. Try the following: IOM

 

My Code:

import saspy as sas
import pandas as pd
code=open(r'My file path.sas').read()
#results.dict=sas.submit(code)
S=sas.SASsession()
results_dict=S.submit(code)
df=pd.DataFrame.from_dict(results_dict,orient='records')
df.head()

2 Replies