sassoftware / saspy

A Python interface module to the SAS System. It works with Linux, Windows, and Mainframe SAS as well as with SAS in Viya.
https://sassoftware.github.io/saspy
Other
367 stars 149 forks source link

problem getting at data in ODA #521

Closed tomweber-sas closed 1 year ago

tomweber-sas commented 1 year ago
          @tomweber-sas  Hi Tom -  I need help with a similar issue but with SaS Academic OnDemand version. I am connecting to the ondemand version and the session is created. However, it will not recognize any of my libraries. I am able to run sample codes to test my session with the SASHELP.CARS data. I tried qualifying the my library (Mylib) with the full pathname etc. Nothing has worked so far. 

print(sas.dirlist('/home/kshank0/EPG1V2/1_ Stats Programming/Final Project/')) is able to list the files in this directory. But the following will only list the SAS standard libraries.

for libref in sas.assigned_librefs():
    print(libref)

WORK SASDATA STPSAMP SASHELP MAPS MAPSSAS MAPSGFK SASUSER SAS

Finally, even if I have a table under WORK, it gives the error "Table WORK.stroke does not exist. This SASdata object will not be useful until the data set is created."

I read through this thread but dont understand what I need to do to fix it in the ondemand version. Please help. Thank you! K

Originally posted by @kshank5 in https://github.com/sassoftware/saspy/issues/224#issuecomment-1407295568