Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Use of %%SAS
I would to use %%SAS to execute SAS code in Python but I receive only this message: "this shouldn't happen".
I don't understand what I wrong.
The connection to SAS works but not when I use %%SAS.
Someone could help me?

pip install saspy

import saspy

MySAS = saspy.SASsession(cfgfile='C:\\Users\\D103165\\AppData\\Local\\Continuum\\anaconda3\\pkgs\\saspy-3.1.0-py_0\\site-packages\\saspy\\')

MySAS.saslib("TABCOM", "BASE", "X:\\dircommerciale\\crm\\Tab_Comuni")
SASinPY = MySAS.sasdata("Stato_civile", "TABCOM")

proc print data=sashelp.Citiyr;
Using SAS Config named: default
"this shouldn't happen"

Where did you get the %%SAS syntax from? I'm not seeing that anywhere in the saspy documentation.
Craig "Ichabod" O'Brien -
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures


Top Page

Forum Jump:

Users browsing this thread: 1 Guest(s)