Hi folks,
We have a SAS code that makes some data transformation creating multiple tables on WORK library. The code works perfectly. The SAS code is something like below example:
data tmp;
set seashelp.class;
run;
data tmp2;
set tmp;
....;
run;
data tmp3;
set tmp2;
....;
run;
data tmp4;
set tmp3;
....;
run;
We tried to execute the same code on Python, using the following code and tried to describe the last table created on it (all the tables are created on WORK libname) but an error appears. The error says that the table does not exists. If we tried to describe the first table created on WORK, appear without any problem.
codigo = open('c:\xxxx\my_code.sas').read()
sas.submit(codigo)
table_sas = sas.sasdata("WORK", "TMP4")
table_sas.describe()
Is any limitation of using WORK to process using saspy?
Regards,
Thanks! Added the WORK as indicated and now works fine.
Regards,
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.