Use of %%SAS - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Use of %%SAS (/thread-19716.html) |
Use of %%SAS - pmelod - Jul-11-2019 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\\sascfg_personal.py') MySAS.saslib("TABCOM", "BASE", "X:\\dircommerciale\\crm\\Tab_Comuni") SASinPY = MySAS.sasdata("Stato_civile", "TABCOM") SASinPY.head() %%SAS proc print data=sashelp.Citiyr; run; Using SAS Config named: default Out[5]: "this shouldn't happen" RE: Use of %%SAS - ichabod801 - Jul-11-2019 Where did you get the %%SAS syntax from? I'm not seeing that anywhere in the saspy documentation. |