Developers

A forum for collaboration, Q&A, and knowledge sharing on SAS and open source integration
BookmarkSubscribeRSS Feed
U2
Fluorite | Level 6 U2
Fluorite | Level 6


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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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