BookmarkSubscribeRSS Feed
U2
Calcite | Level 5 U2
Calcite | Level 5


Hello Guys,

 

Greetings of the day.

 

In sas :

If we want to use sas datasets in sas server we can use the below 

       libname SomeAmazingLibrary "/sas/data/sas_datasets/Bla/Di/Bla";

Now if i want to assign sas datasets in  sas server in python jupyter notebook 

What are the steps to be followed ?

Should sas software installed locally?

 

2 REPLIES 2
alexal
SAS Employee

@U2 ,

 

Please see the configuration step here https://sassoftware.github.io/saspy/install.html#configuration. You have to connect to the SAS server, local or remote. Here is the information about starting the SAS session and loading the data https://sassoftware.github.io/saspy/getting-started.html#start-a-sas-session.

sastpw
SAS Employee

And, the saspy method for assigning a library is the following (off of the SASsession object):

 

saslib(libref: str, engine: str = ' ', path: str = '', options: str = ' ', prompt: dict = None) → str

Parameters:
  • libref – the libref to be assigned
  • engine – the engine name used to access the SAS Library (engine defaults to BASE, per SAS)
  • path – path to the library (for engines that take a path parameter)
  • options – other engine or engine supervisor options
Returns:

SAS log

 

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1892 views
  • 1 like
  • 3 in conversation