BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
MariaD
Barite | Level 11

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, 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JosvanderVelden
SAS Super FREQ
Can you try to run with the same code using work.tmp in stead of just tmp?
Does that resolve the issue?

View solution in original post

2 REPLIES 2
JosvanderVelden
SAS Super FREQ
Can you try to run with the same code using work.tmp in stead of just tmp?
Does that resolve the issue?
MariaD
Barite | Level 11

Thanks! Added the WORK as indicated and now works fine. 

 

Regards, 

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to choose a machine learning algorithm

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.

Discussion stats
  • 2 replies
  • 1182 views
  • 1 like
  • 2 in conversation