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

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2316 views
  • 1 like
  • 3 in conversation